After my installation of Pi-Hole, I am suffering an issue where I am getting ERR_CONNECTION_REFUSED when attempting to access the Pi-Hole admin page. I did some research and it seems to be an issue regarding my firewall and/or iptables.
So by default, it prompts me with a warning if the connection is not https, however, I do use the option to continue with the website, at which point it will hit me with the error mentioned above. I tried different browsers too, but, no luck.
There are quite a few lines indicating an invalid HTTP request in your debug log:
*** [ DIAGNOSING ]: contents of /var/log/lighttpd
-rw-r--r-- 1 www-data www-data 955 Nov 14 20:58 /var/log/lighttpd/error-pihole.log
-----head of error-pihole.log------
2022-11-14 20:57:56: connections.c.750) invalid request-line -> sending Status 400
If you monitor /var/log/lighttpd/error-pihole.log, would you be able to confirm that those lines would correlate with your failed attempts to login?
If so, would you be able to get hold of the HTTP request as sent by your browser?
For whatever reason it does seem to work now, I didn't make any changes on any device after I posted this issue. Not sure what the issue could have been. Regardless I'll have a look at that log and see what I can find from there. Thanks for the help.
For anyone else experiencing the same issue honestly you might just need to wait for 12 hrs or so for it to work. If the issue does arise again, I'll make another post following up where I left off.
I only can guess, but I suspect a cookie your browser stored for your Pi-hole page may have become corrupted or incompatible with Pi-hole's new web UI, e.g. if it contained illegit characters. At least, that could have explained the 'invalid request line' errors.
If that would have been the case, clearing your browser's cookies may have helped.
But obviously, we won't be able to find out now.