There's already a DHCP service running.

Started by assasen11, August 10, 2023, 03:32:26 PM

Previous topic - Next topic
August 10, 2023, 03:32:26 PM Last Edit: August 10, 2023, 03:34:48 PM by assasen11
I am having an issue after my router has been off for 3 days due to a power outage. The DHCP server will not start and it keeps giving an error in the log of the GUI saying that "There's already a DHCP service running". When I login to the shell and try to start it then it gives me the below information. It lists /usr/local/etc/dhcpd.conf as the config file its trying to run. When i check this file it shows only sample information in it that does not reflect what is in the GUI. There is a separate sample file as well with the same info.

I tried to fully update on the community section. I am currently running OPNsense 23.7.1_3.

Does anyone have any thoughts. Should I try to manually edit the .conf file to reflect what the GUI shows?


root@OPNsense:/usr/local/etc # service isc-dhcpd onestart
Starting dhcpd.
Internet Systems Consortium DHCP Server 4.4.3-P1
Copyright 2004-2022 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Config file: /usr/local/etc/dhcpd.conf
Database file: /var/db/dhcpd/dhcpd.leases
PID file: /var/run/dhcpd/dhcpd.pid
Wrote 0 class decls to leases file.
Wrote 0 deleted host decls to leases file.
Wrote 0 new dynamic host decls to leases file.
Wrote 0 leases to leases file.

No subnet declaration for igb1 (-).
** Ignoring requests on igb1.  If this is not what
   you want, please write a subnet declaration
   in your dhcpd.conf file for the network segment
   to which interface igb1 is attached. **


No subnet declaration for igb0 (-).
** Ignoring requests on igb0.  If this is not what
   you want, please write a subnet declaration
   in your dhcpd.conf file for the network segment
   to which interface igb0 is attached. **


Not configured to listen on any interfaces!

If you think you have received this message due to a bug rather
than a configuration issue please read the section on submitting
bugs on either our web page at www.isc.org or in the README file
before submitting a bug.  These pages explain the proper
process and the information we find helpful for debugging.

exiting.
/usr/local/etc/rc.d/isc-dhcpd: WARNING: failed to start dhcpd


I have tried this multiple times and in multiple different ways yes. Even on boot up it fails to start saying its running. If I try to stop the service it tells me that there is no service running.

Can you change the DHCP log level to Debug and post the log?

What does your OPNSense config look like?

This is the log with Debug mode on which looks similar to the output of the file I sent over.

