Please follow the below template, it will help us to help you!
Expected Behaviour:
FTL and dns start normally and dns works.
Actual Behaviour:
After changing the cache size of pi hole, the FTL and dns service stopped. I saved the config with teleporter, then deleted pi hole using the command sudo rm -rf /etc/.pihole /etc/pihole /opt/pihole /usr/bin/pihole-FTL /usr/local/bin/pihole /var/www/html/admin
. Then I fresh installed pi hole with curl -sSL https://install.pi-hole.net | bash
. FTL and DNS still didn’t work, so I deleted it and reinstalled it with the git clone method. Same problem. Many people experienced this, but none of those threads solutions worked for me. Now I have no pi hole!
Used the official installation instructions found here
https://github.com/pi-hole/pi-hole/#one-step-automated-install
Debug Token:
Where in Pihole d will I find this?
jfb
August 8, 2020, 1:18am
2
Why did you do this, and how did you do this?
@jfb I thought more cache would be faster dns on most used websites
I edited cache value in here
/etc/dnsmasq.d/01-pihole.conf
See this guide :
jfb
August 8, 2020, 2:31am
4
There is no benefit in enlarging this number except if the DNS cache evictions count is larger than zero.
What is the current status of your Pi-hole? Installed? Not working? Can you generate a debug log and upload it?
@jfb I still thought to give it a shot because others did too
Here is my debug link https://tricorder.pi-hole.net/sc1bwbmpyh
Pi hole is currently installed fresh 5.1.1, with FTL and web ui at 5.1
The dns service and FTL service will not start
Ui looks like this:
jfb
August 8, 2020, 3:17am
6
Please run the following from the Pi terminal and post the outputs of the last one:
sudo service pihole-FTL restart
sudo service pihole-FTL status
@jfb
● pihole-FTL.service - LSB: pihole-FTL daemon
Loaded: loaded (/etc/init.d/pihole-FTL; generated)
Active: active (exited) since Sat 2020-08-08 11:17:52 EDT; 43s ago
Docs: man:systemd-sysv-generator(8)
Process: 3765 ExecStart=/etc/init.d/pihole-FTL start (code=exited,
Aug 08 11:17:51 Pi-Hole systemd[1]: Starting LSB: pihole-FTL daemon..
Aug 08 11:17:51 Pi-Hole pihole-FTL[3765]: Not running
Aug 08 11:17:51 Pi-Hole su[3789]: (to pihole) root on none
Aug 08 11:17:51 Pi-Hole su[3789]: pam_unix(su:session): session opene
Aug 08 11:17:52 Pi-Hole pihole-FTL[3765]: dnsmasq: illegal repeated k
Aug 08 11:17:52 Pi-Hole su[3789]: pam_unix(su:session): session close
Aug 08 11:17:52 Pi-Hole systemd[1]: Started LSB: pihole-FTL daemon.
The web ui still says FTL offline and dns service not running
That line is cut off in your output, but likely completes to Illegal repeated keyword
Run on your Pi-hole machine, what's the output of:
grep -nRv '^#\|^$' /etc/dnsmasq.*
jfb
August 8, 2020, 4:20pm
9
Also, please post the output of
pihole-FTL dnsmasq-test
jfb:
pihole-FTL dnsmasq-test
Result is
dnsmasq: illegal repeated keyword at line 32 of /etc/dnsmasq.d/01-pihole.conf.save
01-Pihole.conf.save is
Big comment that states that it will be overwritten , then
addn-hosts=/etc/pihole/local.list
addn-hosts=/etc/pihole/custom.list
localise-queries
no-resolv
cache-size= 10000
log-queries
log-facility=/var/log/pihole.log
local-ttl=2
log-async
server=8.8.8.8
server=8.8.4.4
server=208.67.222.222
server=208.67.220.220
domain-needed
bogus-priv
interface=eth0
server=/use-application-dns.net/
Here is the result
/etc/dnsmasq.conf:1:conf-dir=/etc/dnsmasq.d
/etc/dnsmasq.conf.old:1:conf-dir=/etc/dnsmasq.d
/etc/dnsmasq.d/01-pihole.conf.save:21:addn-hosts=/etc/pihole/local.list
/etc/dnsmasq.d/01-pihole.conf.save:22:addn-hosts=/etc/pihole/custom.list
/etc/dnsmasq.d/01-pihole.conf.save:25:localise-queries
/etc/dnsmasq.d/01-pihole.conf.save:28:no-resolv
/etc/dnsmasq.d/01-pihole.conf.save:32:cache-size= 10000
/etc/dnsmasq.d/01-pihole.conf.save:34:log-queries
/etc/dnsmasq.d/01-pihole.conf.save:35:log-facility=/var/log/pihole.log
/etc/dnsmasq.d/01-pihole.conf.save:37:local-ttl=2
/etc/dnsmasq.d/01-pihole.conf.save:39:log-async
/etc/dnsmasq.d/01-pihole.conf.save:40:server=8.8.8.8
/etc/dnsmasq.d/01-pihole.conf.save:41:server=8.8.4.4
/etc/dnsmasq.d/01-pihole.conf.save:42:server=208.67.222.222
/etc/dnsmasq.d/01-pihole.conf.save:43:server=208.67.220.220
/etc/dnsmasq.d/01-pihole.conf.save:44:domain-needed
/etc/dnsmasq.d/01-pihole.conf.save:45:bogus-priv
/etc/dnsmasq.d/01-pihole.conf.save:46:interface=eth0
/etc/dnsmasq.d/01-pihole.conf.save:47:server=/use-application-dns.net/
/etc/dnsmasq.d/01-pihole.conf:21:addn-hosts=/etc/pihole/local.list
/etc/dnsmasq.d/01-pihole.conf:22:addn-hosts=/etc/pihole/custom.list
/etc/dnsmasq.d/01-pihole.conf:25:localise-queries
/etc/dnsmasq.d/01-pihole.conf:28:no-resolv
/etc/dnsmasq.d/01-pihole.conf:32:cache-size=10000
/etc/dnsmasq.d/01-pihole.conf:34:log-queries
/etc/dnsmasq.d/01-pihole.conf:35:log-facility=/var/log/pihole.log
/etc/dnsmasq.d/01-pihole.conf:37:local-ttl=2
/etc/dnsmasq.d/01-pihole.conf:39:log-async
/etc/dnsmasq.d/01-pihole.conf:40:server=8.8.8.8
/etc/dnsmasq.d/01-pihole.conf:41:server=8.8.4.4
/etc/dnsmasq.d/01-pihole.conf:42:interface=eth0
/etc/dnsmasq.d/01-pihole.conf:43:server=/use-application-dns.net/
Please edit your post to include the result of the grep statement I've provided above. That will help us find the conflicting duplicates.
EDIT: Dan spotted the offending file anyway - just follow his instructions to fix it.
1 Like
Any file in /etc/dnsmasq.d/
will be read and used. Not just .conf
files. So your .save
will be read and used. So move that file somewhere else.
1 Like
@DanSchaper @Bucking_Horn jfb (not tagged from limit)
JFBs test
Gave me insight into the problem. I deleted both the conf and conf.save and fully uninstalled pihole after teleporting the config using this command sudo rm -rf /etc/.pihole /etc/pihole /opt/pihole /usr/bin/pihole-FTL /usr/local/bin/pihole /var/www/html/admin
. Then reinstalled pihole using the curl simple method, and it works!
Thanks to all who took their time to help me!
1 Like
Was just about to reply that pihole-FTL
will read both files at boot/start:
/etc/dnsmasq.d/01-pihole.conf
&
/etc/dnsmasq.d/01-pihole.conf.save
The later doesnt belong to Pi-hole.
1 Like
Solution was already in previous posting
Any file in /etc/dnsmasq.d/ will be read and used. Not just .conf files. So your .save will be read and used. So move that file somewhere else.
1 Like
system
Closed
August 29, 2020, 8:55pm
21
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.