Removing IPs from setupVars.conf - 'pihole -g' won't work anymore

After updating to latest versions (Pi-hole v5.3 Web Interface v5.5 FTL v5.8) and removing IP addresses from setupVars.conf as described in the announcement, 'pihole -g' command does not work anymore.

issue:

pi@raspberrypi:~ $ pihole -g
  No IP addresses found! Please run 'pihole -r' to reconfigure

setupVars.conf:

WEBPASSWORD=c4ed4b14fd7a9306efb67c3e6f1c
DNSMASQ_LISTENING=single
DNS_FQDN_REQUIRED=true
DNS_BOGUS_PRIV=true
DNSSEC=true
REV_SERVER=true
REV_SERVER_CIDR=192.168.0.0/24
REV_SERVER_TARGET=192.168.0.1
REV_SERVER_DOMAIN=fritz.box
BLOCKING_ENABLED=true
PIHOLE_INTERFACE=eth0
PIHOLE_DNS_1=127.0.0.1#5335
PIHOLE_DNS_2=::1#5335
QUERY_LOGGING=true
INSTALL_WEB_SERVER=true
INSTALL_WEB_INTERFACE=true
LIGHTTPD_ENABLED=true
CACHE_SIZE=10000
ADMIN_EMAIL=
WEBUIBOXEDLAYOUT=boxed
WEBTHEME=default-darker

ifconfig:

pi@raspberrypi:~ $ ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.0.2  netmask 255.255.255.0  broadcast 192.168.0.255
        inet6 2003:XYZ:86c  prefixlen 64  scopeid 0x0<global>
        inet6 fd00::70fc:7114:a1f6:9b24  prefixlen 64  scopeid 0x0<global>
        inet6 fe80::c1c1:5321:25f8:e87  prefixlen 64  scopeid 0x20<link>
        ether b8:27:eb:bd:5c:aa  txqueuelen 1000  (Ethernet)
        RX packets 3197414  bytes 658461879 (627.9 MiB)
        RX errors 0  dropped 408977  overruns 0  frame 0
        TX packets 2362117  bytes 618913772 (590.2 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

dhcpcd.conf:

pi@raspberrypi:~ $ sudo nano /etc/dhcpcd.conf 
interface eth0
static ip_address=192.168.0.2/24
static ip6_address=fd00::70fc:7114:a1f6:9b24/64
static routers=192.168.0.1
static domain_name_servers=::1
static domain_search=

Debug token

https://tricorder.pi-hole.net/ow5jaqcb1a

Thanks for the report. The comment about the possibility to remove the variables from setupVars.conf was (initially) meant to be an internal one and it seems we forgot a few spots.

Proposed fix:

1 Like

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