Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Total queries over last 24 hours" empty #3004

Closed
tobbi opened this issue Apr 16, 2024 · 4 comments
Closed

"Total queries over last 24 hours" empty #3004

tobbi opened this issue Apr 16, 2024 · 4 comments

Comments

@tobbi
Copy link

tobbi commented Apr 16, 2024

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.
  3. See the total queries bar chart and how it's not updating.

Debug Token

Screenshots

Screenshot at Apr 16 17-24-49

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.

@rdwebdesign
Copy link
Member

What API is responsible for updating the live data?

More than one:

  • Total queries 24h graph: admin/api.php?overTimeData10mins;
  • Clients over 24h graph: api.php?overTimeDataClients&getClientNames;
  • Query Types graph (this is working in your screenshot): api.php?getQueryTypes;
  • Upstream servers graph (also working): api.php?getForwardDestinations.

@tobbi
Copy link
Author

tobbi commented Apr 16, 2024

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":[]}

@rdwebdesign
Copy link
Member

Please post your answers (including the last one above) in Discourse topic to keep all information in one place.

@tobbi
Copy link
Author

tobbi commented Apr 28, 2024

This issue was resolved after I restarted my Raspberry Pi.

@tobbi tobbi closed this as completed Apr 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants