Error Pi-hole DNS

Hello,

I have installed PI-hole and after the installation I can open the Pi-hole GUI and log in with the admin user. If I click on “save” on the DNS page under Settings without making any changes, I get the following error message:

There was a problem applying your settings.
Debugging information:
PHP error (2): syntax error, unexpected '=' in /var/snap/pihole/current/config/pihole/pihole-FTL.conf on line 8 in /snap/pihole/537/web/scripts/pi-hole/php/FTL.php:23

When I look at the specified file, it looks like this:

DBFILE=/var/snap/pihole/common/pihole-FTL.db
LOGFILE=/var/snap/pihole/common/log/pihole-FTL.log
PIDFILE=/var/snap/pihole/common/ftl.pid
PORTFILE=/var/snap/pihole/common/ftl.port
SOCKETFILE=/var/snap/pihole/common/ftl.sock
GRAVITYDB=/var/snap/pihole/current/gravity.db
SETUPVARSFILE=/var/snap/pihole/current/setupVars.conf
AUDITLISTFILE=/var/snap/pihole/current/auditlog.listRATE_LIMIT=1000/60

In the AUDITFILELIST line, it looks to me like a RETURN is missing. I have changed it like this:

AUDITLISTFILE=/var/snap/pihole/current/auditlog.list
RATE_LIMIT=1000/60

If I then click on save, I get the following error:

FTL failed to start due to bad option at line 39 of /var/snap/pihole/current/config/01-pihole.conf

Here is the content of the file:

addn-hosts=/var/snap/pihole/current/config/pihole/local.list
addn-hosts=/var/snap/pihole/current/config/pihole/custom.list
localise-queries
no-resolv
cache-size=10000
#log-queries
#log-facility=/var/snap/pihole/common/log/pihole.log
local-ttl=2
log-asyncserver=208.67.222.222
server=208.67.222.222
server=208.67.220.220
server=2620:0:ccc::2
server=2620:0:ccd::2
domain-needed
expand-hosts
bogus-priv
interface=eth0

Line 39 is:

log-asyncserver=208.67.222.222

I’m not sure what’s wrong with this?

Then I see in the GUI as status that DS is no longer running … ?

Can anyone tell me what I am doing wrong here?
I have not yet configured / changed anything in the FritzBox.

Greetings,
Ralf

I see the error, let me check

There is another file to fix, line 39:
/var/snap/pihole/current/config/01-pihole.conf

Wrong:

log-asyncserver=208.67.222.222

Good:

log-async
server=208.67.222.222

Then:

systemctl start snap.pihole.ftl

Try to see if that helps, I will produce a proper app fix.

1 Like

Hello Boris,

oh man, I should have seen that too … I thought the property would be called log-asyncserver :rofl:
After I have changed the line according to your specifications, the “save” in the DNS tab works without an error message.
However, the GUI shows me the following warning in Pi-hole Diagnosis Tab:

Can I ignore these messages?

Greetings,
Ralf

I guess ad list servers come and go, as long as you have something should be fine.
If you see too many unavailable, I will try to upgrade to the latest version maybe the creators added more by now.

Yes, there is one in the list with a green tick and three with a green reload tick. I think that’s OK, I’ll keep an eye on it and post here again if things change for the worse.