2023-08-12T13:06:37-04:00 Error dhcpd exiting.
2023-08-12T13:06:37-04:00 Error dhcpd
2023-08-12T13:06:37-04:00 Error dhcpd process and the information we find helpful for debugging.
2023-08-12T13:06:37-04:00 Error dhcpd before submitting a bug. These pages explain the proper
2023-08-12T13:06:37-04:00 Error dhcpd bugs on either our web page at www.isc.org or in the README file
2023-08-12T13:06:37-04:00 Error dhcpd than a configuration issue please read the section on submitting
2023-08-12T13:06:37-04:00 Error dhcpd If you think you have received this message due to a bug rather
2023-08-12T13:06:37-04:00 Error dhcpd
2023-08-12T13:06:37-04:00 Error dhcpd There's already a DHCP server running.
2023-08-10T09:24:48-04:00 Error dhcpd exiting.
2023-08-10T09:24:48-04:00 Error dhcpd
2023-08-10T09:24:48-04:00 Error dhcpd process and the information we find helpful for debugging.
2023-08-10T09:24:48-04:00 Error dhcpd before submitting a bug. These pages explain the proper
2023-08-10T09:24:48-04:00 Error dhcpd bugs on either our web page at www.isc.org or in the README file
2023-08-10T09:24:48-04:00 Error dhcpd than a configuration issue please read the section on submitting
2023-08-10T09:24:48-04:00 Error dhcpd If you think you have received this message due to a bug rather
2023-08-10T09:24:48-04:00 Error dhcpd
2023-08-10T09:24:48-04:00 Error dhcpd Not configured to listen on any interfaces!
2023-08-10T09:24:48-04:00 Error dhcpd
2023-08-10T09:24:48-04:00 Error dhcpd to which interface igb0 is attached. **
2023-08-10T09:24:48-04:00 Error dhcpd in your dhcpd.conf file for the network segment
2023-08-10T09:24:48-04:00 Error dhcpd you want, please write a subnet declaration
2023-08-10T09:24:48-04:00 Error dhcpd ** Ignoring requests on igb0. If this is not what
2023-08-10T09:24:48-04:00 Error dhcpd No subnet declaration for igb0 (Wan Address).
2023-08-10T09:24:48-04:00 Error dhcpd
2023-08-10T09:24:48-04:00 Error dhcpd
2023-08-10T09:24:48-04:00 Error dhcpd to which interface igb1 is attached. **
2023-08-10T09:24:48-04:00 Error dhcpd in your dhcpd.conf file for the network segment
2023-08-10T09:24:48-04:00 Error dhcpd you want, please write a subnet declaration
2023-08-10T09:24:48-04:00 Error dhcpd ** Ignoring requests on igb1. If this is not what
2023-08-10T09:24:48-04:00 Error dhcpd No subnet declaration for igb1 (Lan Address).
2023-08-10T09:24:48-04:00 Error dhcpd
2023-08-10T09:24:30-04:00 Error dhcpd exiting.
2023-08-10T09:24:30-04:00 Error dhcpd
2023-08-10T09:24:30-04:00 Error dhcpd process and the information we find helpful for debugging.
2023-08-10T09:24:30-04:00 Error dhcpd before submitting a bug. These pages explain the proper
2023-08-10T09:24:30-04:00 Error dhcpd bugs on either our web page at www.isc.org or in the README file
2023-08-10T09:24:30-04:00 Error dhcpd than a configuration issue please read the section on submitting
2023-08-10T09:24:30-04:00 Error dhcpd If you think you have received this message due to a bug rather
2023-08-10T09:24:30-04:00 Error dhcpd
2023-08-10T09:24:30-04:00 Error dhcpd Not configured to listen on any interfaces!
2023-08-10T09:24:30-04:00 Error dhcpd
2023-08-10T09:24:30-04:00 Error dhcpd to which interface igb0 is attached. **
2023-08-10T09:24:30-04:00 Error dhcpd in your dhcpd.conf file for the network segment
2023-08-10T09:24:30-04:00 Error dhcpd you want, please write a subnet declaration
2023-08-10T09:24:30-04:00 Error dhcpd ** Ignoring requests on igb0. If this is not what
2023-08-10T09:24:30-04:00 Error dhcpd No subnet declaration for igb0 (24.112.182.123).
2023-08-10T09:24:30-04:00 Error dhcpd
2023-08-10T09:24:30-04:00 Error dhcpd
2023-08-10T09:24:30-04:00 Error dhcpd to which interface igb1 is attached. **



Also what do you mean by why does the config look like? Do you want me to export a config and send it?


Thank you
-Assasen11

# service isc-dhcpd onestart

Please don't use this ^^^^^^

# pluginctl -s dhcpd restart

Use this instead ^^^^^^


Cheers,
Franco

Quote from: assasen11 on August 17, 2023, 02:35:06 AM
This is the log with Debug mode on which looks similar to the output of the file I sent over.

