[ntp:questions] Re: can't get ntp to stay up on redhat fedora 1

jay jay at optonline.net
Wed Dec 24 18:11:18 UTC 2003


Thanks for the suggestion. Don't think it applies. See below.

Frederick Bruckman wrote:
 > In article <3FE91C48.9070906 at hotmail.com>,
 > 	sean darcy <seandarcy at hotmail.com> writes:
 >
 >>Any other thoughts why ntp fails to stay up - or give log messages?
 >
 >
 > Maybe (closed) bug #220 again? Would you please either update to ntp-dev,
 > or apply the change in the bug report by hand, and try again?
 >
Looked at bug 220 - I don't think that's it - or at least I dont get a 
segfault. Here's /var/log/mesages with -dd:


Dec 24 12:59:30 gateway ntpdate[20909]: step time server 66.187.224.4 
offset 0.011440 sec
Dec 24 12:59:30 gateway ntpd:  succeeded
Dec 24 12:59:30 gateway ntpd[20913]: ntpd 4.2.0 at 1.1161-r Tue Oct 28 
05:43:36 EST 2003 (1)
Dec 24 12:59:30 gateway ntpd[20913]: precision = 2.000 usec
Dec 24 12:59:30 gateway ntpd[20913]: no IPv6 interfaces found
Dec 24 12:59:30 gateway ntpd[20913]: kernel time sync status 0040
Dec 24 12:59:30 gateway ntpd: ntpd 4.2.0 at 1.1161-r Tue Oct 28 05:43:36 
EST 2003 (1)
Dec 24 12:59:30 gateway ntpd: addto_syslog: ntpd 4.2.0 at 1.1161-r Tue Oct 
28 05:43:36 EST 2003 (1)
Dec 24 12:59:30 gateway ntpd: addto_syslog: signal_no_reset: signal 13 
had flags 4000000
Dec 24 12:59:30 gateway ntpd: addto_syslog: set_process_priority: Leave 
priority alone: priority_done is <2>
Dec 24 12:59:30 gateway ntpd: addto_syslog: precision = 2.000 usec
Dec 24 12:59:30 gateway ntpd: create_sockets(123)
Dec 24 12:59:30 gateway ntpd: addto_syslog: no IPv6 interfaces found
Dec 24 12:59:30 gateway ntpd: bind() fd 4, family 2, port 123, addr 
0.0.0.0, flags=8
Dec 24 12:59:30 gateway ntpd: flags for fd 4: 04002
Dec 24 12:59:30 gateway ntpd: bind() fd 5, family 2, port 123, addr 
127.0.0.1, flags=0
Dec 24 12:59:30 gateway ntpd: flags for fd 5: 04002
Dec 24 12:59:30 gateway ntpd: bind() fd 6, family 2, port 123, addr 
67.86.254.72, flags=8
Dec 24 12:59:30 gateway ntpd: flags for fd 6: 04002
Dec 24 12:59:30 gateway ntpd: bind() fd 7, family 2, port 123, addr 
10.10.8.252, flags=8
Dec 24 12:59:30 gateway ntpd: flags for fd 7: 04002
Dec 24 12:59:30 gateway ntpd: create_sockets: ninterfaces=4
Dec 24 12:59:30 gateway ntpd: interface 0:  fd=4,  bfd=-1, 
name=wildcard,  flags=0x8
Dec 24 12:59:30 gateway ntpd:               sin=0.0.0.0  bcast=0.0.0.0, 
  mask=255.255.255.255Dec 24 12:59:30 gateway ntpd: interface 1:  fd=5, 
  bfd=-1,  name=lo,  flags=0x5
