Network tab - unknown error

My network tab shows nothing in it running version 4.3, arp on the computer running pi-hole shows 19 clients. I am running it on a Ubuntu 18.04.2 server. All I get is "an unknown error occurred while loading data" when I click on the tab. I tried deleting Pihole-FTL.db and doing a pihole -r but that didn't fix it. Is there anything else I could try to get it working

Run pihole -d for a debug token.

Your debug token is: https://tricorder.pi-hole.net/v9qyxwu7sm

Hi, Exactly same problem here.

Your debug token is: https://tricorder.pi-hole.net/wadf1zrikx

Thanks !

Screenshot : https://snag.gy/G8YV2K.jpg

It doesn't look like you are using the Pi-hole installed lighttpd web server. No other web servers are supported.

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

*** [ DIAGNOSING ]: Dashboard and block page
[✗] Block page X-Header: X-Header does not match or could not be retrieved.

[✗] Web interface X-Header: X-Header does not match or could not be retrieved.

Same here, ok thanks, It doesn't matter, because pihole works very well. ( perhaps should be noticed during installation :wink: )

Yeah I'm using apache2 for webserver, as I had that already running in the server before installing pihole

Check the error log while accessing the network tab:

sudo tailf /var/log/apache2/error.log

2 Likes

Thank you.. I was missing php-sqlite3 I thought I had it installed but didn't. network tab is now showing info

2 Likes

Perfect ! Thanks ! missing php-sqlite3 too ! ( "sudo apt-get install php7.2-sqlite3" then restart for me )

1 Like

I have the same error message as described in this, but none of the suggested solutions work for me. The sql tables and access seem ok since query log is working and dashboard shows the usual stuff, but the network tab keeps returning the ' unknown error'. I also don't see any unusual stuff in the debug log. One remark is that I am running xbian which is unsupported, but based on debian build it should not be much of a problem and all the other functionality is working perfectly. Anybody an idea to try to resolve the issue?

Tail the Apache and FTL logs while browsing to the network tab and post results here:

sudo tailf /var/log/apache2/error.log

sudo tailf /var/log/pihole-FTL.log

And post output for below ones:

apt policy php7.0-cgi php7.0-json php7.0-sqlite3

php-cgi -m

EDIT: instead of tailing the FTL logs, might also want to search for previous errors/warnings etc in the logs and post relevant lines here:

less /var/log/pihole-FTL.log

Both tailf commands show no output while browsing to network tab (as well as the less command)
Output from other commands:
$ apt policy php7.0-cgi php7.0-json php7.0-sqlite3
php7.0-cgi:
Installed: 7.0.33-0+deb9u3
Candidate: 7.0.33-0+deb9u3
Version table:
*** 7.0.33-0+deb9u3 500
500 http://http.debian.net/debian stretch/main armhf Packages
100 /var/lib/dpkg/status
php7.0-json:
Installed: 7.0.33-0+deb9u3
Candidate: 7.0.33-0+deb9u3
Version table:
*** 7.0.33-0+deb9u3 500
500 http://http.debian.net/debian stretch/main armhf Packages
100 /var/lib/dpkg/status
php7.0-sqlite3:
Installed: 7.0.33-0+deb9u3
Candidate: 7.0.33-0+deb9u3
Version table:
*** 7.0.33-0+deb9u3 500
500 http://http.debian.net/debian stretch/main armhf Packages
100 /var/lib/dpkg/status

$ php-cgi -m
[PHP Modules]
calendar
cgi-fcgi
Core
ctype
date
exif
fileinfo
filter
ftp
gettext
hash
iconv
json
libxml
openssl
pcntl
pcre
PDO
pdo_sqlite
Phar
posix
readline
Reflection
session
shmop
sockets
SPL
sqlite3
standard
sysvmsg
sysvsem
sysvshm
tokenizer
Zend OPcache
zlib

[Zend Modules]
Zend OPcache

Is Apache answering or other ?

sudo netstat -nltup | grep :80

curl -I $(hostname -I)

Apache is running and handling the requests...
sudo netstat -nltup | grep :80
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 16828/apache2
tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 3137/kodi.bin

curl -I $(hostname -I)
HTTP/1.1 302 Found
Date: Mon, 17 Jun 2019 20:13:56 GMT
Server: Apache
Strict-Transport-Security: max-age=7776000
Location: https://192.168.1.14/
Content-Type: text/html; charset=UTF-8

HTTP/1.1 302 Found
Date: Mon, 17 Jun 2019 20:13:56 GMT
Server: Apache
Strict-Transport-Security: max-age=7776000
Location: https://192.168.2.14/
Content-Type: text/html; charset=UTF-8

ARP cache populated (dont need to post output here) ?

sudo arp

I have no idea ... now :frowning:
Bit hard to tackle without errors.

EDIT: Check if entries are in DB:

sqlite3 /etc/pihole/pihole-FTL.db "SELECT * FROM network"

Yeah it gets populated; also if I directly query the database, I can see that all network names are in. I remember few weeks ago checking whatever error string coming from FTL but it only said "error" and then I gave up... What I don't understand is why everything else is working except for the network tab. Thanks for your help anyway... or maybe you have another bright insight?

Smart ass remark but wait for the next Pi-hole release that doesnt need an external web daemon:

https://pi-hole.net/2018/10/15/announcing-our-restful-api-contributions-welcome/

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.