2023-08-12T13:06:37-04:00 Error dhcpd exiting.
2023-08-12T13:06:37-04:00 Error dhcpd
2023-08-12T13:06:37-04:00 Error dhcpd process and the information we find helpful for debugging.
2023-08-12T13:06:37-04:00 Error dhcpd before submitting a bug. These pages explain the proper
2023-08-12T13:06:37-04:00 Error dhcpd bugs on either our web page at www.isc.org or in the README file
2023-08-12T13:06:37-04:00 Error dhcpd than a configuration issue please read the section on submitting
2023-08-12T13:06:37-04:00 Error dhcpd If you think you have received this message due to a bug rather
2023-08-12T13:06:37-04:00 Error dhcpd
2023-08-12T13:06:37-04:00 Error dhcpd There's already a DHCP server running.
2023-08-10T09:24:48-04:00 Error dhcpd exiting.
2023-08-10T09:24:48-04:00 Error dhcpd
2023-08-10T09:24:48-04:00 Error dhcpd process and the information we find helpful for debugging.
2023-08-10T09:24:48-04:00 Error dhcpd before submitting a bug. These pages explain the proper
2023-08-10T09:24:48-04:00 Error dhcpd bugs on either our web page at www.isc.org or in the README file
2023-08-10T09:24:48-04:00 Error dhcpd than a configuration issue please read the section on submitting
2023-08-10T09:24:48-04:00 Error dhcpd If you think you have received this message due to a bug rather
2023-08-10T09:24:48-04:00 Error dhcpd
2023-08-10T09:24:48-04:00 Error dhcpd Not configured to listen on any interfaces!
2023-08-10T09:24:48-04:00 Error dhcpd
2023-08-10T09:24:48-04:00 Error dhcpd to which interface igb0 is attached. **
2023-08-10T09:24:48-04:00 Error dhcpd in your dhcpd.conf file for the network segment
2023-08-10T09:24:48-04:00 Error dhcpd you want, please write a subnet declaration
2023-08-10T09:24:48-04:00 Error dhcpd ** Ignoring requests on igb0. If this is not what
2023-08-10T09:24:48-04:00 Error dhcpd No subnet declaration for igb0 (Wan Address).
2023-08-10T09:24:48-04:00 Error dhcpd
2023-08-10T09:24:48-04:00 Error dhcpd
2023-08-10T09:24:48-04:00 Error dhcpd to which interface igb1 is attached. **
2023-08-10T09:24:48-04:00 Error dhcpd in your dhcpd.conf file for the network segment
2023-08-10T09:24:48-04:00 Error dhcpd you want, please write a subnet declaration
2023-08-10T09:24:48-04:00 Error dhcpd ** Ignoring requests on igb1. If this is not what
2023-08-10T09:24:48-04:00 Error dhcpd No subnet declaration for igb1 (Lan Address).
2023-08-10T09:24:48-04:00 Error dhcpd
2023-08-10T09:24:30-04:00 Error dhcpd exiting.
2023-08-10T09:24:30-04:00 Error dhcpd
2023-08-10T09:24:30-04:00 Error dhcpd process and the information we find helpful for debugging.
2023-08-10T09:24:30-04:00 Error dhcpd before submitting a bug. These pages explain the proper
2023-08-10T09:24:30-04:00 Error dhcpd bugs on either our web page at www.isc.org or in the README file
2023-08-10T09:24:30-04:00 Error dhcpd than a configuration issue please read the section on submitting
2023-08-10T09:24:30-04:00 Error dhcpd If you think you have received this message due to a bug rather
2023-08-10T09:24:30-04:00 Error dhcpd
2023-08-10T09:24:30-04:00 Error dhcpd Not configured to listen on any interfaces!
2023-08-10T09:24:30-04:00 Error dhcpd
2023-08-10T09:24:30-04:00 Error dhcpd to which interface igb0 is attached. **
2023-08-10T09:24:30-04:00 Error dhcpd in your dhcpd.conf file for the network segment
2023-08-10T09:24:30-04:00 Error dhcpd you want, please write a subnet declaration
2023-08-10T09:24:30-04:00 Error dhcpd ** Ignoring requests on igb0. If this is not what
2023-08-10T09:24:30-04:00 Error dhcpd No subnet declaration for igb0 (24.112.182.123).
2023-08-10T09:24:30-04:00 Error dhcpd
2023-08-10T09:24:30-04:00 Error dhcpd
2023-08-10T09:24:30-04:00 Error dhcpd to which interface igb1 is attached. **



Also what do you mean by why does the config look like? Do you want me to export a config and send it?


Thank you
-Assasen11

If you can post your config, that would be great.  I'm mainly trying to get an idea of your setup.  What are igb0 and igb1?  How many interfaces are you using?  Which ones are WAN and LAN?

It looks like your interfaces aren't configured correctly, but I'm not sure how a power outage would cause that unless your filesystem got corrupted.

August 19, 2023, 07:32:39 PM #7 Last Edit: August 21, 2023, 02:51:08 PM by franco
Quote from: CJ on August 17, 2023, 01:56:27 PM
Quote from: assasen11 on August 17, 2023, 02:35:06 AM
This is the log with Debug mode on which looks similar to the output of the file I sent over.

