I'm completely new to raspberry pi & I just installed Pi-hole & it says in the web interface "lost connection to API"
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-08-02:15:22:45 debug log has been initialized.
*** [ INITIALIZING ] Sourcing setup variables
[i] Sourcing /etc/pihole/setupVars.conf...
*** [ DIAGNOSING ]: Core version
[i] Core: v5.1.1 (How do I update Pi-hole?)
[i] Remotes: origin https://github.com/pi-hole/pi-hole.git (fetch)
origin https://github.com/pi-hole/pi-hole.git (push)
[i] Branch: master
[i] Commit: v5.1.1-0-g56cd7c4
*** [ DIAGNOSING ]: Web version
[i] Web: v5.1 (How do I update Pi-hole?)
[i] Remotes: origin https://github.com/pi-hole/AdminLTE.git (fetch)
origin https://github.com/pi-hole/AdminLTE.git (push)
[i] Branch: master
[i] Commit: v5.1-0-gd8d3f31
*** [ DIAGNOSING ]: FTL version
[β] FTL: v5.1
*** [ DIAGNOSING ]: lighttpd version
[i] 1.4.53
*** [ DIAGNOSING ]: php version
[i] 7.3.19
*** [ DIAGNOSING ]: Operating system
[β] Distro: Raspbian
[β] Version: 10
*** [ DIAGNOSING ]: SELinux
[β] Default SELinux: permissive
[β] Current SELinux: Disabled
*** [ DIAGNOSING ]: Processor
[β] armv6l
*** [ DIAGNOSING ]: Networking
[β] IPv4 address(es) bound to the eth0 interface:
192.168.87.9/24 matches the IP found in /etc/pihole/setupVars.conf
[β] IPv6 address(es) bound to the eth0 interface:
fe80::b539:f638:3965:ad80 does not match the IP found in /etc/pihole/setupVars.conf (Use IPv6 ULA addresses for Pi-hole)
^ 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.87.1
- Pinging 192.168.87.1...
[β] Gateway responded.
*** [ DIAGNOSING ]: Ports in use
[53] is in use by named (Hardware/Software Requirements)
[53] is in use by named (Hardware/Software Requirements)
127.0.0.1:953 named (IPv4)
[::1]:953 named (IPv6)
[53] is in use by named (Hardware/Software Requirements)
[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 www.cda-cda.prv.pl via localhost (127.0.0.1)
[β] www.cda-cda.prv.pl is 37.59.49.187 via Pi-hole (192.168.87.9)
[β] doubleclick.com is 216.58.194.46 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
BLOCKING_ENABLED=true
ADMIN_EMAIL=josearebalo775@gmail.com
WEBUIBOXEDLAYOUT=boxed
WEBTHEME=default-dark
DNSMASQ_LISTENING=local
PIHOLE_DNS_3=208.67.222.222
PIHOLE_DNS_4=208.67.220.220
PIHOLE_DNS_5=4.2.2.1
PIHOLE_DNS_6=4.2.2.2
PIHOLE_DNS_7=8.26.56.26
PIHOLE_DNS_8=8.20.247.20
PIHOLE_DNS_9=1.1.1.1
DNS_FQDN_REQUIRED=true
DNS_BOGUS_PRIV=true
DNSSEC=false
REV_SERVER=true
REV_SERVER_CIDR=192.168.87.0/24
REV_SERVER_TARGET=192.168.87.1
REV_SERVER_DOMAIN=
PIHOLE_INTERFACE=eth0
IPV4_ADDRESS=192.168.87.9/24
IPV6_ADDRESS=
PIHOLE_DNS_1=8.8.8.8
PIHOLE_DNS_2=8.8.4.4
QUERY_LOGGING=true
INSTALL_WEB_SERVER=true
INSTALL_WEB_INTERFACE=true
LIGHTTPD_ENABLED=true
*** [ 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 5107712 Aug 2 14:55 /etc/pihole/gravity.db
*** [ DIAGNOSING ]: Info table
property value
version 12
updated 1596398120
gravity_count 85314
Last gravity run finished at: Sun Aug 2 14:55:20 CDT 2020
----- First 10 Gravity Domains -----
localhost.localdomain
n2019cov.000webhostapp.com
webmail-who-int.000webhostapp.com
010sec.com
01mspmd5yalky8.com
0byv9mgbn0.com
ns6.0pendns.org
dns.0pengl.com
ios.0pengl.com
0x4fc271.tk
*** [ DIAGNOSING ]: Groups
id enabled name date_added date_modified description
0 1 Default 2020-08-02 12:03:58 2020-08-02 12:03:58 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-08-02 12:03:58 2020-08-02 12:03:58 Migrated from /etc/pihole/adlists.list
2 1 0 https://mirror1.malwaredomains.com/files/justdomains 2020-08-02 12:03:58 2020-08-02 12:03:58 Migrated from /etc/pihole/adlists.list
*** [ DIAGNOSING ]: contents of /etc/pihole
-rw-r--r-- 1 root root 46 Aug 2 14:55 /etc/pihole/local.list
192.168.87.9 raspberrypi
192.168.87.9 pi.hole
-rw-r--r-- 1 root root 234 Aug 2 14:54 /etc/pihole/logrotate
/var/log/pihole.log {
su root root
daily
copytruncate
rotate 5
compress
delaycompress
notifempty
nomail
}
/var/log/pihole-FTL.log {
su root root
weekly
copytruncate
rotate 3
compress
delaycompress
notifempty
nomail
}
-rw-rw-r-- 1 pihole root 15 Aug 2 14:54 /etc/pihole/pihole-FTL.conf
PRIVACYLEVEL=0
*** [ DIAGNOSING ]: contents of /etc/dnsmasq.d
-rw-r--r-- 1 root root 1590 Aug 2 14:54 /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=8.8.8.8
server=8.8.4.4
server=208.67.222.222
server=208.67.220.220
server=4.2.2.1
server=4.2.2.2
server=8.26.56.26
server=8.20.247.20
server=1.1.1.1
server=1.0.0.1
domain-needed
bogus-priv
local-service
rev-server=192.168.87.0/24,192.168.87.1
server=/use-application-dns.net/
*** [ DIAGNOSING ]: contents of /etc/lighttpd
-rw-r--r-- 1 root root 0 Aug 2 14:54 /etc/lighttpd/external.conf
-rw-r--r-- 1 root root 4066 Aug 2 14:54 /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 = "/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/json",
"application/vnd.ms-fontobject",
"application/xml",
"font/eot",
"font/opentype",
"font/otf",
"font/ttf",
"image/bmp",
"image/svg+xml",
"image/vnd.microsoft.icon",
"image/x-icon",
"text/css",
"text/html",
"text/javascript",
"text/plain",
"text/xml"
)
mimetype.assign = (
".ico" => "image/x-icon",
".jpeg" => "image/jpeg",
".jpg" => "image/jpeg",
".png" => "image/png",
".svg" => "image/svg+xml",
".css" => "text/css; charset=utf-8",
".html" => "text/html; charset=utf-8",
".js" => "text/javascript; charset=utf-8",
".json" => "application/json; charset=utf-8",
".map" => "application/json; charset=utf-8",
".txt" => "text/plain; charset=utf-8",
".eot" => "application/vnd.ms-fontobject",
".otf" => "font/otf",
".ttc" => "font/collection",
".ttf" => "font/ttf",
".woff" => "font/woff",
".woff2" => "font/woff2"
)
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"] =~ "\.(eot|otf|tt[cf]|woff2?)$" {
setenv.add-response-header = ( "Access-Control-Allow-Origin" => "*" )
}
}
$HTTP["url"] =~ "^/admin/.(.*)" {
url.access-deny = ("")
}
expire.url = ( "" => "access plus 0 seconds" )
include_shell "cat external.conf 2>/dev/null"
*** [ DIAGNOSING ]: contents of /etc/cron.d
-rw-r--r-- 1 root root 1704 Aug 2 14:54 /etc/cron.d/pihole
42 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
3 18 * * * 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 4839 Aug 2 15:23 /var/log/lighttpd/error.log
2020-08-02 12:00:52: (server.c.1464) server started (lighttpd/1.4.53)
2020-08-02 12:03:13: (server.c.2059) server stopped by UID = 0 PID = 1
2020-08-02 12:03:15: (server.c.1464) server started (lighttpd/1.4.53)
2020-08-02 12:03:15: (server.c.1493) WARNING: unknown config-key: alias.url (ignored)
2020-08-02 12:09:48: (server.c.2059) server stopped by UID = 0 PID = 1
2020-08-02 12:10:38: (server.c.1464) server started (lighttpd/1.4.53)
2020-08-02 12:10:38: (server.c.1493) WARNING: unknown config-key: alias.url (ignored)
2020-08-02 12:26:18: (mod_fastcgi.c.421) 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/func.php on line 101
2020-08-02 12:26:59: (mod_fastcgi.c.421) 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/func.php on line 101
2020-08-02 12:38:32: (server.c.2059) server stopped by UID = 0 PID = 1
2020-08-02 12:39:24: (server.c.1464) server started (lighttpd/1.4.53)
2020-08-02 12:39:24: (server.c.1493) WARNING: unknown config-key: alias.url (ignored)
2020-08-02 12:40:05: (mod_fastcgi.c.421) FastCGI-stderr: PHP Notice: Undefined offset: 2 in /var/www/html/admin/scripts/pi-hole/php/update_checker.php on line 58
2020-08-02 13:01:25: (mod_fastcgi.c.421) FastCGI-stderr: PHP Warning: implode(): Invalid arguments passed in /var/www/html/admin/scripts/pi-hole/php/savesettings.php on line 741
2020-08-02 13:05:46: (mod_fastcgi.c.421) FastCGI-stderr: PHP Warning: implode(): Invalid arguments passed in /var/www/html/admin/scripts/pi-hole/php/savesettings.php on line 741
2020-08-02 13:08:57: (mod_fastcgi.c.421) 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/func.php on line 101
2020-08-02 14:04:35: (server.c.2059) server stopped by UID = 0 PID = 1
2020-08-02 14:05:13: (server.c.1464) server started (lighttpd/1.4.53)
2020-08-02 14:05:13: (server.c.1493) WARNING: unknown config-key: alias.url (ignored)
2020-08-02 14:07:26: (mod_fastcgi.c.421) 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/func.php on line 101
2020-08-02 14:08:05: (mod_fastcgi.c.421) FastCGI-stderr: PHP Notice: Undefined offset: 0 in /var/www/html/pihole/index.php on line 227
2020-08-02 14:08:05: (mod_fastcgi.c.421) FastCGI-stderr: PHP Warning: array_key_exists() expects parameter 2 to be array, null given in /var/www/html/pihole/index.php on line 228
2020-08-02 14:08:07: (mod_fastcgi.c.421) FastCGI-stderr: PHP Notice: Undefined offset: 0 in /var/www/html/pihole/index.php on line 227
2020-08-02 14:08:07: (mod_fastcgi.c.421) FastCGI-stderr: PHP Warning: array_key_exists() expects parameter 2 to be array, null given in /var/www/html/pihole/index.php on line 228
2020-08-02 14:08:42: (mod_fastcgi.c.421) FastCGI-stderr: PHP Warning: implode(): Invalid arguments passed in /var/www/html/admin/scripts/pi-hole/php/savesettings.php on line 741
*** [ DIAGNOSING ]: contents of /var/log
-rw-r--r-- 1 pihole pihole 82340 Aug 2 15:17 /var/log/pihole-FTL.log
-----head of pihole-FTL.log------
[2020-08-02 12:03:56.697 11093M] Using log file /var/log/pihole-FTL.log
[2020-08-02 12:03:56.698 11093M] ########## FTL started! ##########
[2020-08-02 12:03:56.698 11093M] FTL branch: master
[2020-08-02 12:03:56.698 11093M] FTL version: v5.1
[2020-08-02 12:03:56.699 11093M] FTL commit: b522646
[2020-08-02 12:03:56.699 11093M] FTL date: 2020-07-15 22:26:33 +0100
[2020-08-02 12:03:56.699 11093M] FTL user: pihole
[2020-08-02 12:03:56.699 11093M] Compiled for arm (compiled on CI) using arm-linux-gnueabihf-gcc (crosstool-NG crosstool-ng-1.22.0-88-g8460611) 4.9.3
[2020-08-02 12:03:56.700 11093M] Starting config file parsing (/etc/pihole/pihole-FTL.conf)
[2020-08-02 12:03:56.700 11093M] SOCKET_LISTENING: only local
[2020-08-02 12:03:56.701 11093M] AAAA_QUERY_ANALYSIS: Show AAAA queries
[2020-08-02 12:03:56.701 11093M] MAXDBDAYS: max age for stored queries is 365 days
[2020-08-02 12:03:56.701 11093M] RESOLVE_IPV6: Resolve IPv6 addresses
[2020-08-02 12:03:56.702 11093M] RESOLVE_IPV4: Resolve IPv4 addresses
[2020-08-02 12:03:56.702 11093M] DBINTERVAL: saving to DB file every minute
[2020-08-02 12:03:56.703 11093M] DBFILE: Using /etc/pihole/pihole-FTL.db
[2020-08-02 12:03:56.703 11093M] MAXLOGAGE: Importing up to 24.0 hours of log data
[2020-08-02 12:03:56.703 11093M] PRIVACYLEVEL: Set to 0
[2020-08-02 12:03:56.704 11093M] IGNORE_LOCALHOST: Show queries from localhost
[2020-08-02 12:03:56.704 11093M] BLOCKINGMODE: Null IPs for blocked domains
[2020-08-02 12:03:56.705 11093M] ANALYZE_ONLY_A_AND_AAAA: Disabled. Analyzing all queries
[2020-08-02 12:03:56.705 11093M] DBIMPORT: Importing history from database
[2020-08-02 12:03:56.706 11093M] PIDFILE: Using /run/pihole-FTL.pid
[2020-08-02 12:03:56.706 11093M] SOCKETFILE: Using /run/pihole/FTL.sock
[2020-08-02 12:03:56.706 11093M] SETUPVARSFILE: Using /etc/pihole/setupVars.conf
[2020-08-02 12:03:56.707 11093M] MACVENDORDB: Using /etc/pihole/macvendor.db
[2020-08-02 12:03:56.708 11093M] GRAVITYDB: Using /etc/pihole/gravity.db
[2020-08-02 12:03:56.708 11093M] PARSE_ARP_CACHE: Active
[2020-08-02 12:03:56.708 11093M] CNAME_DEEP_INSPECT: Active
[2020-08-02 12:03:56.709 11093M] DELAY_STARTUP: No delay requested.
[2020-08-02 12:03:56.709 11093M] NICE: Set process niceness to -10 (default)
[2020-08-02 12:03:56.710 11093M] BLOCK_ESNI: Enabled, blocking _esni.{blocked domain}
[2020-08-02 12:03:56.710 11093M] NAMES_FROM_NETDB: Enabled, trying to get names from network database
[2020-08-02 12:03:56.711 11093M] Finished config file parsing
[2020-08-02 12:03:56.715 11093M] No database file found, creating new (empty) database
-----tail of pihole-FTL.log------
[2020-08-02 15:17:30.557 5484M] MAXDBDAYS: max age for stored queries is 365 days
[2020-08-02 15:17:30.557 5484M] RESOLVE_IPV6: Resolve IPv6 addresses
[2020-08-02 15:17:30.558 5484M] RESOLVE_IPV4: Resolve IPv4 addresses
[2020-08-02 15:17:30.558 5484M] DBINTERVAL: saving to DB file every minute
[2020-08-02 15:17:30.558 5484M] DBFILE: Using /etc/pihole/pihole-FTL.db
[2020-08-02 15:17:30.559 5484M] MAXLOGAGE: Importing up to 24.0 hours of log data
[2020-08-02 15:17:30.559 5484M] PRIVACYLEVEL: Set to 0
[2020-08-02 15:17:30.560 5484M] IGNORE_LOCALHOST: Show queries from localhost
[2020-08-02 15:17:30.560 5484M] BLOCKINGMODE: Null IPs for blocked domains
[2020-08-02 15:17:30.561 5484M] ANALYZE_ONLY_A_AND_AAAA: Disabled. Analyzing all queries
[2020-08-02 15:17:30.561 5484M] DBIMPORT: Importing history from database
[2020-08-02 15:17:30.562 5484M] PIDFILE: Using /run/pihole-FTL.pid
[2020-08-02 15:17:30.562 5484M] SOCKETFILE: Using /run/pihole/FTL.sock
[2020-08-02 15:17:30.563 5484M] SETUPVARSFILE: Using /etc/pihole/setupVars.conf
[2020-08-02 15:17:30.563 5484M] MACVENDORDB: Using /etc/pihole/macvendor.db
[2020-08-02 15:17:30.564 5484M] GRAVITYDB: Using /etc/pihole/gravity.db
[2020-08-02 15:17:30.564 5484M] PARSE_ARP_CACHE: Active
[2020-08-02 15:17:30.565 5484M] CNAME_DEEP_INSPECT: Active
[2020-08-02 15:17:30.565 5484M] DELAY_STARTUP: No delay requested.
[2020-08-02 15:17:30.566 5484M] NICE: Set process niceness to -10 (default)
[2020-08-02 15:17:30.566 5484M] BLOCK_ESNI: Enabled, blocking _esni.{blocked domain}
[2020-08-02 15:17:30.566 5484M] NAMES_FROM_NETDB: Enabled, trying to get names from network database
[2020-08-02 15:17:30.567 5484M] Finished config file parsing
[2020-08-02 15:17:30.578 5484M] Database version is 6
[2020-08-02 15:17:30.579 5484M] Database successfully initialized
[2020-08-02 15:17:30.584 5484M] Imported 0 queries from the long-term database
[2020-08-02 15:17:30.585 5484M] -> Total DNS queries: 0
[2020-08-02 15:17:30.586 5484M] -> Cached DNS queries: 0
[2020-08-02 15:17:30.586 5484M] -> Forwarded DNS queries: 0
[2020-08-02 15:17:30.587 5484M] -> Blocked DNS queries: 0
[2020-08-02 15:17:30.587 5484M] -> Unknown DNS queries: 0
[2020-08-02 15:17:30.587 5484M] -> Unique domains: 0
[2020-08-02 15:17:30.588 5484M] -> Unique clients: 0
[2020-08-02 15:17:30.588 5484M] -> Known forward destinations: 0
[2020-08-02 15:17:30.588 5484M] Successfully accessed setupVars.conf
*** [ DIAGNOSING ]: contents of /dev/shm
-rw------- 1 pihole pihole 323584 Aug 2 15:17 /dev/shm/FTL-clients
-rw------- 1 pihole pihole 144 Aug 2 15:17 /dev/shm/FTL-counters
-rw------- 1 pihole pihole 4096 Aug 2 15:17 /dev/shm/FTL-dns-cache
-rw------- 1 pihole pihole 65536 Aug 2 15:17 /dev/shm/FTL-domains
-rw------- 1 pihole pihole 28 Aug 2 15:17 /dev/shm/FTL-lock
-rw------- 1 pihole pihole 77824 Aug 2 15:17 /dev/shm/FTL-overTime
-rw------- 1 pihole pihole 4096 Aug 2 15:17 /dev/shm/FTL-per-client-regex
-rw------- 1 pihole pihole 229376 Aug 2 15:17 /dev/shm/FTL-queries
-rw------- 1 pihole pihole 12 Aug 2 15:17 /dev/shm/FTL-settings
-rw------- 1 pihole pihole 4096 Aug 2 15:17 /dev/shm/FTL-strings
-rw------- 1 pihole pihole 20480 Aug 2 15:17 /dev/shm/FTL-upstreams