Dec 24 12:59:30 gateway ntpd:               sin=127.0.0.1  mask=255.0.0.0
Dec 24 12:59:30 gateway ntpd: interface 2:  fd=6,  bfd=-1,  name=eth0, 
flags=0x9
Dec 24 12:59:30 gateway ntpd:               sin=67.86.254.72 
bcast=255.255.255.255,  mask=255.255.240.0
Dec 24 12:59:30 gateway ntpd: interface 3:  fd=7,  bfd=-1,  name=eth1, 
flags=0x9
Dec 24 12:59:30 gateway ntpd:               sin=10.10.8.252 
bcast=10.10.8.255,  mask=255.255.255.0
Dec 24 12:59:30 gateway ntpd: init_io: maxactivefd 7
Dec 24 12:59:30 gateway ntpd: local_clock: at 0 state 0
Dec 24 12:59:30 gateway ntpd: ntp_syslogmask = 0x0000ffff (=sysall)
Dec 24 12:59:30 gateway ntpd: ntp_syslogmask = 0x0fffffff (+syncall)
Dec 24 12:59:30 gateway ntpd: ntp_syslogmask = 0x0fffffff (+clockall)
Dec 24 12:59:30 gateway ntpd: ntp_syslogmask = 0x0fffffff (+peerall)
Dec 24 12:59:30 gateway ntpd: ntpd startup failed


I ran the redhat startup script with sh -x. It fails because ntpd gives 
a return value of 11:

+ echo -n 'Starting ntpd: '
Starting ntpd: + daemon ntpd -dd -U ntp -p /var/run/ntpd.pid
+ local gotbase= force=
+ local base= user= nice= bg= pid=
+ nicelevel=0
+ '[' ntpd '!=' ntpd ']'
+ '[' -z '' ']'
+ base=ntpd
+ '[' -f /var/run/ntpd.pid ']'
+ '[' -n '' -a -z '' ']'
+ ulimit -S -c 0
+ '[' -n '' ']'
+ '[' color = verbose -a -z '' ']'
+ '[' -z '' ']'
+ initlog -q -c 'ntpd -dd -U ntp -p /var/run/ntpd.pid'
ntpd 4.2.0 at 1.1161-r Tue Oct 28 05:43:36 EST 2003 (1)
addto_syslog: ntpd 4.2.0 at 1.1161-r Tue Oct 28 05:43:36 EST 2003 (1)
addto_syslog: signal_no_reset: signal 13 had flags 4000000
addto_syslog: set_process_priority: Leave priority alone: priority_done 
is <2>
addto_syslog: precision = 2.000 usec
create_sockets(123)
addto_syslog: no IPv6 interfaces found
bind() fd 4, family 2, port 123, addr 0.0.0.0, flags=8
flags for fd 4: 04002
bind() fd 5, family 2, port 123, addr 127.0.0.1, flags=0
flags for fd 5: 04002
bind() fd 6, family 2, port 123, addr 67.86.254.72, flags=8
flags for fd 6: 04002
bind() fd 7, family 2, port 123, addr 10.10.8.252, flags=8
flags for fd 7: 04002
create_sockets: ninterfaces=4
interface 0:  fd=4,  bfd=-1,  name=wildcard,  flags=0x8
               sin=0.0.0.0  bcast=0.0.0.0,  mask=255.255.255.255
interface 1:  fd=5,  bfd=-1,  name=lo,  flags=0x5
               sin=127.0.0.1  mask=255.0.0.0
interface 2:  fd=6,  bfd=-1,  name=eth0,  flags=0x9
               sin=67.86.254.72  bcast=255.255.255.255,  mask=255.255.240.0
interface 3:  fd=7,  bfd=-1,  name=eth1,  flags=0x9
               sin=10.10.8.252  bcast=10.10.8.255,  mask=255.255.255.0
init_io: maxactivefd 7
local_clock: at 0 state 0
ntp_syslogmask = 0x0000ffff (=sysall)
ntp_syslogmask = 0x0fffffff (+syncall)
ntp_syslogmask = 0x0fffffff (+clockall)
ntp_syslogmask = 0x0fffffff (+peerall)
+ '[' 11 -eq 0 ']'
+ failure 'ntpd startup'


Here the snip from the redhat startup script:

# Start daemons.
         echo -n $"Starting $prog: "
         daemon ntpd $OPTIONS
         RETVAL=$?
         echo
         [ $RETVAL -eq 0 ] && touch /var/lock/subsys/ntpd
         return $RETVAL


Appreciate the help. Any other ideas?

sean



More information about the questions mailing list