Query Log bug tied to compression in lighttpd

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

Expected Behaviour:

The Query Log screen of the web interface displays logging information.

Actual Behaviour:

The Query Log screen of the web interface does not display logging information, even with all clients selected (ie. no filter).

Debug Token:

rif3kv4xxe

Not quite following here ... Can you please elaborate on this ?

Sorry, hit the post button early and was shortly thereafter called away.

Basically, I've got a more-or-less vanilla install on Raspbian Stretch and lighttpd was configured with mod_compress by default. This default (maybe not the fact that this module was enabled, but also the way it was configured) breaks the Query Log page of the web interface.

When I comment out mod_compress, the Query Log page displays log info. With the module active, it displays an error in the Dev Tools console: ERR_CONTENT_DECODING_FAILED and does not display any logging data.

Relevant portion of lighttpd.conf:

compress.cache-dir = "/var/cache/lighttpd/compress/"
compress.filetype = ( "application/javascript", "text/css", "text/html", "text/plain" )

Here's some of pihole -d:

*** [ DIAGNOSING ]: Core version
[i] Core: v4.3.1 (How do I update Pi-hole?)
[i] Branch: master
[i] Commit: v4.3.1-0-g1a741f6

*** [ DIAGNOSING ]: Web version
[i] Web: v4.3 (How do I update Pi-hole?)
[i] Branch: master
[i] Commit: v4.3-0-g44aff72

*** [ DIAGNOSING ]: FTL version
[✓] FTL: v4.3.1

*** [ DIAGNOSING ]: lighttpd version
[i] 1.4.45

*** [ DIAGNOSING ]: php version
[i] 7.0.33

*** [ DIAGNOSING ]: Operating system
[✓] Raspbian GNU/Linux 9 (stretch)

This sounds like a lighttpd issue, as that module is not behaving as expected.

I downloaded a copy of the queries.js file from the repo (AdminLTE/queries.js at master · pi-hole/AdminLTE · GitHub), diff'd it with what was on the server, and then patched the file on the server. Now the page loads fine, with compression enabled for javascript.

But the only difference that was shown between the two is in the leading comment:

root@pibox:/var/www/html/admin/scripts/pi-hole/js# diff -a queries.js queries.js.bkup
1c1,2
< /* 2017 Pi-hole, LLC (https://pi-hole.net)
---
> /* Pi-hole: A black hole for Internet advertisements
> *  (c) 2017 Pi-hole, LLC (https://pi-hole.net)

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