DHCP services stopped working

MAAS 2.9.2 (snap). Was working ok until memory and disk got exhausted. I fixed those problems but after rebooting the DHCP services are not starting.

~$ sudo maas status
bind9                            RUNNING   pid 1138, uptime 0:11:56
dhcpd                            STOPPED   Not started
dhcpd6                           STOPPED   Not started
http                             RUNNING   pid 1443, uptime 0:11:39
ntp                              RUNNING   pid 1256, uptime 0:11:52
proxy                            RUNNING   pid 1418, uptime 0:11:41
rackd                            RUNNING   pid 1141, uptime 0:11:56
regiond                          RUNNING   pid 1142, uptime 0:11:56
syslog                           RUNNING   pid 1258, uptime 0:11:52

Any suggestions please?

Hi @routergod, do you happen to see anything erroneous in /var/snap/maas/common/log/maas.log relating to dhcp? Or perhaps in /var/snap/maas/common/log/rackd.log?

1 Like

Thanks @cgrabowski. Not got my head around snaps yet, now I know where the logs are :slight_smile:

There is nothing in either maas.log or rackd.log, but regiond.log has this message;

2021-06-09 08:58:43 maasserver.rack_controller: [critical] Failed configuring DHCP on rack controller 'id:1'.
          File "/snap/maas/12555/lib/python3.8/site-packages/maasserver/dhcp.py", line 864, in configure_dhcp
            config = yield deferToDatabase(get_dhcp_configuration, rack_controller)
          File "/snap/maas/12555/lib/python3.8/site-packages/maasserver/dhcp.py", line 783, in get_dhcp_configuration
            config = get_dhcp_configure_for(
          File "/snap/maas/12555/lib/python3.8/site-packages/maasserver/dhcp.py", line 663, in get_dhcp_configure_for
          File "/snap/maas/12555/lib/python3.8/site-packages/maasserver/dhcp.py", line 444, in make_subnet_config
          File "/snap/maas/12555/lib/python3.8/site-packages/maasserver/dhcp.py", line 447, in <listcomp>

Some kind of config corruption perhaps due to memory and disk issues I had? Its a lab setup, I can rebuild it but wonder if there is a way to recover from here?