FTL failed to start due to illegal repeated keyword at line 1 of /etc/dnsmasq.d/02-custom-settings.conf.save

I swear all I did was unplug the pi for the first time in a few years

PHP error (2): fsockopen(): unable to connect to 127.0.0.1:4711 (Connection refused) in /var/www/html/admin/scripts/pi-hole/php/FTL.php:47

I had to

just to get the debug to not fail

debug token https://tricorder.pi-hole.net/6TdRJGAs/

The title already has the answer:

You have an extra file in /etc/dnsmasq.d directory. The file is 02-custom-settings.conf.save.

This .save extension is usually added by text editors, like nano, pico and others.
These .save files contains temporary saved text (a backup of the original file) when you are editing a file.

Your log shows you actually have 3 versions of the same file (the original and 2 backups), causing the repeated keywords:

-rw-r--r-- 1 root root 57 Jun 19 17:29 /etc/dnsmasq.d/02-custom-settings.conf
   dns-forward-max=5096
   min-cache-ttl=300
   rebind-domain-ok=

-rwxr-xr-x 1 root root 57 Jun 19 17:19 /etc/dnsmasq.d/02-custom-settings.conf.save
   dns-forward-max=5096
   min-cache-ttl=300
   rebind-domain-ok=

-rw------- 1 root root 59 Jun 12 15:04 /etc/dnsmasq.d/02-custom-settings.conf.save.1
   dns-forward-max=5096
   min-cache-ttl=300
   rebind-domain-ok=~

Just delete /etc/dnsmasq.d/02-custom-settings.conf.save and /etc/dnsmasq.d/02-custom-settings.conf.save.1 and restart Pi-hole

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