So not staying super current on the woes of pi-hole updates recently. I was doing periodic updates on various systems in my house. Ran the trusty old pihole -up received 3.3 and noticed I had the dnsmasq issue.
I followed the instructions and upgraded dnsmasq... 3.3 still didn't work. So I rolled back to 3.2, then ran into the dnsmasq extra garbage in command line bug. Cleared that. Dnsmasq started.
Had the error connection to api failed in the GUI, decided to try to go to v4.
Ran pihole -up and v4 installed then I had the dnsmasq is running problem not knowing that piholeftl now handles that. So I then uninstalled dnsmasq via apt.
My GUI is showing FTL isn't running and neither is DNS service
pi@raspberrypi:/etc/.pihole $ sudo service pihole-FTL status
● pihole-FTL.service - LSB: pihole-FTL daemon
Loaded: loaded (/etc/init.d/pihole-FTL)
Active: active (exited) since Fri 2018-09-21 19:27:29 UTC; 3s ago
Process: 9837 ExecStop=/etc/init.d/pihole-FTL stop (code=exited, status=0/SUCCESS)
Process: 9843 ExecStart=/etc/init.d/pihole-FTL start (code=exited, status=0/SUCCESS)
Sep 21 19:27:29 raspberrypi pihole-FTL[9843]: Not running
Sep 21 19:27:29 raspberrypi pihole-FTL[9843]: chown: cannot access ‘/etc/pihole/dhcp.leases’: No such file or directory
Sep 21 19:27:29 raspberrypi su[9866]: Successful su for pihole by root
Sep 21 19:27:29 raspberrypi su[9866]: + ??? root:pihole
Sep 21 19:27:29 raspberrypi su[9866]: pam_unix(su:session): session opened for user pihole by (uid=0)
Sep 21 19:27:29 raspberrypi pihole-FTL[9843]: dnsmasq: cannot read /etc/dnsmasq.d/sedtBOHbW: Permission denied
Sep 21 19:27:29 raspberrypi systemd[1]: Started LSB: pihole-FTL daemon.
Hint: Some lines were ellipsized, use -l to show in full.
I had a very similar-looking issue. Earlier this year installed dnsmasq 2.76 to get around the incompatibility with Raspbian Jessie. After pihole -up led to failure I discovered by trial and error that the problem was that the new FTL brings its own dnsmasq so I don't need it separately anymore.
My logs looked essentially the same as the ones reported above. Main thing that looked like an error is this line:
Sep 21 22:22:01 raspberrypi pihole-FTL[20438]: chown: cannot access ‘/etc/pihole/dhcp.leases’: No such file or directory
However, after removing dnsmasq (sudo apt-get remove dnsmasq) and then rebooting the pihole it's resolved: all systems are up and running, including FTL:
pi@raspberrypi:~ $ pihole status [✓] DNS service is running [✓] Pi-hole blocking is Enabled
For me, everything works right now and sudo service pihole-FTL start gives no output, and status 'running' (I edited my first reply upthread while you posted to report that removing dnsmasq and rebooting the pihole got things working again)
deleting "/etc/dnsmasq.d/sedtBOHbW" and restarting service made it all work...
I have no idea what that file is or was, it was 0 bytes and created by root.
Thanks for making me question what that was! Once deleting it everythings great! I thought it was some required file but maybe it was acting as a pid or some indicator that tells it not to start?
I would take a look in the directory and see if that file exists. If it does, dnsmasq (pihole-FTL) may try to read it along with all .conf files in that directory. Something is referencing this file.
Since you have an install that's been in place for several versions, there is no telling what older files were set, touched, etc. The oddities of Linux, I think.
Yeah might not be a bad idea. It's easy to neglect a pi, it's sitting in the corner in the basement and I just always assume it'll work... how's the dist upgrade between the two? Should I just start clean? Honestly I don't follow the Debian kernel much and didn't even know stretch was out
You don't have much else on your Pi, based on ports in use in your debug log. I would backup your Pi-Hole settings with teleporter, wipe the SD card (maybe drop a newer/bigger/better/faster/stronger one if you have it), do a clean install of Stretch and then Pi-Hole.
Less than an hour for all of this. Enough time for a few beers...