[solved] Ftl offline on ubuntu server 16

The issue I am facing:
After the installation of pihole 5 on a fresh ubuntu server 16.04, the FTL is offline.

Details about my system:

this is the the debug
thank you for your hel

This process collects information from your Pi-hole, and optionally uploads it to a unique and random directory on tricorder.pi-hole.net.

The intent of this script is to allow users to self-diagnose their installations.  This is accomplished by running tests against our software and providing the user with links to FAQ articles when a problem is detected.  Since we are a small team and Pi-hole has been growing steadily, it is our hope that this will help us spend more time on development.

NOTE: All log files auto-delete after 48 hours and ONLY the Pi-hole developers can access your data via the given token. We have taken these extra steps to secure your data and will work to further reduce any personal information gathered.

*** [ INITIALIZING ]
[i] 2020-05-22:21:18:48 debug log has been initialized.

*** [ INITIALIZING ] Sourcing setup variables
[i] Sourcing /etc/pihole/setupVars.conf...

*** [ DIAGNOSING ]: Core version
[i] Core: v5.0 (https://discourse.pi-hole.net/t/how-do-i-update-pi-hole/249)
[i] Branch: master
[i] Commit: v5.0-0-g4d25f69

*** [ DIAGNOSING ]: Web version
[i] Web: v5.0 (https://discourse.pi-hole.net/t/how-do-i-update-pi-hole/249)
[i] Branch: master
[i] Commit: v5.0-0-gb86e4a3

*** [ DIAGNOSING ]: FTL version
[✓] FTL: v5.0

*** [ DIAGNOSING ]: lighttpd version
[i] 1.4.35

*** [ DIAGNOSING ]: php version
[i] 7.0.33

*** [ DIAGNOSING ]: Operating system
[✓] Ubuntu 16.04.6 LTS

*** [ DIAGNOSING ]: SELinux
[i] SELinux not detected

*** [ DIAGNOSING ]: Processor
[i] i686

*** [ DIAGNOSING ]: Networking
[✓] IPv4 address(es) bound to the enp1s0 interface:
   192.168.1.210/24 matches the IP found in /etc/pihole/setupVars.conf

[✓] IPv6 address(es) bound to the enp1s0 interface:
   fe80::2e0:c5ff:fe3a:bfdc does not match the IP found in /etc/pihole/setupVars.conf (https://discourse.pi-hole.net/t/use-ipv6-ula-addresses-for-pi-hole/2127)

   ^ Please note that you may have more than one IP address listed.
   As long as one of them is green, and it matches what is in /etc/pihole/setupVars.conf, there is no need for concern.

   The link to the FAQ is for an issue that sometimes occurs when the IPv6 address changes, which is why we check for it.

[i] Default IPv4 gateway: 192.168.1.1
   * Pinging 192.168.1.1...
[✓] Gateway responded.

*** [ DIAGNOSING ]: Ports in use
[53] is in use by named (https://discourse.pi-hole.net/t/hardware-software-requirements/273#ports)
[53] is in use by named (https://discourse.pi-hole.net/t/hardware-software-requirements/273#ports)
[53] is in use by named (https://discourse.pi-hole.net/t/hardware-software-requirements/273#ports)
127.0.0.1:953 named (IPv4)
[::1]:953 named (IPv6)
*:22 sshd (IPv4)
*:22 sshd (IPv6)
[80] is in use by lighttpd
[80] is in use by lighttpd

*** [ DIAGNOSING ]: Name resolution (IPv4) using a random blocked domain and a known ad-serving domain
[✗] Failed to resolve librores.press via localhost (127.0.0.1)
[✗] Failed to resolve librores.press via Pi-hole (192.168.1.210)
[✗] Failed to resolve doubleclick.com via a remote, public DNS server (8.8.8.8)

*** [ DIAGNOSING ]: Pi-hole processes
[✓] lighttpd daemon is active
[✓] pihole-FTL daemon is active

*** [ DIAGNOSING ]: Setup variables
    PIHOLE_INTERFACE=enp1s0
    IPV4_ADDRESS=192.168.1.210/24
    IPV6_ADDRESS=
    QUERY_LOGGING=true
    INSTALL_WEB_SERVER=true
    INSTALL_WEB_INTERFACE=true
    LIGHTTPD_ENABLED=true
    BLOCKING_ENABLED=true
    DNSMASQ_LISTENING=single
    PIHOLE_DNS_1=1.1.1.1
    PIHOLE_DNS_2=1.0.0.1
    DNS_FQDN_REQUIRED=false
    DNS_BOGUS_PRIV=false
    DNSSEC=false
    CONDITIONAL_FORWARDING=true
    CONDITIONAL_FORWARDING_IP=192.168.1.1
    CONDITIONAL_FORWARDING_DOMAIN=alexdc
    CONDITIONAL_FORWARDING_REVERSE=1.168.192.in-addr.arpa

*** [ DIAGNOSING ]: Dashboard and block page
[✓] Block page X-Header: X-Pi-hole: A black hole for Internet advertisements.
[✓] Web interface X-Header: X-Pi-hole: The Pi-hole Web interface is working!

*** [ DIAGNOSING ]: Gravity List and Database
-rw-rw-r-- 1 pihole pihole 5237760 mag 21 21:36 /etc/pihole/gravity.db

*** [ DIAGNOSING ]: Info table
   property              value                                   
   --------------------  ----------------------------------------
   version               12                                      
   updated               1590089792                              
   gravity_count         84818                                   
   Last gravity run finished at: gio 21 mag 2020, 21.36.32, CEST

   ----- First 10 Gravity Domains -----
   localhost.localdomain
   01mspmd5yalky8.com
   0byv9mgbn0.com
   analytics.247sports.com
   www.analytics.247sports.com
   2no.co
   www.2no.co
   logitechlogitechglobal.112.2o7.net
   www.logitechlogitechglobal.112.2o7.net
   30-day-change.com


*** [ DIAGNOSING ]: Groups
   id    enabled  name                                                date_added           date_modified        description                                       
   ----  -------  --------------------------------------------------  -------------------  -------------------  --------------------------------------------------
   0           1  Default                                             2020-05-21 21:36:19  2020-05-21 21:36:19  The default group                                 

*** [ DIAGNOSING ]: Domainlist (0/1 = exact white-/blacklist, 2/3 = regex white-/blacklist)

*** [ DIAGNOSING ]: Clients

*** [ DIAGNOSING ]: Adlists
   id    enabled  group_ids     address                                                                                               date_added           date_modified        comment                                           
   ----  -------  ------------  ----------------------------------------------------------------------------------------------------  -------------------  -------------------  --------------------------------------------------
   1           1  0             https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts                                      2020-05-21 21:36:19  2020-05-21 21:36:19  Migrated from /etc/pihole/adlists.list            
   2           1  0             https://mirror1.malwaredomains.com/files/justdomains                                                  2020-05-21 21:36:19  2020-05-21 21:36:19  Migrated from /etc/pihole/adlists.list            
   3           1  0             https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt                                      2020-05-21 21:36:19  2020-05-21 21:36:19  Migrated from /etc/pihole/adlists.list            
   4           1  0             https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt                                            2020-05-21 21:36:19  2020-05-21 21:36:19  Migrated from /etc/pihole/adlists.list            

*** [ DIAGNOSING ]: contents of /etc/pihole

-rw-r--r-- 1 root root 41 mag 21 21:36 /etc/pihole/local.list
   192.168.1.210 dell
   192.168.1.210 pi.hole

-rw-r--r-- 1 root root 238 mag 21 21:36 /etc/pihole/logrotate
   /var/log/pihole.log {
   	su root syslog
   	daily
   	copytruncate
   	rotate 5
   	compress
   	delaycompress
   	notifempty
   	nomail
   }
   /var/log/pihole-FTL.log {
   	su root syslog
   	weekly
   	copytruncate
   	rotate 3
   	compress
   	delaycompress
   	notifempty
   	nomail
   }

*** [ DIAGNOSING ]: contents of /etc/dnsmasq.d

-rw-r--r-- 1 root root 1457 mag 21 22:13 /etc/dnsmasq.d/01-pihole.conf
   addn-hosts=/etc/pihole/local.list
   addn-hosts=/etc/pihole/custom.list
   localise-queries
   no-resolv
   cache-size=10000
   log-queries
   log-facility=/var/log/pihole.log
   local-ttl=2
   log-async
   server=1.1.1.1
   server=1.0.0.1
   interface=enp1s0
   server=/alexdc/192.168.1.1
   server=/1.168.192.in-addr.arpa/192.168.1.1
   server=/use-application-dns.net/

*** [ DIAGNOSING ]: contents of /etc/lighttpd

-rw-r--r-- 1 root root 3499 mag 21 21:36 /etc/lighttpd/lighttpd.conf
   server.modules = (
   	"mod_access",
   	"mod_accesslog",
   	"mod_auth",
   	"mod_expire",
   	"mod_compress",
   	"mod_redirect",
   	"mod_setenv",
   	"mod_rewrite"
   )
   server.document-root        = "/var/www/html"
   server.error-handler-404    = "/pihole/index.php"
   server.upload-dirs          = ( "/var/cache/lighttpd/uploads" )
   server.errorlog             = "/var/log/lighttpd/error.log"
   server.pid-file             = "/var/run/lighttpd.pid"
   server.username             = "www-data"
   server.groupname            = "www-data"
   server.port                 = 80
   accesslog.filename          = "/var/log/lighttpd/access.log"
   accesslog.format            = "%{%s}t|%V|%r|%s|%b"
   index-file.names            = ( "index.php", "index.html", "index.lighttpd.html" )
   url.access-deny             = ( "~", ".inc", ".md", ".yml", ".ini" )
   static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
   compress.cache-dir          = "/var/cache/lighttpd/compress/"
   compress.filetype           = ( "application/javascript", "text/css", "text/html", "text/plain" )
   mimetype.assign   = ( ".png"  => "image/png",
                         ".jpg"  => "image/jpeg",
                         ".jpeg" => "image/jpeg",
                         ".html" => "text/html",
                         ".css" => "text/css; charset=utf-8",
                         ".js" => "application/javascript",
                         ".json" => "application/json",
                         ".txt"  => "text/plain",
                         ".svg"  => "image/svg+xml" )
   include_shell "/usr/share/lighttpd/use-ipv6.pl " + server.port
   include_shell "find /etc/lighttpd/conf-enabled -name '*.conf' -a ! -name 'letsencrypt.conf' -printf 'include \"%p\"
' 2>/dev/null"
   $HTTP["url"] =~ "^/admin/" {
       
       setenv.add-response-header = (
           "X-Pi-hole" => "The Pi-hole Web interface is working!",
           "X-Frame-Options" => "DENY"
       )
       $HTTP["url"] =~ ".ttf$" {
           
           setenv.add-response-header = ( "Access-Control-Allow-Origin" => "*" )
       }
   }
   $HTTP["url"] =~ "^/admin/\.(.*)" {
        url.access-deny = ("")
   }
   include_shell "cat external.conf 2>/dev/null"

*** [ DIAGNOSING ]: contents of /etc/cron.d

-rw-r--r-- 1 root root 1704 mag 21 21:36 /etc/cron.d/pihole
   43 3   * * 7   root    PATH="$PATH:/usr/local/bin/" pihole updateGravity >/var/log/pihole_updateGravity.log || cat /var/log/pihole_updateGravity.log
   00 00   * * *   root    PATH="$PATH:/usr/local/bin/" pihole flush once quiet
   @reboot root /usr/sbin/logrotate /etc/pihole/logrotate
   */10 *  * * *   root    PATH="$PATH:/usr/local/bin/" pihole updatechecker local
   28 16  * * *   root    PATH="$PATH:/usr/local/bin/" pihole updatechecker remote
   @reboot root    PATH="$PATH:/usr/local/bin/" pihole updatechecker remote reboot

*** [ DIAGNOSING ]: contents of /var/log/lighttpd

-rw-r--r-- 1 www-data www-data 4096 mag 22 21:18 /var/log/lighttpd/error.log
   2020-05-21 21:35:52: (log.c.164) server started 
   2020-05-21 21:36:14: (server.c.1558) server stopped by UID = 0 PID = 1 
   2020-05-21 21:36:14: (log.c.164) server started 
   2020-05-21 21:44:03: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning:  fopen(/etc/pihole/custom.list): failed to open stream: No such file or directory in /var/www/html/admin/scripts/pi-hole/php/customdns.php on line 33
   2020-05-21 21:50:38: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning:  fopen(/etc/pihole/custom.list): failed to open stream: No such file or directory in /var/www/html/admin/scripts/pi-hole/php/customdns.php on line 33
   2020-05-21 22:02:42: (server.c.1558) server stopped by UID = 0 PID = 1 
   2020-05-21 22:03:34: (log.c.164) server started 
   2020-05-21 22:18:29: (server.c.1558) server stopped by UID = 0 PID = 1 
   2020-05-21 22:23:13: (log.c.164) server started 
   2020-05-21 22:23:32: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Notice:  Undefined offset: 2 in /var/www/html/admin/scripts/pi-hole/php/update_checker.php on line 58
   2020-05-22 20:56:21: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning:  Unknown: write failed: No space left on device (28) in Unknown on line 0
   2020-05-22 20:56:21: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning:  Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/sessions) in Unknown on line 0
   2020-05-22 21:04:42: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning:  Unknown: write failed: No space left on device (28) in Unknown on line 0
   2020-05-22 21:04:42: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning:  Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/sessions) in Unknown on line 0
   2020-05-22 21:04:47: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning:  Unknown: write failed: No space left on device (28) in Unknown on line 0
   2020-05-22 21:04:47: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning:  Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/sessions) in Unknown on line 0
   2020-05-22 21:04:57: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning:  Unknown: write failed: No space left on device (28) in Unknown on line 0
   2020-05-22 21:04:57: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning:  Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/sessions) in Unknown on line 0
   2020-05-22 21:05:04: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning:  Unknown: write failed: No space left on device (28) in Unknown on line 0
   2020-05-22 21:05:04: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning:  Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/sessions) in Unknown on line 0
   2020-05-22 21:05:20: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning:  Unknown: write failed: No space left on device (28) in Unknown on line 0
   2020-05-22 21:05:20: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning:  Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/sessions) in Unknown on line 0
   2020-05-22 21:05:32: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning:  Unknown: write failed: No space left on device (28) in Unknown on line 0
   2020-05-22 21:05:32: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning:  Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/sessions) in Unknown on line 0
   2020-05-22 21:05:43: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning:  Unknown: write failed: No space left on device (28) in Unknown on line 0

