Web UI Displaying NaN on Fresh Install

Please follow the below template, it will help us to help you!

If you are Experiencing issues with a Pi-hole install that has non-standard elements (e.g you are using nginx instead of lighttpd, or there is some other aspect of your install that is customised) - please use the Community Help category.

Expected Behaviour:

After a fresh install on Raspberry Pi OS, the web UI should be displaying stats.

Actual Behaviour:

Debug Token:

fxXjDFXs

Thanks in advance!

Do you see any error messages on the browser Developer Tools (usually F12 key, open the tab "Console")?

Yes, there are two:

Uncaught TypeError: can't convert undefined to object
    objectToArray http://192.168.12.6/admin/scripts/pi-hole/js/utils.js?v=1691705757:57
    updateQueriesOverTime http://192.168.12.6/admin/scripts/pi-hole/js/index.js?v=1691705757:226
    jQuery 8
    updateQueriesOverTime http://192.168.12.6/admin/scripts/pi-hole/js/index.js?v=1691705757:220
    <anonymous> http://192.168.12.6/admin/scripts/pi-hole/js/index.js?v=1691705757:980
    jQuery 13
utils.js:57:21
Uncaught TypeError: can't convert undefined to object
    updateForwardDestinationsPie http://192.168.12.6/admin/scripts/pi-hole/js/index.js?v=1691705757:432
    jQuery 8
    updateForwardDestinationsPie http://192.168.12.6/admin/scripts/pi-hole/js/index.js?v=1691705757:420
    <anonymous> http://192.168.12.6/admin/scripts/pi-hole/js/index.js?v=1691705757:1225
    jQuery 13
index.js:432:12

I just tried logging in from a different browser on the same device (Chromium instead of Firefox) and the UI is working as expected in Chromium. I restarted Firefox entirely and am still seeing the same issue.

What is the output on the Pi-hole terminal from the commands

sudo ls -ld /var/log/lighttpd
sudo ls -la /var/log/lighttpd/access.log
sudo ls -la /var/log/lighttpd/error.log

They should all be owned by user www-data and group www-data

These error messages are expected when the web interface is not able to communicate with FTL API.

The debug log shows the web interface is working as expected, but apparently your Firefox is not able to connect. Also, there is an authentication error:

2023-08-10 15:57:54: mod_fastcgi.c.487) FastCGI-stderr:Security alert: presented "persistentlogin" token did not pass safety check!

Are you using some browser extension to handle or block cookies?
On Firefox, can you try to clear all cookies (clicking on the padlock icon) and try again?

Ownership and permissions look good for that:

sudo ls -ld /var/log/lighttpd
drwxr-x--- 2 www-data www-data 4096 Aug 10 15:17 /var/log/lighttpd/

sudo ls -la /var/log/lighttpd/access.log
-rw-r--r-- 1 www-data www-data 542 Aug 10 16:41 /var/log/lighttpd/access.log

sudo ls -la /var/log/lighttpd/error.log
-rw-r--r-- 1 www-data www-data 139 Aug 10 15:17 /var/log/lighttpd/error.log

Cleared all cookies and site data and that did the trick! Everything is showing as expected now.

I did also disable enhanced tracking protections in Firefox but it said it wasn't blocking anything and reenabling it doesn't seem to have any effect. None of my other browser extensions should block any cookies.

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