[Kea-users] DHCP4 not starting or writing log file

Marcin Siodelski marcin at isc.org
Tue Jul 17 15:29:29 UTC 2018


One of the problems with logging configuration is that until you
successfully configure the server it can't really use the log file
location specified in the Kea configuration file. Instead it will use
default locations.

The following section of the Kea User's Guide:

https://jenkins.isc.org/job/Kea_doc/guide/kea-guide.html#logging-during-startup

describes how to influence where the default logging goes. This may help
you determine why the server is not starting. The location of the
default log file being used before the server configures is
prefix/var/kea/kea.log, where prefix is where Kea server is installed.
After the server is started and configured successfully, the logging
should go to the locations specified in the Kea config files.

Marcin Siodelski
ISC Engineering

On 17.07.2018 16:49, McBride Lawrence wrote:
> Centos 7.4
> 
>  
> 
> *Lawrence McBride*
> 
> Head of Voice and Data Networks
> 
>  
> 
> *NHS Informatics Merseyside*
> 
> *a  *Saturn House, Knowsley Business Park, Liverpool. L34 9GJ
> 
> *t   *0151 296 7668
> 
> *m *07795 370190**
> 
> *e  *Lawrence.Mcbride at imerseyside.nhs.uk
> 
>  
> 
> Say helloto us online at www.imerseyside.nhs.uk
> <http://www.imerseyside.nhs.uk>or follow uson twitter @nhsimerseyside
> 
>  
> 
> Exceptionalsize14  
> 
> * *
> 
> Advance Notification of absence:
> 
> 17^th of August to 6^th of September 2018
> 
>  
> 
> *From:*Jason Guy [mailto:jguy at cumulusnetworks.com]
> *Sent:* 17 July 2018 15:35
> *To:* McBride Lawrence <Lawrence.McBride at imerseyside.nhs.uk>
> *Cc:* KEA-Users (kea-users at lists.isc.org) <kea-users at lists.isc.org>
> *Subject:* Re: [Kea-users] DHCP4 not starting or writing log file
> 
>  
> 
> Was this installed from the Debian Sid repo, or is this on RHEL/CentOS?
> 
>  
> 
> Thanks,
> Jason
> 
>  
> 
> On Tue, Jul 17, 2018 at 10:18 AM McBride Lawrence
> <Lawrence.McBride at imerseyside.nhs.uk
> <mailto:Lawrence.McBride at imerseyside.nhs.uk>> wrote:
> 
>     Hi,
> 
>      
> 
>     Sorry,
> 
>      
> 
>     Version 1.4
> 
>     File and dir exist
> 
>     I am starting the services as root
> 
>      
> 
>     *Lawrence McBride*
> 
>     Head of Voice and Data Networks
> 
>      
> 
>     *NHS Informatics Merseyside*
> 
>     *a  *Saturn House, Knowsley Business Park, Liverpool. L34 9GJ
> 
>     *t   *0151 296 7668
> 
>     *m *07795 370190
> 
>     *e  *Lawrence.Mcbride at imerseyside.nhs.uk
>     <mailto:Lawrence.Mcbride at imerseyside.nhs.uk>
> 
>      
> 
>     Say helloto us online at www.imerseyside.nhs.uk
>     <http://www.imerseyside.nhs.uk>or follow uson twitter @nhsimerseyside
> 
>      
> 
>     Exceptionalsize14  
> 
>     * *
> 
>     Advance Notification of absence:
> 
>     17^th of August to 6^th of September 2018
> 
>      
> 
>     *From:*Jason Guy [mailto:jguy at cumulusnetworks.com
>     <mailto:jguy at cumulusnetworks.com>]
>     *Sent:* 17 July 2018 14:38
>     *To:* McBride Lawrence <Lawrence.McBride at imerseyside.nhs.uk
>     <mailto:Lawrence.McBride at imerseyside.nhs.uk>>
>     *Cc:* KEA-Users (kea-users at lists.isc.org
>     <mailto:kea-users at lists.isc.org>) <kea-users at lists.isc.org
>     <mailto:kea-users at lists.isc.org>>
>     *Subject:* Re: [Kea-users] DHCP4 not starting or writing log file
> 
>      
> 
>     Hi Lawrence,
> 
>      
> 
>     First, what version of Kea are you using?
> 
>     Does the log directory exist? I am not sure if kea will create the
>     directory, as well as the file. 
> 
>     Finally, make sure to start the service as root or using sudo.
> 
>      
> 
>     Jason
> 
>      
> 
>     On Tue, Jul 17, 2018 at 6:02 AM McBride Lawrence
>     <Lawrence.McBride at imerseyside.nhs.uk
>     <mailto:Lawrence.McBride at imerseyside.nhs.uk>> wrote:
> 
>         Hi,
> 
>          
> 
>         I am starting just the dhcp4 server with the following command:
> 
>          
> 
>         keactrl start -s dhcp4
> 
>          
> 
>         I get a corresponding message to say it is starting:
> 
>          
> 
>         INFO/keactrl: Starting /opt/kea/sbin/kea-dhcp4 -c
>         /opt/kea/etc/kea/kea-dhcp4.conf
> 
>          
> 
>         However, it doesn’t start as the status output shows:
> 
>          
> 
>         keactrl status
> 
>         DHCPv4 server: inactive
> 
>         DHCPv6 server: inactive
> 
>         DHCP DDNS: inactive
> 
>         Control Agent: inactive
> 
>         Kea DHCPv4 configuration file: /opt/kea/etc/kea/kea-dhcp4.conf
> 
>         Kea DHCPv6 configuration file: /opt/kea/etc/kea/kea-dhcp6.conf
> 
>         Kea DHCP DDNS configuration file:
>         /opt/kea/etc/kea/kea-dhcp-ddns.conf
> 
>         Kea Control Agent configuration file:
>         /opt/kea/etc/kea/kea-ctrl-agent.conf
> 
>         keactrl configuration file: /opt/kea/etc/kea/keactrl.conf
> 
>          
> 
>          
> 
>         I get no log output either so have no idea what is going on –
>         logging config below:
> 
>          
> 
>         "loggers": [
> 
>             {
> 
>                 // This section affects kea-dhcp4, which is the base
>         logger for DHCPv4
> 
>                 // component. It tells DHCPv4 server to write all log
>         messages (on
> 
>                 // severity INFO or more) to a file.
> 
>                 "name": "kea-dhcp4",
> 
>                 "output_options": [
> 
>                     {
> 
>                         "output": "/opt/kea/var/log/kea-dhcp4.log"
> 
>                         // This governs whether the log output is
>         flushed to disk after
> 
>                         // every write.
> 
>                         // "flush": false,
> 
>                         // This specifies the maximum size of the file
>         before it is
> 
>                         // rotated. File size is set to 10MB (10240000)
> 
>                         "maxsize": 10240000,
> 
>                         // This specifies the maximum number of rotated
>         files to keep.
> 
>                         "maxver": 8
> 
>                     }
> 
>                 ],
> 
>          
> 
>         *Lawrence McBride*
> 
>         Head of Voice and Data Networks
> 
>          
> 
>         *NHS Informatics Merseyside*
> 
>         *a  *Saturn House, Knowsley Business Park, Liverpool. L34 9GJ
> 
>         *t   *0151 296 7668
> 
>         *m *07795 370190
> 
>         *e  *Lawrence.Mcbride at imerseyside.nhs.uk
>         <mailto:Lawrence.Mcbride at imerseyside.nhs.uk>
> 
>          
> 
>         Say helloto us online at www.imerseyside.nhs.uk
>         <http://www.imerseyside.nhs.uk>or follow uson twitter
>         @nhsimerseyside
> 
>          
> 
>           
> 
>         * *
> 
>         Advance Notification of absence:
> 
>         17^th of August to 6^th of September 2018
> 
>          
> 
>         _______________________________________________
>         Kea-users mailing list
>         Kea-users at lists.isc.org <mailto:Kea-users at lists.isc.org>
>         https://lists.isc.org/mailman/listinfo/kea-users
> 
> 
> 
> _______________________________________________
> Kea-users mailing list
> Kea-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/kea-users
> 




More information about the Kea-users mailing list