Hi

Just wondered if there were an known issues with using include.
Anyway, the systemctl status indicates that the include file can't be opened 
even if it's in the same directory as kea-dhcp4.conf.

2023-03-15 14:09:10.651 INFO  [kea-dhcp4.dhcp4/2496351.139923366162432] 
DHCP4_STARTING Kea DHCPv4 server version 2.0.3 (stable) starting
2023-03-15 14:09:10.652 ERROR [kea-dhcp4.dhcp4/2496351.139923366162432] 
DHCP4_CONFIG_LOAD_FAIL configuration error using file: /etc/kea/kea-dhcp4.conf, 
reason: Can't open include file ha-def.conf
2023-03-15 14:09:10.652 ERROR [kea-dhcp4.dhcp4/2496351.139923366162432] 
DHCP4_INIT_FAIL failed to initialize Kea server: configuration error using file 
'/etc/kea/kea-dhcp4.conf': Can't open include file ha-def.conf

Changing the include statement to use absolute path solved the problem. 


./PerW


Sensitivity: Internal

-----Original Message-----
From: Kea-users <kea-users-boun...@lists.isc.org> On Behalf Of Kevin P. Fleming
Sent: tirsdag 14. mars 2023 14:53
To: kea-users@lists.isc.org
Subject: Re: [Kea-users] Use of include statement doesn't seem to work 
(INTERNAL)

On Tue, Mar 14, 2023, at 08:45, Weisteen Per wrote:
> Running kea-dhcp4 -t /etc/kea/kea-dhcp4.conf returns no errors but 
> trying to start kea-dhcp4 fails using systemctl.

Unfortunately 'fails' isn't something people can help troubleshoot... When this 
happens, grab the output of 'systemctl status kea-dhcp4-server' and 'journalctl 
-eu kea-dhcp4-server' to see why it failed.

For example, the include files may not be readable by the user specified in the 
service unit file, but are readable by root, and your config test/manual starts 
are being done as root. Without the journal output it's just guessing to figure 
out what is happening.
--
ISC funds the development of this software with paid support subscriptions. 
Contact us at https://www.isc.org/contact/ for more information.

To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.

Kea-users mailing list
Kea-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/kea-users
-- 
ISC funds the development of this software with paid support subscriptions. 
Contact us at https://www.isc.org/contact/ for more information.

To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.

Kea-users mailing list
Kea-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/kea-users

Reply via email to