tobbi
April 16, 2024, 12:18am
1
I just noticed that the "Queries in the last 24 hours" bar chart is empty. I generated a debug log for you to take a look at.
Here's my debug log:
https://tricorder.pi-hole.net/heqBF4C4/
Your debug log shows that your router is distributing its own IP address as local DNS server:
*** [ DIAGNOSING ]: Discovering active DHCP servers (takes 10 seconds)
Scanning all your interfaces for DHCP servers
* Received 548 bytes from eth0:192.168.178.1
Offered IP address: 192.168.178.23
DHCP options:
Message type: DHCPOFFER (2)
router: 192.168.178.1
dns-server: 192.168.178.1
How did you configure your router to take advantage of Pi-hole?
tobbi
April 16, 2024, 9:37am
3
I used this Pi-hole as upstream DNS server for your Fritz!Box .
Also, this used to work until very recently when my raspberrypi had to be restarted.
Did you perhaps allow usage of fallback DNS servers in your FritzBox configuration, allowing your FB to use public DNS servers instead of Pi-hole?
tobbi
April 16, 2024, 10:11am
5
My Pi-hole is actively used and I can see the numbers in "Total queries" going up. It's just the bar chart that doesn't display anything.
tobbi
April 16, 2024, 10:44am
6
What is the API endpoint that's responsible for getting that data? Maybe I can check my query log.
tobbi
April 16, 2024, 3:26pm
7
I created an issue on the github as well:
opened 03:25PM - 16 Apr 24 UTC
### Versions
- Pi-hole: v5.18.2
- AdminLTE: v5.21
- FTL: v5.25.1
### … Platform
- OS and version: Debian 10
- Platform: Raspberry Pi
### Expected behavior
"Total queries over last 24 hours" is showing live data and updating
### Actual behavior / bug
"Total queries over last 24 hours" is empty and not updating
### Steps to reproduce
Steps to reproduce the behavior:
1. Go to the pihole admin interface and log in.
2. Select "Dashboard" from the top left.
4. See the total queries bar chart and how it's not updating.
## Debug Token
- URL: https://tricorder.pi-hole.net/heqBF4C4/
<!--
Token generated by running `pihole -d`. https://docs.pi-hole.net/core/pihole-command/#debugger
The token is displayed at the end of the debug process if you allow for uploading the log file.
[✓] Your debug token is: https://tricorder.pi-hole.net/wim5hft4rq
Debug logs are visible ONLY to developers and support staff. They are not publically accessible and all logs are automatically deleted after 48 hours.
-->
### Screenshots
![Screenshot at Apr 16 17-24-49](https://github.com/pi-hole/web/assets/583169/cddec9f8-5e9c-41d9-b0b7-19836192d6e3)
### Additional context
I posted about this problem here https://discourse.pi-hole.net/t/potential-bug-total-queries-over-last-24-hours-empty/69602 already. I just want to make sure to cross-reference this.
What API is responsible for updating the live data? I can check what the API returns for me then.
jfb
April 16, 2024, 4:47pm
8
There are a variety of calls that will show contents of the query database:
echo ">stats >quit" | nc localhost 4711
echo ">top-clients >quit" | nc localhost 4711
echo ">top-domains >quit" | nc localhost 4711
echo ">top-ads >quit" | nc localhost 4711
echo ">querytypes >quit" | nc localhost 4711
echo ">dbstats >quit" | nc localhost 4711
echo ">overTime >quit" | nc localhost 4711
I answered your question in Github earlier. There are more than one API endpoint:
Total queries 24h graph: admin/api.php?overTimeData10mins
;
Clients over 24h graph: api.php?overTimeDataClients&getClientNames
;
Query Types graph (this is working in your github screenshot) : api.php?getQueryTypes
;
Upstream servers graph (also working) : api.php?getForwardDestinations
.
That screenshot posted in Github shows the first graphic is empty and the second one is absent.
Do you see any error messages in your browser Console (devtools) ?
tobbi
April 16, 2024, 10:05pm
10
Sorry for cross-posting across support channels. If you'd like to suggest one platform where we can continue, I'll go ahead.
I do not see any errors in the browser console. Furthermore, I tried the same thing in Chromium where it also doesn't display the data. A few things happened in the last few days: One was that my raspberry pi shut down unexpectedly and I had to restart, the other one is a few ISP issues (15 minutes without internet access) that shouldn't have had any effect on this.
tobbi
April 16, 2024, 10:10pm
11
Here are the results for those queries:
jfb:
echo ">stats >quit" | nc localhost 4711
domains_being_blocked 1569084
dns_queries_today 22858
ads_blocked_today 1329
ads_percentage_today 5.814157
unique_domains 2309
queries_forwarded 17964
queries_cached 1871
clients_ever_seen 5
unique_clients 5
dns_queries_all_types 22858
reply_UNKNOWN 6637
reply_NODATA 1189
reply_NXDOMAIN 3
reply_CNAME 5748
reply_IP 7827
reply_DOMAIN 89
reply_RRNAME 0
reply_SERVFAIL 1
reply_REFUSED 926
reply_NOTIMP 0
reply_OTHER 0
reply_DNSSEC 3
reply_NONE 0
reply_BLOB 435
dns_queries_all_replies 22858
privacy_level 0
status enabled
echo ">top-clients >quit" | nc localhost 4711
0 23430 192.168.178.1 fritz.box
1 1 127.0.0.1 localhost
2 1 192.168.178.23 raspberrypi.fritz.box
3 1 ::1 localhost
4 1 "my public v6 IP" raspberrypi.fritz.box
echo ">top-domains >quit" | nc localhost 4711
0 1307 spclient.wg.spotify.com
1 1113 matrix-client.matrix.org
2 929 optimizationguide-pa.googleapis.com
3 662 gew4-spclient.spotify.com
4 565 e17437.dsct.akamaiedge.net
5 516 apptrailers.itunes.g.aaplimg.com
6 511 weather-data.apple.com.akadns.net
7 498 a2047.dscapi9.akamai.net
8 487 play.google.com
9 476 www.youtube.com
echo ">top-ads >quit" | nc localhost 4711
0 258 incoming.telemetry.mozilla.org
1 151 mobile.events.data.microsoft.com
2 121 googleads.g.doubleclick.net
3 98 e.reddit.com
4 97 jnn-pa.googleapis.com
5 76 static.doubleclick.net
6 59 o22381.ingest.sentry.io
7 58 vulcan5.branch.io
8 50 w3-reporting.reddit.com
9 22 zml-apm-prd.dbv4.noncd.db.de
echo ">querytypes >quit" | nc localhost 4711
A (IPv4): 50.24
AAAA (IPv6): 39.48
ANY: 0.00
SRV: 0.02
SOA: 0.00
PTR: 0.39
TXT: 0.00
NAPTR: 0.00
MX: 0.00
DS: 0.00
RRSIG: 0.00
DNSKEY: 0.00
NS: 0.00
OTHER: 0.00
SVCB: 0.00
HTTPS: 9.87
echo ">dbstats >quit" | nc localhost 4711
queries in database: 4072389
database filesize: 204.75 MB
SQLite version: 3.42.0
echo ">overTime >quit" | nc localhost 4711
1712962500 0 0
1712963100 0 0
1712963700 0 0
1712964300 0 0
1712964900 0 0
1712965500 0 0
1712966100 0 0
1712966700 0 0
1712967300 0 0
1712967900 0 0
1712968500 0 0
1712969100 0 0
1712969700 0 0
1712970300 0 0
1712970900 0 0
1712971500 0 0
1712972100 0 0
1712972700 0 0
1712973300 0 0
1712973900 0 0
1712974500 0 0
1712975100 0 0
1712975700 0 0
1712976300 0 0
1712976900 0 0
1712977500 0 0
1712978100 0 0
1712978700 0 0
1712979300 0 0
1712979900 0 0
1712980500 0 0
1712981100 0 0
1712981700 0 0
1712982300 0 0
1712982900 0 0
1712983500 0 0
1712984100 0 0
1712984700 0 0
1712985300 0 0
1712985900 0 0
1712986500 0 0
1712987100 0 0
1712987700 0 0
1712988300 0 0
1712988900 0 0
1712989500 0 0
1712990100 0 0
1712990700 0 0
1712991300 0 0
1712991900 0 0
1712992500 0 0
1712993100 0 0
1712993700 0 0
1712994300 0 0
1712994900 0 0
1712995500 0 0
1712996100 0 0
1712996700 0 0
1712997300 0 0
1712997900 0 0
1712998500 0 0
1712999100 0 0
1712999700 0 0
1713000300 0 0
1713000900 0 0
1713001500 0 0
1713002100 0 0
1713002700 0 0
1713003300 0 0
1713003900 0 0
1713004500 0 0
1713005100 0 0
1713005700 0 0
1713006300 0 0
1713006900 0 0
1713007500 0 0
1713008100 0 0
1713008700 0 0
1713009300 0 0
1713009900 0 0
1713010500 0 0
1713011100 0 0
1713011700 0 0
1713012300 0 0
1713012900 0 0
1713013500 0 0
1713014100 0 0
1713014700 0 0
1713015300 0 0
1713015900 0 0
1713016500 0 0
1713017100 0 0
1713017700 0 0
1713018300 0 0
1713018900 0 0
1713019500 0 0
1713020100 0 0
1713020700 0 0
1713021300 0 0
1713021900 0 0
1713022500 0 0
1713023100 0 0
1713023700 0 0
1713024300 0 0
1713024900 0 0
1713025500 0 0
1713026100 0 0
1713026700 0 0
1713027300 0 0
1713027900 0 0
1713028500 0 0
1713029100 0 0
1713029700 0 0
1713030300 0 0
1713030900 0 0
1713031500 0 0
1713032100 0 0
1713032700 0 0
1713033300 0 0
1713033900 0 0
1713034500 0 0
1713035100 0 0
1713035700 0 0
1713036300 0 0
1713036900 0 0
1713037500 0 0
1713038100 0 0
1713038700 0 0
1713039300 0 0
1713039900 0 0
1713040500 0 0
1713041100 0 0
1713041700 0 0
1713042300 0 0
1713042900 0 0
1713043500 0 0
1713044100 0 0
1713044700 0 0
1713045300 0 0
1713045900 0 0
1713046500 0 0
1713047100 0 0
1713047700 0 0
1713048300 0 0
1713048900 22694 1315
That may indicate a time issue.
Verify that time and timezone are correct for both the machine hosting your Pi-hole as well as the one running the browser accessing Pi-hole's dashboard.
tobbi
April 16, 2024, 10:47pm
13
pi@raspberrypi:~ $ date
Wed 17 Apr 00:45:39 CEST 2024
user@My-MacBook-Pro % date
Mi 17 Apr 2024 00:46:40 CEST
Seems okay
The results above for >overTime
are showing timestamps from 3 or 4 days ago:
1712962500
=> GMT : Friday, 12 April 2024 22:55:00
1713048900
=> GMT : Saturday, 13 April 2024 22:55:00
tobbi
April 16, 2024, 11:08pm
15
Any idea what might cause that? Is a certain process not running?
Do you see any data on the Long-term Data > Graphics page?
Try the graphic selecting "Today", "Yesterday" and "Last 7 days".
tobbi
April 16, 2024, 11:24pm
18
I see data for all the ranges:
tobbi
April 18, 2024, 9:15am
19
I'm gonna continue this issue only in here. Here's something I posted on the github issue:
Okay, so I noticed that admin/api.php?overTimeData10mins
(apparently only executed once when loading) returns
{"domains_over_time":[],"ads_over_time":[]}
Not sure if that is correct.
api.php?overTimeDataClients&getClientNames
returns
{"clients":[{"name":"fritz.box","ip":"192.168.178.1"},{"name":"localhost","ip":"127.0.0.1"},{"name":"raspberrypi.fritz.box","ip":"192.168.178.23"},{"name":"localhost","ip":"::1"},{"name":"raspberrypi.fritz.box","ip":"<my public v6 IP>"}],"over_time":[]}
tobbi
April 18, 2024, 9:16am
20
Is there anything else you need?
tobbi
April 22, 2024, 2:51pm
21
Anything further I can provide to help you debug this?