2023-08-12T13:06:37-04:00 Error dhcpd exiting.
2023-08-12T13:06:37-04:00 Error dhcpd
2023-08-12T13:06:37-04:00 Error dhcpd process and the information we find helpful for debugging.
2023-08-12T13:06:37-04:00 Error dhcpd before submitting a bug. These pages explain the proper
2023-08-12T13:06:37-04:00 Error dhcpd bugs on either our web page at www.isc.org or in the README file
2023-08-12T13:06:37-04:00 Error dhcpd than a configuration issue please read the section on submitting
2023-08-12T13:06:37-04:00 Error dhcpd If you think you have received this message due to a bug rather
2023-08-12T13:06:37-04:00 Error dhcpd
2023-08-12T13:06:37-04:00 Error dhcpd There's already a DHCP server running.
2023-08-10T09:24:48-04:00 Error dhcpd exiting.
2023-08-10T09:24:48-04:00 Error dhcpd
2023-08-10T09:24:48-04:00 Error dhcpd process and the information we find helpful for debugging.
2023-08-10T09:24:48-04:00 Error dhcpd before submitting a bug. These pages explain the proper
2023-08-10T09:24:48-04:00 Error dhcpd bugs on either our web page at www.isc.org or in the README file
2023-08-10T09:24:48-04:00 Error dhcpd than a configuration issue please read the section on submitting
2023-08-10T09:24:48-04:00 Error dhcpd If you think you have received this message due to a bug rather
2023-08-10T09:24:48-04:00 Error dhcpd
2023-08-10T09:24:48-04:00 Error dhcpd Not configured to listen on any interfaces!
2023-08-10T09:24:48-04:00 Error dhcpd
2023-08-10T09:24:48-04:00 Error dhcpd to which interface igb0 is attached. **
2023-08-10T09:24:48-04:00 Error dhcpd in your dhcpd.conf file for the network segment
2023-08-10T09:24:48-04:00 Error dhcpd you want, please write a subnet declaration
2023-08-10T09:24:48-04:00 Error dhcpd ** Ignoring requests on igb0. If this is not what
2023-08-10T09:24:48-04:00 Error dhcpd No subnet declaration for igb0 (Wan Address).
2023-08-10T09:24:48-04:00 Error dhcpd
2023-08-10T09:24:48-04:00 Error dhcpd
2023-08-10T09:24:48-04:00 Error dhcpd to which interface igb1 is attached. **
2023-08-10T09:24:48-04:00 Error dhcpd in your dhcpd.conf file for the network segment
2023-08-10T09:24:48-04:00 Error dhcpd you want, please write a subnet declaration
2023-08-10T09:24:48-04:00 Error dhcpd ** Ignoring requests on igb1. If this is not what
2023-08-10T09:24:48-04:00 Error dhcpd No subnet declaration for igb1 (Lan Address).
2023-08-10T09:24:48-04:00 Error dhcpd
2023-08-10T09:24:30-04:00 Error dhcpd exiting.
2023-08-10T09:24:30-04:00 Error dhcpd
2023-08-10T09:24:30-04:00 Error dhcpd process and the information we find helpful for debugging.
2023-08-10T09:24:30-04:00 Error dhcpd before submitting a bug. These pages explain the proper
2023-08-10T09:24:30-04:00 Error dhcpd bugs on either our web page at www.isc.org or in the README file
2023-08-10T09:24:30-04:00 Error dhcpd than a configuration issue please read the section on submitting
2023-08-10T09:24:30-04:00 Error dhcpd If you think you have received this message due to a bug rather
2023-08-10T09:24:30-04:00 Error dhcpd
2023-08-10T09:24:30-04:00 Error dhcpd Not configured to listen on any interfaces!
2023-08-10T09:24:30-04:00 Error dhcpd
2023-08-10T09:24:30-04:00 Error dhcpd to which interface igb0 is attached. **
2023-08-10T09:24:30-04:00 Error dhcpd in your dhcpd.conf file for the network segment
2023-08-10T09:24:30-04:00 Error dhcpd you want, please write a subnet declaration
2023-08-10T09:24:30-04:00 Error dhcpd ** Ignoring requests on igb0. If this is not what
2023-08-10T09:24:30-04:00 Error dhcpd No subnet declaration for igb0 (24.112.182.123).
2023-08-10T09:24:30-04:00 Error dhcpd
2023-08-10T09:24:30-04:00 Error dhcpd
2023-08-10T09:24:30-04:00 Error dhcpd to which interface igb1 is attached. **