*** [ DIAGNOSING ]: contents of /var/log

-rw-r--r-- 1 pihole pihole 0 mag 22 21:18 /var/log/pihole-FTL.log
   -----head of pihole-FTL.log------

   -----tail of pihole-FTL.log------

*** [ DIAGNOSING ]: contents of /dev/shm
-rw------- 1 pihole pihole 643072 mag 22 21:18 /dev/shm/FTL-clients
-rw------- 1 pihole pihole 124 mag 22 21:18 /dev/shm/FTL-counters
-rw------- 1 pihole pihole 4096 mag 22 21:18 /dev/shm/FTL-dns-cache
-rw------- 1 pihole pihole 65536 mag 22 21:18 /dev/shm/FTL-domains
-rw------- 1 pihole pihole 28 mag 22 21:18 /dev/shm/FTL-lock
-rw------- 1 pihole pihole 28672 mag 22 21:18 /dev/shm/FTL-overTime
-rw------- 1 pihole pihole 4096 mag 22 21:18 /dev/shm/FTL-per-client-regex
-rw------- 1 pihole pihole 212992 mag 22 21:18 /dev/shm/FTL-queries
-rw------- 1 pihole pihole 12 mag 22 21:18 /dev/shm/FTL-settings
-rw------- 1 pihole pihole 4096 mag 22 21:18 /dev/shm/FTL-strings
-rw------- 1 pihole pihole 20480 mag 22 21:18 /dev/shm/FTL-upstreams

*** [ DIAGNOSING ]: Locale
    LANG=it_IT.UTF-8

*** [ DIAGNOSING ]: Pi-hole log
-rw-r--r-- 1 pihole pihole 0 mag 22 21:18 /var/log/pihole.log
   -----head of pihole.log------


********************************************
********************************************
[✓] ** FINISHED DEBUGGING! **

    * The debug log can be uploaded to tricorder.pi-hole.net for sharing with developers only.
    * For more information, see: https://pi-hole.net/2016/11/07/crack-our-medical-tricorder-win-a-raspberry-pi-3/
    * If available, we'll use openssl to upload the log, otherwise it will fall back to netcat.

    * Log will NOT be uploaded to tricorder.
[53] is in use by named (https://discourse.pi-hole.net/t/hardware-software-requirements/273#ports) 
[53] is in use by named (https://discourse.pi-hole.net/t/hardware-software-requirements/273#ports) 
[53] is in use by named (https://discourse.pi-hole.net/t/hardware-software-requirements/273#ports)

Port 53 is used by BIND

2 Likes

ok sorry, I solved, unintall BIND

thank you very much

You're welcome.