Unable to run pihole command

please run lsof -l :80 and provide the output ...it should only show lighttpd

do you have anything else running on this system or just pi-hole ?

Nothing else running.

pi@raspberrypi:~ $ lsof -l :80
lsof: status error on :80: No such file or directory
lsof 4.89
latest revision: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/
latest FAQ: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/FAQ
latest man page: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/lsof_man
usage: [-?abhKlnNoOPRtUvVX] [+|-c c] [+|-d s] [+D D] [+|-E] [+|-e s] [+|-f[gG]]
[-F [f]] [-g [s]] [-i [i]] [+|-L [l]] [+m [m]] [+|-M] [-o [o]] [-p s]
[+|-r [t]] [-s [p:s]] [-S [t]] [-T [t]] [-u s] [+|-w] [-x [fl]] [--] [names]
Use the ``-h'' option to get more help information.

thats my fault shoud be lsof -i :80. also what is the return of ip a

lsof -i :80 returns nothing.

pi@raspberrypi:~ $ lsof -i :80
pi@raspberrypi:~ $ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
link/ether b8:27:eb:21:e6:94 brd ff:ff:ff:ff:ff:ff
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether b8:27:eb:74:b3:c1 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.100/24 brd 192.168.1.255 scope global wlan0
valid_lft forever preferred_lft forever
inet6 fe80::823f:f54a:f4fa:c773/64 scope link
valid_lft forever preferred_lft forever

are you running the pihole over wifi if so you need to run pihoile -r and select reconfigure telling it to use the wlan0 interface. your eth0 interface does nbot have a IP associated with it which might explain what is going on here

Running reconfigure now with switch to wlan0. When it's done, anything specific I should test/check?

Update: completed the reconfigure. No access to the console. Can't open any other pages either atm.

Noticed this error in the reconfigure:

[✗] Downloading and Installing FTL
Error: Unable to get latest release location from GitHub
[✗] FTL Engine not installed

sudo nano /etc/resolv.conf change 127.0.0.1 to 8.8.8.8 the re do the reconfigure

Same error as previous. No change in status.

also make sure that the IP address your wlan interface has is what you have set as DNS in your router

resolv.conf changes weren't saved. Trying again...

the resolv.conf changes will be reverted by the reconfigure command we only changed them the first time to get around resolution errors during the install script

Don't think I saved the resolv.conf properly the first time, so re-running just to be sure. Where can I confirm the wlan interface IP?

from ip a in a previous step

Same error re: FTL binary. Also:

pi@raspberrypi:~ $ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
link/ether b8:27:eb:21:e6:94 brd ff:ff:ff:ff:ff:ff
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether b8:27:eb:74:b3:c1 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.100/24 brd 192.168.1.255 scope global wlan0
valid_lft forever preferred_lft forever
inet6 fe80::823f:f54a:f4fa:c773/64 scope link
valid_lft forever preferred_lft forever

try http://192.168.1.100/admin

That worked - why is it stuck on .100 instead of .253 as I set it in the config?

because the wlan0 inerface has that IP and your eth0 interface has no IP associated with it. If you change your DNS in the router to 192.168.1.100 everything should work as expected

1 Like

Indeed it does work. However, is it OK to use that IP for the DNS?

yes just make sure you set a static reservation in your router so it always gets that address

This look OK?

image