Also what do you mean by why does the config look like? Do you want me to export a config and send it?


Thank you
-Assasen11

If you can post your config, that would be great.  I'm mainly trying to get an idea of your setup.  What are igb0 and igb1?  How many interfaces are you using?  Which ones are WAN and LAN?

It looks like your interfaces aren't configured correctly, but I'm not sure how a power outage would cause that unless your filesystem got corrupted.



Here is a copy of the config I am running.

Thanks again for your help.

EDIT: config.xml removed by admin -- better not post your full configuration. consider a text dump of the dhcpd XML section

Please delete your config message.  When posting things like this, you should always scrub files for passwords, certs, etc.

That said, I don't see anything obvious regarding DHCP, although your DNS setup makes me wonder.  Especially why you're using 2.2.2.2.

Can you do a restart of the whole OPNSense box and then post the DHCP logs from boot?  What you posted earlier appears to be from when you were manually testing and I need to see what error your getting on automatic start.

This is Debug log for DHCP from UI on boot

2023-08-21T18:09:57-04:00 23 Error dhcpd 19638 exiting.
2023-08-21T18:09:57-04:00 23 Error dhcpd 19638
2023-08-21T18:09:57-04:00 23 Error dhcpd 19638 process and the information we find helpful for debugging.
2023-08-21T18:09:57-04:00 23 Error dhcpd 19638 before submitting a bug. These pages explain the proper
2023-08-21T18:09:57-04:00 23 Error dhcpd 19638 bugs on either our web page at www.isc.org or in the README file
2023-08-21T18:09:57-04:00 23 Error dhcpd 19638 than a configuration issue please read the section on submitting
2023-08-21T18:09:57-04:00 23 Error dhcpd 19638 If you think you have received this message due to a bug rather
2023-08-21T18:09:57-04:00 23 Error dhcpd 19638
2023-08-21T18:09:57-04:00 23 Error dhcpd 19638 There's already a DHCP server running.
2023-08-21T18:09:57-04:00 23 Informational dhcpd 19638 For info, please visit https://www.isc.org/software/dhcp/
2023-08-21T18:09:57-04:00 23 Informational dhcpd 19638 All rights reserved.
2023-08-21T18:09:57-04:00 23 Informational dhcpd 19638 Copyright 2004-2022 Internet Systems Consortium.
2023-08-21T18:09:57-04:00 23 Informational dhcpd 19638 Internet Systems Consortium DHCP Server 4.4.3-P1
2023-08-21T18:09:57-04:00 3 Informational dhcpd 19638 PID file: /var/run/dhcpd.pid
2023-08-21T18:09:57-04:00 3 Informational dhcpd 19638 Database file: /var/db/dhcpd.leases
2023-08-21T18:09:57-04:00 3 Informational dhcpd 19638 Config file: /etc/dhcpd.conf
2023-08-21T18:09:57-04:00 3 Informational dhcpd 19638 For info, please visit https://www.isc.org/software/dhcp/
2023-08-21T18:09:57-04:00 3 Informational dhcpd 19638 All rights reserved.
2023-08-21T18:09:57-04:00 3 Informational dhcpd 19638 Copyright 2004-2022 Internet Systems Consortium.
2023-08-21T18:09:57-04:00 3 Informational dhcpd 19638 Internet Systems Consortium DHCP Server 4.4.3-P1
2023-08-21T17:05:36-04:00 23 Error dhcpd 90300 exiting.



