Page 1 of 1

DHCP not working

Posted: Fri Oct 02, 2009 3:02 am
by jthompson
The DHCP server has stopped working. I have tried multiple reboots and get the same result. The log message is:

[BST Oct 2 10:53:29] info : 'dhcpd' trying to restart
[BST Oct 2 10:53:29] info : 'dhcpd' start: /etc/init.d/dhcpd
[BST Oct 2 10:53:59] error : 'dhcpd' process is not running
[BST Oct 2 10:53:59] error : 'dhcpd' failed to start
[BST Oct 2 10:53:59] info : 'dhcpd' trying to restart
[BST Oct 2 10:53:59] info : 'dhcpd' start: /etc/init.d/dhcpd
[BST Oct 2 10:54:29] error : 'dhcpd' failed to start
[BST Oct 2 10:54:29] error : 'dhcpd' process is not running
[BST Oct 2 10:54:29] info : 'dhcpd' trying to restart
[BST Oct 2 10:54:29] info : 'dhcpd' start: /etc/init.d/dhcpd
[BST Oct 2 10:54:59] error : 'dhcpd' failed to start
[BST Oct 2 10:54:59] error : 'dhcpd' process is not running
[BST Oct 2 10:54:59] info : 'dhcpd' trying to restart
[BST Oct 2 10:54:59] info : 'dhcpd' start: /etc/init.d/dhcpd
[BST Oct 2 10:55:29] error : 'dhcpd' failed to start
[BST Oct 2 10:55:29] error : 'dhcpd' process is not running
[BST Oct 2 10:55:29] info : 'dhcpd' trying to restart
[BST Oct 2 10:55:29] info : 'dhcpd' start: /etc/init.d/dhcpd
[BST Oct 2 10:55:59] error : 'dhcpd' failed to start
[BST Oct 2 10:55:59] error : 'dhcpd' process is not running
[BST Oct 2 10:55:59] info : 'dhcpd' trying to restart
[BST Oct 2 10:55:59] info : 'dhcpd' start: /etc/init.d/dhcpd
[BST Oct 2 10:56:29] error : 'dhcpd' failed to start
[BST Oct 2 10:56:29] error : 'dhcpd' process is not running
[BST Oct 2 10:56:29] info : 'dhcpd' trying to restart
[BST Oct 2 10:56:29] info : 'dhcpd' start: /etc/init.d/dhcpd
[BST Oct 2 10:56:59] error : 'dhcpd' failed to start
[BST Oct 2 10:56:59] error : 'dhcpd' process is not running
[BST Oct 2 10:56:59] info : 'dhcpd' trying to restart
[BST Oct 2 10:56:59] info : 'dhcpd' start: /etc/init.d/dhcpd
[BST Oct 2 10:57:29] error : 'dhcpd' failed to start
[BST Oct 2 10:57:29] error : 'dhcpd' process is not running
[BST Oct 2 10:57:29] info : 'dhcpd' trying to restart
[BST Oct 2 10:57:29] info : 'dhcpd' start: /etc/init.d/dhcpd


Any ideas?

When I run /etc/init.d/dhcpd configtest I get the following error message:

/etc/dhcpd.conf line 20: semicolon expected.
max-lease-time
^
/etc/dhcpd.conf line 20: expecting a parameter or declaration
max-lease-time ;
^
Configuration file errors encountered -- exiting



Further investigation shows that the leas times in the /etc/dhcpd.conf file are:

option domain-name-servers 192.168.1.10;
option time-offset 3600;
range 192.168.1.100 192.168.1.254;
default-lease-time ;
max-lease-time ;
filename "pxelinux.0";
next-server 192.168.1.10;


I guess the question is what should the values in the lease time fields be? I want to have infinite values, ie the leases do not expire except on reboot.

Re: DHCP not working

Posted: Fri Oct 02, 2009 11:24 am
by cpg
hi, this should be fixed by now. we had a major update last night and we briefly had a hiccup in the release, though most people would have noticed:

http://bugs.amahi.org/issues/show/322

apologies for this mishap! :oops:

the work-around is there in the bug, though you probably do not need it by now, because the subsequent update took care of things:

Code: Select all

yum clean metadata yum -y update hda-platform

Re: DHCP not working

Posted: Wed Oct 14, 2009 8:05 am
by afreburg
I wanted to bump this thread as I'm still seeing this issue: http://bugs.amahi.org/issues/show/322

I can do a vi /etc/dhcpd.conf, edit default and max, and restart the dhcpd server. The catch is once the server is rebooted or hdactl is restarted the dhcpd.conf file is updated and takes the dhcpd service back offline. Any suggestions on where the bogus entries are coming from and how I can stop this?

Thanks

Re: DHCP not working

Posted: Sat Oct 24, 2009 12:23 pm
by afreburg
Anything on this? I'm still getting the following error. I also can no longer install or access applications that are web based. Only app that works right now is ushare.

Internet Systems Consortium DHCP Server 4.0.0
Copyright 2004-2007 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
/etc/dhcpd.conf line 20: semicolon expected.
max-lease-time
^
/etc/dhcpd.conf line 20: expecting a parameter or declaration
max-lease-time ;
^
Configuration file errors encountered -- exiting

This version of ISC DHCP is based on the release available
on ftp.isc.org. Features have been added and other changes
have been made to the base software release in order to make
it work better with this distribution.

Please report for this software via the Red Hat Bugzilla site:
http://bugzilla.redhat.com

exiting.

Re: DHCP not working

Posted: Sat Oct 24, 2009 12:27 pm
by cpg
did you try the work around in the bug??

Code: Select all

yum clean metadata yum -y update hda-platform

Re: DHCP not working

Posted: Sat Oct 24, 2009 12:30 pm
by afreburg
Yup. Couple times. Even tried it today.

Platform: 4.1-1

Service: 2.44-7

Re: DHCP not working

Posted: Sat Oct 24, 2009 12:38 pm
by cpg
ok, please do this:

Code: Select all

(cd /var/hda/platform/html; echo "Setting.create(:kind => 'network', :name => 'dhcp_lease_time', :value => '14400')" | ./script/console) hdactl-hup
then report back. if this does not work, pelase come by the irc channel and hunt me down. http://talk.amahi.org

Re: DHCP not working

Posted: Sat Oct 24, 2009 1:09 pm
by afreburg
That did it! DHCPD stays running after hdactl restarts. Even did a full reboot to make sure. All my apps are installing and working correctly again. I turned off the DHCP service on my router.

First issue I've had since I started my HDA in April. I started off an Fedora 9, did an in-place upgrade even to F10 after support was released for F10.

Thank you for saving me a full rebuild. :D

Re: DHCP not working

Posted: Sat Oct 24, 2009 1:14 pm
by cpg
as the bug says, it's a race condition and your hda updated within the window of the race condition. we don't know of too many cases in the wild. glad it worked! :-)