Pihole stops being accessible every 24 hours/DHCP serverstops assigning IPs at the same time every 24 hours

Please follow the below template, it will help us to help you!

Expected Behaviour:

Everything should be working as normal

Actual Behaviour:

Every 24 hours the internet disconnects and trying to connect to the WiFi (or using Ethernet) results in "failed to obtain ip address". the solution in the end seems to be going to my router, enabling the DHCP server in the router, and then disabling it right after. Also when the issue happens I can't even connect to the pihole as trying to SSH in causes:

ssh: connect to host 192.168.1.109 port 22: No route to host

Debug Token:

[✓] Your debug token is: https://tricorder.pi-hole.net/qmx90tm45m!


Edit: Also I tried to check the DHCPD status and here's what it seems to say

dhcpcd.service - dhcpcd on all interfaces
   Loaded: loaded (/lib/systemd/system/dhcpcd.service; enabled; vendor preset: e
nabled)
  Drop-In: /etc/systemd/system/dhcpcd.service.d
           └─wait.conf
   Active: failed (Result: exit-code) since Sun 2019-04-21 10:17:04 I
ST; 1h 29min ago
  Process: 235 ExecStart=/usr/lib/dhcpcd5/dhcpcd -q -w (code=exited, sta
tus=6)

Apr 21 10:17:03 DietPi systemd[1]: Starting dhcpcd on all interfaces...
Apr 21 10:17:04 DietPi dhcpcd[235]: Not running dhcpcd because /etc/network/inte
rfaces
Apr 21 10:17:04 DietPi dhcpcd[235]: defines some interfaces that will use a
Apr 21 10:17:04 DietPi dhcpcd[235]: DHCP client or static address
Apr 21 10:17:04 DietPi systemd[1]: dhcpcd.service: Control process exite
d, code=exited status=6
Apr 21 10:17:04 DietPi systemd[1]: Failed to start dhcpcd on all interfa
ces.
Apr 21 10:17:04 DietPi systemd[1]: dhcpcd.service: Unit entered failed s
tate.
Apr 21 10:17:04 DietPi systemd[1]: dhcpcd.service: Failed with result 'e
xit-code'.
Warning: dhcpcd.service changed on disk. Run 'systemctl daemon-reload
' to reload units.

Are you running the DietPi distribution of Pi-Hole or the pihole.net distribution?

The pihole.net one, dietpi is just the OS.

Check /etc/network/interfaces for any issues, as suggested by the DHCPCD status message.

Did you set a static IP from your router to your Pi-Hole?

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