This is the log when I try to start it. It seems to provide a little more information than the debug log.
root@OPNsense:/var/log/dhcpd # service isc-dhcpd onestart
Starting dhcpd.
Internet Systems Consortium DHCP Server 4.4.3-P1
Copyright 2004-2022 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Config file: /usr/local/etc/dhcpd.conf
Database file: /var/db/dhcpd/dhcpd.leases
PID file: /var/run/dhcpd/dhcpd.pid
Wrote 0 class decls to leases file.
Wrote 0 deleted host decls to leases file.
Wrote 0 new dynamic host decls to leases file.
Wrote 0 leases to leases file.

No subnet declaration for igb1 ("LAN IP").
** Ignoring requests on igb1.  If this is not what
   you want, please write a subnet declaration
   in your dhcpd.conf file for the network segment
   to which interface igb1 is attached. **


No subnet declaration for igb0 ("WAN IP").
** Ignoring requests on igb0.  If this is not what
   you want, please write a subnet declaration
   in your dhcpd.conf file for the network segment
   to which interface igb0 is attached. **


Not configured to listen on any interfaces!

If you think you have received this message due to a bug rather
than a configuration issue please read the section on submitting
bugs on either our web page at www.isc.org or in the README file
before submitting a bug.  These pages explain the proper
process and the information we find helpful for debugging.

exiting.
/usr/local/etc/rc.d/isc-dhcpd: WARNING: failed to start dhcpd




I also thought I would add the output of the config file it keeps referencing. It just looks like an example config file. But it references trying to pull the info in the logs. "Config file: /usr/local/etc/dhcpd.conf"


# dhcpd.conf
#
# Sample configuration file for ISC dhcpd
#

# option definitions common to all supported networks...
option domain-name "example.org";
option domain-name-servers ns1.example.org, ns2.example.org;

default-lease-time 600;
max-lease-time 7200;

# Use this to enble / disable dynamic dns updates globally.
#ddns-update-style none;

# If this DHCP server is the official DHCP server for the local
# network, the authoritative directive should be uncommented.
#authoritative;

# Use this to send dhcp log messages to a different log file (you also
# have to hack syslog.conf to complete the redirection).
log-facility local7;

# No service will be given on this subnet, but declaring it helps the
# DHCP server to understand the network topology.

subnet 10.152.187.0 netmask 255.255.255.0 {
}


# This is a very basic subnet declaration.

subnet 10.254.239.0 netmask 255.255.255.224 {
  range 10.254.239.10 10.254.239.20;
  option routers rtr-239-0-1.example.org, rtr-239-0-2.example.org;
}

# This declaration allows BOOTP clients to get dynamic addresses,
# which we don't really recommend.

subnet 10.254.239.32 netmask 255.255.255.224 {
  range dynamic-bootp 10.254.239.40 10.254.239.60;
  option broadcast-address 10.254.239.31;
  option routers rtr-239-32-1.example.org;
}

# A slightly different configuration for an internal subnet.
subnet 10.5.5.0 netmask 255.255.255.224 {
  range 10.5.5.26 10.5.5.30;
  option domain-name-servers ns1.internal.example.org;
  option domain-name "internal.example.org";
  option routers 10.5.5.1;
  option broadcast-address 10.5.5.31;
  default-lease-time 600;
  max-lease-time 7200;
}

# Hosts which require special configuration options can be listed in
# host statements.   If no address is specified, the address will be
# allocated dynamically (if possible), but the host-specific information
# will still come from the host declaration.

host passacaglia {
  hardware ethernet 0:0:c0:5d:bd:95;
  filename "vmunix.passacaglia";
  server-name "toccata.example.com";
}



# Fixed IP addresses can also be specified for hosts.   These addresses
# should not also be listed as being available for dynamic assignment.
# Hosts for which fixed IP addresses have been specified can boot using
# BOOTP or DHCP.   Hosts for which no fixed address is specified can only
# be booted with DHCP, unless there is an address range on the subnet
# to which a BOOTP client is connected which has the dynamic-bootp flag
# set.
host fantasia {
  hardware ethernet 08:00:07:26:c0:a5;
  fixed-address fantasia.example.com;
}

# You can declare a class of clients and then do address allocation
# based on that.   The example below shows a case where all clients
# in a certain class get addresses on the 10.17.224/24 subnet, and all
# other clients get addresses on the 10.0.29/24 subnet.

class "foo" {
  match if substring (option vendor-class-identifier, 0, 4) = "SUNW";
}

