Hi, I just installed pihole on my raspberry4, running raspbian buster (a Volumio 3 disk image actually) and cannot get pihole to work.
Before runing pihole install script, I setup static IP address in /etc/dhcpcd.conf for both eth0 (192.168.1.18) and wlan0 (192.168.1.17). My box/router is 192.168.1.1.
Pihole Install script runs fine, no error.
After install, I have to modify /etc/lighttpd/lighttpd.conf (to set server.port to 8080 because of Volumio).
Actual Behaviour:
I can login to webadmin page, but it says : "The DNS service is NOT running" on top left. Going to setting page I can see :
There was a problem applying your settings.
Debugging information:
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:43
The FTL service is offline!
The pihole-FTL service says :
$ sudo systemctl status pihole-FTL
● pihole-FTL.service - LSB: pihole-FTL daemon
Loaded: loaded (/etc/init.d/pihole-FTL; generated)
Active: active (exited) since Sun 2022-04-24 15:20:46 UTC; 3min 43s ago
Docs: man:systemd-sysv-generator(8)
Process: 597 ExecStart=/etc/init.d/pihole-FTL start (code=exited, status=0/SUCCESS)
Apr 24 15:20:44 volumio systemd[1]: Starting LSB: pihole-FTL daemon...
Apr 24 15:20:44 volumio pihole-FTL[597]: Not running
Apr 24 15:20:44 volumio su[633]: (to pihole) root on none
Apr 24 15:20:44 volumio su[633]: pam_unix(su:session): session opened for user pihole by (uid=0)
Apr 24 15:20:46 volumio pihole-FTL[597]: dnsmasq: illegal repeated keyword at line 15 of /etc/dnsmasq.d/hotspot.conf
Apr 24 15:20:46 volumio systemd[1]: Started LSB: pihole-FTL daemon.
It seems the /etc/dnsmasq.d/hotspot.conf has been set by Volumio :
$ cat /etc/dnsmasq.d/hotspot.conf
# dnsmasq hotspot configuration for Volumio
# Only listen on wifi interface
interface=wlan0
# Always return 192.168.211.1 for any query not answered from /etc/hosts or DHCP and not sent to an upstream nameserver
address=/#/192.168.211.1
# DHCP server not active on wired lan interface
no-dhcp-interface=eth0
# IPv4 address range, netmask and lease time
dhcp-range=192.168.211.100,192.168.211.200,255.255.255.0,24h
# DNS server
dhcp-option=option:dns-server,192.168.211.1
expand-hosts
domain=local
# Facility to which dnsmasq will send syslog entries
log-facility=local7
Please consider Pi-hole's Community Help category if you would be running Pi-hole in an unsupported way,
I am not sure if you are referring to Volumio 3 OS, which wouldn't be on the list of Pi-hole's officially supported operating systems.
That wouldn't mean Pi-hole couldn't run on it, just that the Pi-hole team neither tests nor affirms whether it would work, and that support may be limited by the fact that none of the team runs that OS.
It also wouldn't mean that we'd hold back on advice, or that some friendly folks from our community wouldn't have succeeded in running Pi-hole in an enviroment that isn't officially supported, but you'd also have to be prepared and willing to figure things for yourself.
From a DNS perspective, you should not use local as your domain name, as .local is reserved for use by the mDNS protocol.
The whole hotspot.conf is bound to conflict with dnsmasq's options as administered by Pi-hole, especially if you would consider to make use of Pi-hole's DHPC server as well.
You'd have to find out about the intention of Volumio's DHCP configuration, and then you'd have to try, align and merge that with Pi-hole's settings.
If Volumio's intentions are unknown, or if they would conflict with Pi-hole, it may be advisable to use two separate, special purpose machines.
Thank you for your answer.
Well, Volumio is based on Raspbian Buster, which is Pi-hole a supported OS, so my hope is to make both work. I understand the limitation in terms of support in my case, no problem with that. My goal is to "optimize" my Raspberry, and not limit 1 box to 1 server.
So I just comment out every line in the hotspot.conf file generated by Volumio (to avoid deleting it), and that did the trick. Restarting pihole-FTL service makes Pihole works as expected. I am happy ! Both Volumio and Pi-hole are now working.
That may help someone with the same config.
As I said, I don't care about Volumio Hotspot, I actually just use the MPD server and none of Volumio software. Actually, I setup Volumio image because it makes mpd configuration easy with the HifiBerry DAC Plus card...
Sure it would be better to install latest Raspbian OS, configure MPD manually, and then install Pi-hole. May be I will try some day, have to read about mpd before because I have no knowledge about it...
I'm not sure whether manually editing a configuration file would be a permanent solution.
That file may be under Volumio's control, and that could mean that Volumio may reactivate settings, e.g. on restarts or updates. In addition, Volumio may control other network related settings under the hood that you may not yet be aware off (e.g. perhaps it would also set some static IP for its hotspot wifi interface).
Since you do not depend on Volumio's hotspot functionality in any ways:
I think you should consider to consult Volumio's support on the best way to disable their hotspot feature (and please consider to share what you find out ).