Web browser do ne allow access to pi.hole

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

Expected Behaviour:

Trying to access Web interface to verify if pi-hole is set-up correctly. When i go through putty i can do pihole command

Actual Behaviour:

Get a following web browser error:

Ce site est inaccessible

192.168.0.191 n'autorise pas la connexion.

Voici quelques conseils :

ERR_CONNECTION_REFUSED

Please notice that i have never get any page during the set-up that give me a password.

Debug Token:

Debug log made private by moderator.

There are a few problems shown in your debug log, including an empty gravity list. Do the following to allow the Pi to temporarily bypass Pi-Hole, and repair your installation.

sudo nano /etc/resolv.conf

edit nameserver 127.0.0.1 to nameserver 9.9.9.9 or your preferred third party DNS service, save and exit

Run pihole -r and select repair.

Sorry, I am a newby , so what do you ask: edit name server 127.0.0.1 to nameserver 9.9.9.9.
I am not sure what to do ??

The first command (sudo nano /etc/resolv.conf) invokes a text editor that opens up the file. From there, you edit it to put in the new nameserver, then save and exit from the editor.

This is done from the Pi terminal. The editor window will look like this (nothing has been edited at this point):

After you edit, Ctrl-X will exit (select save there).

Thanks for the quyick reply, I am not sure of what is name server ,. is it the IP adress of the PI-hole ?
Sorry for my poor knowledge on thois topic...

The nameserver (listed in the file /etc/resolv.conf) is the DNS server that the Pi device is using. By default, it is 127.0.0.1 (which is the loopback address of the Pi). This tells the Pi to use Pi-Hole for DNS resolution.

When Pi-Hole is misbehaving (as may be your case), when we temporarily change the 127.0.0.1 to another DNS (typically a commercial one like Quad 9 - 9.9.9.9), then the Pi can get to the internet by bypassing Pi-Hole.

After you edit the file, it should read as follows:

# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 9.9.9.9

Hi I did the change in name server with 9.9.9.9, and did again the pihole -r, then i retried to connect to WebInterface with my IP adress and get the same b browser error:

Ce site est inaccessible

192.168.0.191 n'autorise pas la connexion.

Voici quelques conseils :

ERR_CONNECTION_REFUSED

One of the other errors in your debug log was that lighttpd (the web server that serves the web admin GUI) is failed.

What is the output of these commands from the Pi terminal:

sudo service lighttpd status

sudo systemctl status --full --no-pager lighttpd

[quote="jfb, post:9, topic:20123"]
sudo service lighttpd status

[roger@roger-desktop:~$ sudo service lighttpd status
● lighttpd.service - Lighttpd Daemon
   Loaded: loaded (/lib/systemd/system/lighttpd.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since ven 2019-05-24 17:23:50 ADT; 24min ago
  Process: 17802 ExecStartPre=/usr/sbin/lighttpd -t -f /etc/lighttpd/lighttpd.conf (code=exited, status=127)

mai 24 17:23:50 roger-desktop systemd[1]: Starting Lighttpd Daemon...
mai 24 17:23:50 roger-desktop lighttpd[17802]: /usr/sbin/lighttpd: symbol lookup error: /usr/sbin/lighttpd: undefined symbol: FAMNoExists
mai 24 17:23:50 roger-desktop systemd[1]: lighttpd.service: Control process exited, code=exited status=127
mai 24 17:23:50 roger-desktop systemd[1]: Failed to start Lighttpd Daemon.
mai 24 17:23:50 roger-desktop systemd[1]: lighttpd.service: Unit entered failed state.
mai 24 17:23:50 roger-desktop systemd[1]: lighttpd.service: Failed with result 'exit-code'.
roger@roger-desktop:~$ sudo systemctl status --full --no-pager lighttpd
● lighttpd.service - Lighttpd Daemon
   Loaded: loaded (/lib/systemd/system/lighttpd.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since ven 2019-05-24 17:23:50 ADT; 25min ago
  Process: 17802 ExecStartPre=/usr/sbin/lighttpd -t -f /etc/lighttpd/lighttpd.conf (code=exited, status=127)

mai 24 17:23:50 roger-desktop systemd[1]: Starting Lighttpd Daemon...
mai 24 17:23:50 roger-desktop lighttpd[17802]: /usr/sbin/lighttpd: symbol lookup error: /usr/sbin/lighttpd: undefined symbol: FAMNoExists
mai 24 17:23:50 roger-desktop systemd[1]: lighttpd.service: Control process exited, code=exited status=127
mai 24 17:23:50 roger-desktop systemd[1]: Failed to start Lighttpd Daemon.
mai 24 17:23:50 roger-desktop systemd[1]: lighttpd.service: Unit entered failed state.
mai 24 17:23:50 roger-desktop systemd[1]: lighttpd.service: Failed with result 'exit-code'.

]

It looks like file montior is not installed. Run this command to install that software and see if this resolves the problem.

sudo apt-get install gamin

Hi,
Unfortunately ' it does not seem to work, I did and redo a debug, then tried to get to the Web Interface by typping the IP adress of the PIHole, I also tried by typing : http://pi.hole/admin

There is still the same error from the Web browser

Did you restart the web server? sudo service lighttpd restart

HI,
Thanks you very much, It work... I have access to the Pi Hole web interface ,
Have a good week-end

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