shared-network 224-29 {
  subnet 10.17.224.0 netmask 255.255.255.0 {
    option routers rtr-224.example.org;
  }
  subnet 10.0.29.0 netmask 255.255.255.0 {
    option routers rtr-29.example.org;
  }
  pool {
    allow members of "foo";
    range 10.17.224.10 10.17.224.250;
  }
  pool {
    deny members of "foo";
    range 10.0.29.10 10.0.29.230;
  }
}


Thanks again. I am trying to add as much information as possible.

WTF, stop trying to start a service from the wrong framework:

/usr/local/etc/rc.d/isc-dhcpd: WARNING: failed to start dhcpd

https://forum.opnsense.org/index.php?topic=35341.msg172167#msg172167

As Franco noted, you're manually starting dhcp incorrectly, so it's not going to provide good info.  That's why I'm asking for the debug log during boot up.  Are you making sure to select Debug from the drop down?  What time did you reboot?  Can you post the log of the entire day?

August 22, 2023, 07:56:59 PM #12 Last Edit: August 22, 2023, 08:20:47 PM by assasen11
Oh yea sorry about that. I copied the wrong command from his post and repeated what I had done earlier. I decided to just perform a fresh reboot since the log had indications from the wrong command I ran.


This is the of of the entire day on the 22nd. As some proof I added some from the 21st as well.
2023-08-22T13:49:49-04:00 Error dhcpd exiting.
2023-08-22T13:49:49-04:00 Error dhcpd
2023-08-22T13:49:49-04:00 Error dhcpd process and the information we find helpful for debugging.
2023-08-22T13:49:49-04:00 Error dhcpd before submitting a bug. These pages explain the proper
2023-08-22T13:49:49-04:00 Error dhcpd bugs on either our web page at www.isc.org or in the README file
2023-08-22T13:49:49-04:00 Error dhcpd than a configuration issue please read the section on submitting
2023-08-22T13:49:49-04:00 Error dhcpd If you think you have received this message due to a bug rather
2023-08-22T13:49:49-04:00 Error dhcpd
2023-08-22T13:49:49-04:00 Error dhcpd There's already a DHCP server running.
2023-08-22T13:49:49-04:00 Informational dhcpd For info, please visit https://www.isc.org/software/dhcp/
2023-08-22T13:49:49-04:00 Informational dhcpd All rights reserved.
2023-08-22T13:49:49-04:00 Informational dhcpd Copyright 2004-2022 Internet Systems Consortium.
2023-08-22T13:49:49-04:00 Informational dhcpd Internet Systems Consortium DHCP Server 4.4.3-P1
2023-08-22T13:49:49-04:00 Informational dhcpd PID file: /var/run/dhcpd.pid
2023-08-22T13:49:49-04:00 Informational dhcpd Database file: /var/db/dhcpd.leases
2023-08-22T13:49:49-04:00 Informational dhcpd Config file: /etc/dhcpd.conf
2023-08-22T13:49:49-04:00 Informational dhcpd For info, please visit https://www.isc.org/software/dhcp/
2023-08-22T13:49:49-04:00 Informational dhcpd All rights reserved.
2023-08-22T13:49:49-04:00 Informational dhcpd Copyright 2004-2022 Internet Systems Consortium.
2023-08-22T13:49:49-04:00 Informational dhcpd Internet Systems Consortium DHCP Server 4.4.3-P1
2023-08-21T18:17:17-04:00 Error dhcpd exiting.
2023-08-21T18:17:17-04:00 Error dhcpd



I also am adding a screenshot of the debug option on the UI



Checking into the proper dhcpd.conf location in the log now. I don't see a config file in the location it mentioned for the startup. I am adding a screenshot for that as well.


Thanks you

Don't worry about the config file.  That's not your issue.

What happens if you run the various audits under Firmware->Status?

If those don't produce anything substantive then I'd recommend a clean install and importing your config.  Also, have you run any SMART tests on your drive?  I think you may have some filesystem corruption that's causing this.

Another take: is Zenarmor running? Could this be the DHCPv6 server complaining?

# ps auxwww | grep dhcpd


Cheers,
Franco