Ps. I got reminded by devs that running "/usr/bin/pihole-FTL" as user "root" could unintentionally alter permissions for the pihole-FTL database file.
Better check if permissions for this file is still correct and resembles below:
$ ls -lh /etc/pihole/pihole-FTL.db
-rw-r--r-- 1 pihole pihole 119M Nov 22 20:49 /etc/pihole/pihole-FTL.db
If not owned by user "pihole" with group "pihole", you can fix it by running below one:
I tried the offered solution, but for ´groups root´nothing changed, but ´group www-data´returned www-data : www-data aid_net_bt_admin aid_net_bt aid_inet aid_net_raw aid_net_admin pihole´
I also checked for the permissions, it was user ´root´ and group ´root´´.
I changed it to pihole:pihole and tried sudo /usr/bin/pihole-FTL again,
but FTL is still offline and connection to api is still lost and load is also still red.
The "pihole-FTL" process runs as user "pihole".
What is displayed when you run:
groups pihole
Mind that everytime you run "sudo /usr/bin/pihole-FTL", you'll need to fix permissions again with the "chown" command!
Your not supposed to run this one from shell as its controled by systemd but I just wanted to know if it was able to run at all.
Yeah upon reading back, groups was already ok for the pihole user before you did the "usermod -a -G ... pihole" command.
If you browse to the Pi-hole web GUI, are you able to alter settings ?
Like for example try changing "CPU Temperature Unit" from Celsius to Fahrenheit or other way arround.
And you need to figure out how to query systemd about status for the "pihole-FTL" daemon as the "systemctl" command doesnt seem to work (Running in chroot, ignoring request).
I believe the web GUI uses systemctl as well to query status and displays it as red now.
So it could be that pihole-FTL is just running as it should but the web GUI cant see it.
Does below one report any status ?
sudo service pihole-FTL status
Any relevant messages in the pihole-FTL logs ?
less /var/log/pihole-FTL.log
Or in the lighttpd logs ?
sudo less /var/log/lighttpd/error.log
EDIT: I added a bit above ^
And below one should display all processes running in the chroot including the pihole-FTL daemon:
Hey, Pi-hole web GUI seems to work fine, I was able to change CPU temperature unit.
sudo service pihole-FTL status
/etc/init.d/pihole-FTL: line 69: status: command not found
less /var/log/pihole-FTL.log status [2017-11-23 21:20:01.966] ########## FTL started! ########## [2017-11-23 21:20:01.966] FTL branch: (no branch) [2017-11-23 21:20:01.966] FTL hash: v2.11.1 [2017-11-23 21:20:01.966] FTL date: 2017-10-08 12:35:40 -0700 [2017-11-23 21:20:01.966] FTL user: root [2017-11-23 21:20:01.967] Warning: Starting pihole-FTL directly is not recommended. [2017-11-23 21:20:01.967] Instead, use system commands for starting pihole-FTL as service (systemctl / service). [2017-11-23 21:20:01.972] Notice: Found no readable FTL config file [2017-11-23 21:20:01.972] Using default settings [2017-11-23 21:20:01.972] Starting config file parsing [2017-11-23 21:20:01.973] SOCKET_LISTENING: only local [2017-11-23 21:20:01.973] TIMEFRAME: Rolling 24h [2017-11-23 21:20:01.973] QUERY_DISPLAY: Show queries [2017-11-23 21:20:01.973] AAAA_QUERY_ANALYSIS: Show AAAA queries [2017-11-23 21:20:01.973] MAXDBDAYS: max age for stored queries is 365 days [2017-11-23 21:20:01.973] Finished config file parsing [2017-11-23 21:20:01.998] 3937 - /usr/bin/pihole-FTL [2017-11-23 21:20:01.999] Found pihole-FTL process with PID 3937 (my PID 8568) - killing it ... [2017-11-23 21:20:02.034] Found no other running pihole-FTL process [2017-11-23 21:20:02.039] PID of FTL process: 8571 [2017-11-23 21:20:02.301] Gravity list entries: 106659 [2017-11-23 21:20:02.302] No blacklist present [2017-11-23 21:20:02.302] No wildcard blocking list present [2017-11-23 21:20:02.311] db_init() - Cannot open database (14): unable to open database file [2017-11-23 21:20:02.311] Creating new (empty) database [2017-11-23 21:20:02.321] Database initialized [2017-11-23 21:20:02.321] Starting initial log file parsing [2017-11-23 21:20:02.321] Warning: Reading of rotated log file /var/log/pihole.log.1 failed [2017-11-23 21:20:02.321] Reading from /var/log/pihole.log (rw-r--r--) [2017-11-23 21:20:02.321] Finished initial log file parsing [2017-11-23 21:20:02.322] -> Total DNS queries: 0 [2017-11-23 21:20:02.322] -> Cached DNS queries: 0 [2017-11-23 21:20:02.322] -> Blocked DNS queries: 0 [2017-11-23 21:20:02.322] -> Unknown DNS queries: 0 [2017-11-23 21:20:02.322] -> Unique domains: 0 [2017-11-23 21:20:02.322] -> Unique clients: 0 [2017-11-23 21:20:02.322] Successfully accessed setupVars.conf [2017-11-23 21:20:02.323] Listening on port 4711 for incoming connections [2017-11-24 08:53:01.798] ########## FTL started! ########## [2017-11-24 08:53:01.798] FTL branch: (no branch) [2017-11-24 08:53:01.798] FTL hash: v2.11.1 [2017-11-24 08:53:01.798] FTL date: 2017-10-08 12:35:40 -0700 [2017-11-24 08:53:01.798] FTL user: root [2017-11-24 08:53:01.798] Warning: Starting pihole-FTL directly is not recommended. [2017-11-24 08:53:01.799] Instead, use system commands for starting pihole-FTL as service (systemctl / service). [2017-11-24 08:53:01.799] Notice: Found no readable FTL config file [2017-11-24 08:53:01.799] Using default settings [2017-11-24 08:53:01.799] Starting config file parsing [2017-11-24 08:53:01.799] SOCKET_LISTENING: only local [2017-11-24 08:53:01.799] TIMEFRAME: Rolling 24h [2017-11-24 08:53:01.799] QUERY_DISPLAY: Show queries [2017-11-24 08:53:01.799] AAAA_QUERY_ANALYSIS: Show AAAA queries [2017-11-24 08:53:01.799] MAXDBDAYS: max age for stored queries is 365 days [2017-11-24 08:53:01.799] Finished config file parsing [2017-11-24 08:53:01.820] Found no other running pihole-FTL process [2017-11-24 08:53:01.827] PID of FTL process: 18409 [2017-11-24 08:53:02.100] Gravity list entries: 106659 [2017-11-24 08:53:02.100] No blacklist present [2017-11-24 08:53:02.102] No wildcard blocking list present /var/log/pihole-FTL.log (file 1 of 2)
sudo less /var/log/lighttpd/error.log
2017-11-23 20:40:55: (log.c.164) server started
2017-11-23 20:56:27: (server.c.1558) server stopped by UID = 0 PID = 2842
2017-11-23 20:56:28: (log.c.164) server started
2017-11-23 20:56:32: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/html/admin/scripts/pi-hole/php/update_checker.php on line 11
2017-11-23 20:56:32: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning: file_get_contents(https://api.github.com/repos/pi-hole/pi-hole/releases/latest): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/html/admin/scripts/pi-hole/php/update_checker.php on line 11
2017-11-23 20:56:32: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Notice: Trying to get property of non-object in /var/www/html/admin/scripts/pi-hole/php/update_checker.php on line 14
2017-11-23 20:56:32: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/html/admin/scripts/pi-hole/php/update_checker.php on line 11
2017-11-23 20:56:32: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning: file_get_contents(https://api.github.com/repos/pi-hole/AdminLTE/releases/latest): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/html/admin/scripts/pi-hole/php/update_checker.php on line 11
2017-11-23 20:56:32: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Notice: Trying to get property of non-object in /var/www/html/admin/scripts/pi-hole/php/update_checker.php on line 14
2017-11-23 20:56:32: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/html/admin/scripts/pi-hole/php/update_checker.php on line 11
2017-11-23 20:56:32: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning: file_get_contents(https://api.github.com/repos/pi-hole/FTL/releases/latest): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/html/admin/scripts/pi-hole/php/update_checker.php on line 11
2017-11-23 20:56:32: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Notice: Trying to get property of non-object in /var/www/html/admin/scripts/pi-hole/php/update_checker.php on line 14
2017-11-23 20:56:32: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Notice: Undefined variable: timestamp in /var/www/html/admin/scripts/pi-hole/php/update_checker.php on line 79
2017-11-23 20:56:39: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/html/admin/scripts/pi-hole/php/update_checker.php on line 11
2017-11-23 20:56:39: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning: file_get_contents(https://api.github.com/repos/pi-hole/pi-hole/releases/latest): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/html/admin/scripts/pi-hole/php/update_checker.php on line 11
2017-11-23 20:56:39: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Notice: Trying to get property of non-object in /var/www/html/admin/scripts/pi-hole/php/update_checker.php on line 14
2017-11-23 20:56:39: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/html/admin/scripts/pi-hole/php/update_checker.php on line 11
2017-11-23 20:56:39: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning: file_get_contents(https://api.github.com/repos/pi-hole/AdminLTE/releases/latest): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/html/admin/scripts/pi-hole/php/update_checker.php on line 11
2017-11-23 20:56:39: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Notice: Trying to get property of non-object in /var/www/html/admin/scripts/pi-hole/php/update_checker.php on line 14
2017-11-23 20:56:39: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/html/admin/scripts/pi-hole/php/update_checker.php on line 11
2017-11-23 20:56:39: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning: file_get_contents(https://api.github.com/repos/pi-hole/FTL/releases/latest): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/html/admin/scripts/pi-hole/php/update_checker.php on line 11
2017-11-23 20:56:39: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Notice: Trying to get property of non-object in /var/www/html/admin/scripts/pi-hole/php/update_checker.php on line 14
2017-11-23 21:23:23: (log.c.164) server started
2017-11-24 14:42:18: (log.c.164) server started
2017-11-24 14:42:20: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/html/admin/scripts/pi-hole/php/update_checker.php on line 11
2017-11-24 14:42:20: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning: file_get_contents(https://api.github.com/repos/pi-hole/pi-hole/releases/latest): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/html/admin/scripts/pi-hole/php/update_checker.php on line 11
Verry hard to read the logs from the "less" output.
Could you reboot Pi-hole and first thing, just browse to the Pi-hole web GUI and post output for below two tail commands ?
After reboot I had to start lighttpd and dnsmasq maunally.
tail -20 /var/log/pihole-FTL.log
[2017-11-24 16:19:24.433] Starting initial log file parsing
[2017-11-24 16:19:24.434] Warning: Reading of rotated log file /var/log/pihole.log.1 failed
[2017-11-24 16:19:24.434] Reading from /var/log/pihole.log (rw-r--r--)
[2017-11-24 16:19:24.434] Notice: Increasing queries struct size from 0 to 10000 (320.10 KB)
[2017-11-24 16:19:24.434] Notice: Increasing overTime struct size from 0 to 100 (323.30 KB)
[2017-11-24 16:19:24.434] Notice: Increasing domains struct size from 0 to 1000 (343.30 KB)
[2017-11-24 16:19:24.435] Notice: Increasing clients struct size from 0 to 10 (343.48 KB)
[2017-11-24 16:19:24.435] New client: 127.0.0.1 localhost (0/10)
[2017-11-24 16:19:24.456] New client: 192.168.178.199 Pi-hole.fritz.box (1/10)
[2017-11-24 16:19:24.456] New client: ::1 localhost (2/10)
[2017-11-24 16:19:24.463] New client: 2003:e5:fbc4:c100:36bb:26ff:fe93:f929 p200300E5FBC4C10036BB26FFFE93F929.dip0.t-ipconnect.de (3/10)
[2017-11-24 16:19:24.464] Finished initial log file parsing
[2017-11-24 16:19:24.464] -> Total DNS queries: 4
[2017-11-24 16:19:24.464] -> Cached DNS queries: 0
[2017-11-24 16:19:24.464] -> Blocked DNS queries: 4
[2017-11-24 16:19:24.464] -> Unknown DNS queries: 0
[2017-11-24 16:19:24.464] -> Unique domains: 2
[2017-11-24 16:19:24.464] -> Unique clients: 4
[2017-11-24 16:19:24.464] Successfully accessed setupVars.conf
[2017-11-24 16:19:24.465] Listening on port 4711 for incoming connections
sudo tail -20 /var/log/lighttpd/error.log
2017-11-23 20:56:39: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/html/admin/scripts/pi-hole/php/update_checker.php on line 11
2017-11-23 20:56:39: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning: file_get_contents(https://api.github.com/repos/pi-hole/AdminLTE/releases/latest): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/html/admin/scripts/pi-hole/php/update_checker.php on line 11
2017-11-23 20:56:39: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Notice: Trying to get property of non-object in /var/www/html/admin/scripts/pi-hole/php/update_checker.php on line 14
2017-11-23 20:56:39: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/html/admin/scripts/pi-hole/php/update_checker.php on line 11
2017-11-23 20:56:39: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning: file_get_contents(https://api.github.com/repos/pi-hole/FTL/releases/latest): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/html/admin/scripts/pi-hole/php/update_checker.php on line 11
2017-11-23 20:56:39: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Notice: Trying to get property of non-object in /var/www/html/admin/scripts/pi-hole/php/update_checker.php on line 14
2017-11-23 21:23:23: (log.c.164) server started
2017-11-24 14:42:18: (log.c.164) server started
2017-11-24 14:42:20: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/html/admin/scripts/pi-hole/php/update_checker.php on line 11
2017-11-24 14:42:20: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning: file_get_contents(https://api.github.com/repos/pi-hole/pi-hole/releases/latest): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/html/admin/scripts/pi-hole/php/update_checker.php on line 11
2017-11-24 14:42:20: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Notice: Trying to get property of non-object in /var/www/html/admin/scripts/pi-hole/php/update_checker.php on line 14
2017-11-24 14:42:20: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/html/admin/scripts/pi-hole/php/update_checker.php on line 11
2017-11-24 14:42:20: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning: file_get_contents(https://api.github.com/repos/pi-hole/AdminLTE/releases/latest): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/html/admin/scripts/pi-hole/php/update_checker.php on line 11
2017-11-24 14:42:20: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Notice: Trying to get property of non-object in /var/www/html/admin/scripts/pi-hole/php/update_checker.php on line 14
2017-11-24 14:42:20: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/html/admin/scripts/pi-hole/php/update_checker.php on line 11
2017-11-24 14:42:20: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning: file_get_contents(https://api.github.com/repos/pi-hole/FTL/releases/latest): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/html/admin/scripts/pi-hole/php/update_checker.php on line 11
2017-11-24 14:42:20: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Notice: Trying to get property of non-object in /var/www/html/admin/scripts/pi-hole/php/update_checker.php on line 14
2017-11-24 14:52:28: (log.c.164) server started
2017-11-24 15:45:48: (log.c.164) server started
2017-11-24 16:51:12: (log.c.164) server started
From the time difference between the two last log entries (16:19:24.465 & 16:51:12) , i can make up that pihole-FTL didnt start at boot same as dnsmasq and lighttpd.
Below one probably confirms that:
sudo systemctl enable dnsmasq
Synchronizing state for dnsmasq.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d dnsmasq defaults
Executing /usr/sbin/update-rc.d dnsmasq enable
sudo systemctl enable lighttpd
Synchronizing state for lighttpd.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d lighttpd defaults
Executing /usr/sbin/update-rc.d lighttpd enable
sudo systemctl enable pihole-FTL
Synchronizing state for pihole-FTL.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d pihole-FTL defaults
Executing /usr/sbin/update-rc.d pihole-FTL enable
I rebootet and checked with ps -e | grep "pihole-FTL\|dnsmasq\|lighttpd" but it ouput nothing. I checked with ps -e and found 5165 ? 00:00:00 lighttpd 5208 ? 00:00:06 dnsmasq 5292 ? 00:00:00 pihole-FTL
but FTL says still offline and lost connection to API and Load is still red.
In your case, it probably needed sudo.
So now you have all the necessary daemons running after a reboot but the web GUI doesnt see it.
I believe thats because "sudo systemctl status pihole-FTL -l" doesnt give a proper response:
Running in chroot, ignoring request.
If you can fix that, chances are the web GUI will show proper status.
But as I am unfamiliar with Linux deploy and the chroot it creates, I wouldnt know where to search.
Maybe the TS @saisreen1381 knows more ?
Ore maybe one of the developers ?
Ps. you should be able to start using Pi-hole on a client now even though the web GUI is still broken.