Please follow the below template, it will help us to help you!
Expected Behaviour:
Pihole functions properly, and I see queries logged on the Dashboard page. I wanted to see long-term data
Actual Behaviour:
Nothing shows up in Long term data. Even changing date range to last 7/30 days and apply, still nothing showed up.
Checked query count in /etc/pihole/pihole-FTL.db and got 0!
An observance from your debug log. This may not be related to the problem you are experiencing, but several of the block lists to which you subscribe are in incorrect format or don't lead to a text file.
That's fine if it's empty. That means you are running the default configuration and haven't changed any options. You can stop logging to the database with one of the options.
In addition to the chown I ended up trying a chmod to 664 as the file was listed as 644 not giving the pihole user write permission. It seems to be working now.
pi@pi-3b-3:~ $ ls -al /etc/pihole/pihole-FTL.db
-rw-r--r-- 1 root pihole 37810176 Oct 21 17:08 /etc/pihole/pihole-FTL.db
sudo chmod 664 /etc/pihole/pihole-FTL.db
pi@pi-3b-3:~ $ ls -al /etc/pihole/pihole-FTL.db
-rw-rw-r-- 1 root pihole 37810176 Oct 21 17:08 /etc/pihole/pihole-FTL.db
The errors in my log were:
pi@pi-3b-3:~ $ tail -f /var/log/pihole-FTL.log
[2018-10-21 18:45:03.056] Listening on port 4711 for incoming IPv6 telnet connections
[2018-10-21 18:45:03.057] Listening on Unix socket
[2018-10-21 18:45:03.058] Compiled 0 Regex filters and 2 whitelisted domains in 0.1 msec (0 errors)
[2018-10-21 18:45:03.058] /etc/pihole/black.list: parsed 0 domains (took 0.0 ms)
[2018-10-21 18:45:03.872] /etc/pihole/gravity.list: parsed 129535 domains (took 814.0 ms)
[2018-10-21 18:46:01.460] save_to_DB() - SQL error (8): attempt to write a readonly database
[2018-10-21 18:46:01.464] save_to_DB() - SQL error (8): attempt to write a readonly database
[2018-10-21 18:46:01.464] save_to_DB() - SQL error (8): attempt to write a readonly database
[2018-10-21 18:46:01.465] save_to_DB() - exiting due to too many errors
[2018-10-21 18:46:01.465] dbquery(UPDATE counters SET value = value + 0 WHERE id = 0;) - SQL error (8): attempt to write a readonly database
I changed the initd file, and reloaded systemctl afterward. If i have the time, i will soon try another distro on my pi2, since im using dietpi and maybe their changes somehow affect pihole.