Pihole Query Logs - An unknown error occurred

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

Expected Behaviour:

The query logs should load the 100 most recent queries that have been logged

Actual Behaviour:

A JS alert dialog pops up with the below message:

This doesn’t happen all the time, but seems to happen for a few minutes at a time when it does. I don’t see any immediate errors in pihole.log when I check it, so not sure what’s going on.

I’m literally not doing anything to “fix” it, it just starts working again. Not flushing queries, nothing.

Debug Token:


Try get some loggings from lighttpd when this happens:

sudo tail -f /var/log/lighttpd/access.log /var/log/lighttpd/error.log

EDIT: might want to include loggings from FTL as well:

sudo tail -f /var/log/lighttpd/access.log /var/log/lighttpd/error.log /var/log/pihole-FTL.log

Will do next time it happens and post in this thread.

Had it happen just now, @deHakkelaar

sudo tail -f /var/log/lighttpd/access.log /var/log/lighttpd/error.log /var/log/pihole-FTL.log
==> /var/log/lighttpd/access.log <==
1574765231|pi.hole|GET /admin/api.php?summaryRaw&topItems HTTP/1.1|200|1084
1574765231|pi.hole|GET /admin/api.php?summaryRaw&getQuerySources&topClientsBlocked HTTP/1.1|200|870
1574765242|pi.hole|GET /admin/api.php?summary HTTP/1.1|200|528
1574765245|pi.hole|GET /admin/api.php?getQueryTypes HTTP/1.1|200|103
1574765245|pi.hole|GET /admin/api.php?summaryRaw&topItems HTTP/1.1|200|1084
1574765246|pi.hole|GET /admin/api.php?summaryRaw&getQuerySources&topClientsBlocked HTTP/1.1|200|870
1574765247|pi.hole|GET /admin/api.php?summary HTTP/1.1|200|528
1574765257|pi.hole|GET /admin/api.php?summary HTTP/1.1|200|528
1574765258|pi.hole|GET /admin/api.php?summaryRaw&topItems HTTP/1.1|200|1084
1574765258|pi.hole|GET /admin/api.php?summaryRaw&getQuerySources&topClientsBlocked HTTP/1.1|200|870

==> /var/log/lighttpd/error.log <==
2019-11-24 00:00:04: (server.c.1759) logfiles cycled UID = 0 PID = 403 

==> /var/log/pihole-FTL.log <==
[2019-11-26 05:45:33.512 1026] Received SIGHUP, reloading cache
[2019-11-26 05:45:33.513 1026] Blocking status is enabled
[2019-11-26 05:45:33.513 1026] Compiled 0 Regex filters and 0 whitelisted domains in 0.1 msec (0 errors)
[2019-11-26 05:45:34.548 1026] /etc/pihole/black.list: parsed 2 domains (took 0.1 ms)
[2019-11-26 05:45:39.387 1026] /etc/pihole/gravity.list: parsed 1268899 domains (took 4838.7 ms)
[2019-11-26 05:45:43.307 1026] Received SIGHUP, reloading cache
[2019-11-26 05:45:43.307 1026] Blocking status is enabled
[2019-11-26 05:45:43.308 1026] Compiled 1 Regex filters and 0 whitelisted domains in 0.8 msec (0 errors)
[2019-11-26 05:45:44.386 1026] /etc/pihole/black.list: parsed 2 domains (took 0.1 ms)
[2019-11-26 05:45:49.215 1026] /etc/pihole/gravity.list: parsed 1268899 domains (took 4828.8 ms)

I cant see anything out of the ordinary.
Do you experience same on another device with another browser ?

Upload another debug log and post token here so a dev or mod can have a look.
Uploaded debug logs to tricorder have a retention of I believe 48 hours.

@deHakkelaar Happened again, so took a debug log.

You’re running an unsupported modification to the code. You’ll need to contact the author of that for support.

*** [ DIAGNOSING ]: Web version
[i] Web: v4.3.2 (https://discourse.pi-hole.net/t/how-do-i-update-pi-hole/249)
[i] Branch: master
[i] Commit: v4.3.2-0-g38d8e77-dirty
[i] Status:  M style/vendor/AdminLTE.min.css
            ?? style/vendor/AdminLTE.css
            ?? style/vendor/AdminLTE.min.bkp.css
            ?? style/vendor/AdminLTE.min.css.bck2
[i] Diff: diff --git a/style/vendor/AdminLTE.min.css b/style/vendor/AdminLTE.min.css
          index d5efbc5..7633e95 100644
          --- a/style/vendor/AdminLTE.min.css
          +++ b/style/vendor/AdminLTE.min.css
          @@ -1,7 +1,29 @@
           @import url(SourceSansPro/SourceSansPro.css);/*!
            *   AdminLTE v2.1.2
            *   Author: Almsaeed Studio
          - *	 Website: Almsaeed Studio <http://almsaeedstudio.com>
          + *   Website: Almsaeed Studio <http://almsaeedstudio.com>
          + *   Darkification-Author: LKD70

I’ve reset the CSS changes with a git reset, will post here with another debug log if it happens again.

Did you change the upstream back to our repository?

Upstream was never changed, just manually changed files locally.

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