View previous topic :: View next topic |
Author |
Message |
-leliel- Apprentice
Joined: 03 May 2003 Posts: 294 Location: Germany
|
Posted: Fri Nov 07, 2003 1:09 pm Post subject: dhcp server crashes after a while |
|
|
Hi,
my dhcp server crashes once or twice a day with the following message:
Nov 7 12:38:29 [kernel] grsec: signal 11 sent to (dhcpd:15836) UID(10009) EUID(10009), parent (init:1) UID(0) EUID(0)
there are also hundreds of messages like this in the syslog:
Nov 7 11:38:29 [dhcpd] Wrote 0 deleted host decls to leases file.
Nov 7 11:38:29 [dhcpd] Wrote 0 new dynamic host decls to leases file.
Nov 7 11:38:29 [dhcpd] Wrote 0 deleted host decls to leases file.
Nov 7 11:38:29 [dhcpd] Wrote 0 new dynamic host decls to leases file.
Nov 7 11:38:29 [dhcpd] Wrote 0 deleted host decls to leases file.
Nov 7 11:38:29 [dhcpd] Wrote 0 new dynamic host decls to leases file.
Nov 7 11:38:29 [dhcpd] Wrote 0 deleted host decls to leases file.
Nov 7 11:38:29 [dhcpd] Wrote 0 new dynamic host decls to leases file.
Nov 7 11:38:29 [dhcpd] Wrote 0 deleted host decls to leases file.
Nov 7 11:38:29 [dhcpd] Wrote 0 new dynamic host decls to leases file.
Nov 7 11:38:29 [dhcpd] Wrote 0 deleted host decls to leases file.
Nov 7 11:38:29 [dhcpd] Wrote 0 new dynamic host decls to leases file.
any idea what could happened to the server? worked fine last week and I've really changed nothing on the configs.
dhcpd --version is isc-dhcpd-V3.0pl2
thanks a lot |
|
Back to top |
|
|
evanduser n00b
Joined: 09 Apr 2003 Posts: 22
|
Posted: Fri Nov 07, 2003 4:01 pm Post subject: |
|
|
This release runs as user dhcp, group dhcp. If you upgraded from previous release the owner of /var/lib/dhcp needs to be set to chown dhcp.dhcp |
|
Back to top |
|
|
-leliel- Apprentice
Joined: 03 May 2003 Posts: 294 Location: Germany
|
Posted: Fri Nov 07, 2003 10:05 pm Post subject: |
|
|
thanks, but that doesn't fix the problem.
chmod is 770, user and group are dhcp, server itself is chroot'ed.
any ideas? |
|
Back to top |
|
|
joehni Apprentice
Joined: 27 Jul 2003 Posts: 175
|
|
Back to top |
|
|
joehni Apprentice
Joined: 27 Jul 2003 Posts: 175
|
Posted: Fri Nov 07, 2003 11:32 pm Post subject: |
|
|
Grrr. They already removed the fixed version again, since they could not reproduce it after a remerge of -r2. |
|
Back to top |
|
|
braindead0 Tux's lil' helper
Joined: 29 Apr 2003 Posts: 146 Location: Ohio
|
Posted: Sat Nov 08, 2003 12:27 pm Post subject: |
|
|
Mine just seems to die after a bit, nothing odd in the logs that I can see. If I try to restart, when stopping it reports !!
go figure |
|
Back to top |
|
|
tam Guru
Joined: 04 Mar 2003 Posts: 569
|
Posted: Mon Nov 17, 2003 10:07 am Post subject: |
|
|
I just have encountered the same problem:
Code: | root@serv4 ~ # dhcpd --verison
Internet Software Consortium DHCP Server V3.0pl2
|
After a while, dhcp server dies. It's very annoying, because I have ~50 samba users connected.
Any solution for this? |
|
Back to top |
|
|
ke.batty n00b
Joined: 10 Nov 2003 Posts: 5
|
|
Back to top |
|
|
woodm Tux's lil' helper
Joined: 18 Jun 2002 Posts: 75
|
Posted: Mon Dec 08, 2003 10:17 pm Post subject: It may be metalog |
|
|
Quote: | Mine just seems to die after a bit, nothing odd in the logs that I can see. If I try to restart, when stopping it reports !!
go figure |
Could this be from metalog caching it's output? Just a guess. There is a way to force it to dump and not cache, but I have NO experience with it.
For the record, I'm having a similar problem, but mine seems to be related to the leases renewing:
from /var/log/kernel/current:
Code: |
Dec 7 22:51:44 [kernel] grsec: denied hardlink of /var/lib/dhcp/dhcpd.leases (owned by 0.0) to /var/lib/dhcp/dhcpd.leases~ for (dhcpd:17813) UID(1005) EUID(100
5), parent (init:1) UID(0) EUID(0)
Dec 7 22:52:08 [kernel] grsec: attempted resource overstep by requesting 8388608 for RLIMIT_STACK against limit 8388608 by (dhcpd:17813) UID(1005) EUID(1005), parent (init:1) UID(0) EUID(0)
Dec 7 22:52:08 [kernel] grsec: attempted resource overstep by requesting 8392704 for RLIMIT_STACK against limit 8388608 by (dhcpd:17813) UID(1005) EUID(1005), parent (init:1) UID(0) EUID(0)
|
_________________ There are thousands of types of people in this world:
The type that seperates people into two groups,
and the thousands of other types. |
|
Back to top |
|
|
Petyr Guru
Joined: 08 Jan 2003 Posts: 471 Location: San Diego, CA, USA
|
Posted: Sun Dec 21, 2003 5:48 am Post subject: |
|
|
I'm having the exact same problem it seems, the wierd thing is my dhcp.leases file was owned by dhcp:dhcp the entire time, though I had to force the leases file to be owned by dhcp the first time around. I dunno, the damn thing just silently exits and/or crashes.
Petyr |
|
Back to top |
|
|
ARC2300 Apprentice
Joined: 30 Mar 2003 Posts: 265
|
Posted: Tue Dec 23, 2003 1:54 am Post subject: |
|
|
Doing the fix listed makes it stay up.
Or, if you're too lazy to write a new line, just go to /etc/init.d/dhcp and delete where it says "-user dhcp -group dhcp" and it should work just fine. |
|
Back to top |
|
|
HoGiHung n00b
Joined: 22 Dec 2003 Posts: 8
|
Posted: Tue Dec 23, 2003 4:47 pm Post subject: |
|
|
I'm having a bit of a time getting it to work also. I've downloaded the new dhcp script as posted above. Below is a snipet from my syslog:
Dec 23 11:04:18 kiragentoo dhcpd: For info, please visit http://www.isc.org/products/DHCP
Dec 23 11:04:18 kiragentoo dhcpd: Wrote 0 leases to leases file.
Dec 23 11:04:18 kiragentoo dhcpd: socket: Protocol not available - make sure
Dec 23 11:04:18 kiragentoo dhcpd: CONFIG_PACKET (Packet socket) and CONFIG_FILTER
Dec 23 11:04:18 kiragentoo dhcpd: (Socket Filtering) are enabled in your kernel
Dec 23 11:04:18 kiragentoo dhcpd: configuration!
Dec 23 11:04:18 kiragentoo dhcpd:
Anyone able to assist?
Ho... |
|
Back to top |
|
|
Psi15 Tux's lil' helper
Joined: 07 Jan 2003 Posts: 86 Location: Vienna
|
Posted: Tue Jan 06, 2004 5:03 pm Post subject: |
|
|
similar problem over here...
for testing puposes I had the dhcpcd server running for a while with the -d option, and after several hours it crashes with a 'segmentation fault' error - no interesting log entries at all, only debug output...
will try the workaround tonight - maybe it's getting better |
|
Back to top |
|
|
|