Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] After Portage Update, nptd Fails to Start
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
eno2001
Tux's lil' helper
Tux's lil' helper


Joined: 20 Oct 2006
Posts: 136

PostPosted: Thu Jun 04, 2009 5:41 pm    Post subject: [SOLVED] After Portage Update, nptd Fails to Start Reply with quote

I'm running Gentoo x86_64 (newly migrated from Xen source tarball to Xen 3.3.1 from Portage) on an AMD dual core box. ntpd has been pretty solid for a few years and just recently I ran an 'emerge -auvDN world' as well as various fixes along the way. After doing this, I had to fix some of the Xen breakage due to my move from using the tarball from the Xen project to using the Portage build. One of the things I had to fix was an error in a network script for Xen that greps for 'inet' and gets confused by the "inet6" present in the current kernel for IPv6. I just changed the grep line so it looks for 'inet ' which was something I found here on the forums. That worked.

Now that networking was up and running and my VMs could start, I got around to trying to fix the problem with ntpd in Domain 0. At first I figured it would be an easy fix, but I have been proven wrong. I've found no references to my exact problem via Google or on the Gentoo forums. Everything is configured correctly (as in has not changed since I first set it up in 2007). But when I try to start it manually with the debug level all the way up, I get the following:

Code:
xenhost2 src # ntpd  -6 -n -I eth0 -d -d -d -d
ntpd 4.2.4p7@1.1607-o Tue Jun  2 05:07:29 UTC 2009 (1)
addto_syslog: set_process_priority: Leave priority alone: priority_done is <2>
addto_syslog: precision = 1.000 usec
create_sockets(123)
addto_syslog: ntp_io: estimated max descriptors: 1024, initial socket boundary: 16
setsockopt SO_TIMESTAMP enabled on fd 16 address 0.0.0.0
bind() fd 16, family 2, port 123, addr 0.0.0.0, flags=0x89
flags for fd 16: 0x802
Searching for addr 0.0.0.0 in list of addresses - NOT FOUND
Added addr 0.0.0.0 to list of addresses
addto_syslog: Listening on interface #0 wildcard, 0.0.0.0#123 Disabled
setsockopt SO_TIMESTAMP enabled on fd 17 address ::
bind() fd 17, family 10, port 123, addr ::, flags=0x81
flags for fd 17: 0x802
Searching for addr :: in list of addresses - NOT FOUND
Added addr :: to list of addresses
Segmentation fault


The only difference I can think of is that previously I did not have IPv6 enabled in my Xen Linux kernel and now I do since it seems to be a default. I'm curious about experimenting with IPv6, so I'd prefer to keep it enabled. Could this be the problem? Anyone else in the same boat?


Last edited by eno2001 on Fri Jun 05, 2009 5:01 pm; edited 1 time in total
Back to top
View user's profile Send private message
Abraxas
l33t
l33t


Joined: 25 May 2003
Posts: 814

PostPosted: Fri Jun 05, 2009 2:03 pm    Post subject: Reply with quote

Does it work with "-4"?
Back to top
View user's profile Send private message
eno2001
Tux's lil' helper
Tux's lil' helper


Joined: 20 Oct 2006
Posts: 136

PostPosted: Fri Jun 05, 2009 3:52 pm    Post subject: Reply with quote

Same result with -4. I think I might just back up my configs, unmerge, clean out any cruft left behind and then re-emerge at this point, then report the results back here.

Abraxas wrote:
Does it work with "-4"?
Back to top
View user's profile Send private message
eno2001
Tux's lil' helper
Tux's lil' helper


Joined: 20 Oct 2006
Posts: 136

PostPosted: Fri Jun 05, 2009 4:32 pm    Post subject: Reply with quote

In the middle of re-emering ntp now. I also added the USE flag '-ipv6' as a test to see if that might be part of the problem.

eno2001 wrote:
Same result with -4. I think I might just back up my configs, unmerge, clean out any cruft left behind and then re-emerge at this point, then report the results back here.

Abraxas wrote:
Does it work with "-4"?
Back to top
View user's profile Send private message
eno2001
Tux's lil' helper
Tux's lil' helper


Joined: 20 Oct 2006
Posts: 136

PostPosted: Fri Jun 05, 2009 4:46 pm    Post subject: Reply with quote

That seemed to work. I''m not sure if it was the USE=-ipv6 or cleaning out old cruft. I'll re-emerge without the -ipv6 and post results...

eno2001 wrote:
In the middle of re-emering ntp now. I also added the USE flag '-ipv6' as a test to see if that might be part of the problem.

eno2001 wrote:
Same result with -4. I think I might just back up my configs, unmerge, clean out any cruft left behind and then re-emerge at this point, then report the results back here.

Abraxas wrote:
Does it work with "-4"?
Back to top
View user's profile Send private message
eno2001
Tux's lil' helper
Tux's lil' helper


Joined: 20 Oct 2006
Posts: 136

PostPosted: Fri Jun 05, 2009 5:00 pm    Post subject: Solution Reply with quote

Hmmm... well, it broke when I allowed it to compile with ipv6 support. So for now, I'll leave out ipv6 from ntpd. I wonder if there is something wrong with ipv6 on my system overall. I won't know until I test. But for now I have nptd back. :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum