Mombu the GNU Linux Forum sponsored links

Go Back   Mombu the GNU Linux Forum > GNU_Linux > NTPD won't stay up
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 22nd June 04:22
gary g. taylor
External User
 
Posts: 1
Default NTPD won't stay up



Mandriva 2006, patched to current spec. NTPD is installed as a service and
instructed to start on boot. Both on startup and on manual attempts to
start it from a root console, it leaves this entry in /var/log/messages

Feb 24 13:44:56 manduck ntpd[15157]: ntpd 4.2.0@1.1161-r Wed Sep 7 20:06:56 CEST 2005 (1)
Feb 24 13:44:56 manduck ntpd[15157]: precision = 1.000 usec
Feb 24 13:44:56 manduck ntpd[15157]: kernel time sync status 0040

and shuts down without any other mention anywhere that I've been able to
find.

ntpdate 0.pool.ntp.org works. 0.pool.ntp.org is in the /etc/ntp.conf file.

I have tried disabling software firewalls and configuring my ADSL
modem/router with a specific pass-through on port 123. Neither of these
have worked. I hve tried starting ntpd with various of the options. Most
of these segfault. I was once able to get the program to start but have
not been able to replicate that.

Any assistance you can offer would be appreciated. Thanks.

--
Gary G. Taylor * Pomona|anomoP, CA * http://www.donavan.org
"The two most abundant things in the Universe are hydrogen and stupidity."
--Robert A. Heinlein, Harlan Ellison, Frank Zappa, and many others
"Living free is the best revenge." --GT
  Reply With Quote


  sponsored links


2 22nd June 04:22
tom
External User
 
Posts: 1
Default NTPD won't stay up



Can you post your /etc/ntp.conf file (without the comments)? I usually
find NTP "finicky" whever I'm trying to get it installed (again; really
makes me hate upgrades).

First, however, google for the "kernel time sync status 0040" -- that
looks kind of wierd to me (I've never noticed it in my syslog)

-Tom
  Reply With Quote
3 22nd June 04:22
gary g. taylor
External User
 
Posts: 1
Default NTPD won't stay up


Various pages state that this is one of the standard lines the daemon gives on startup.

server 127.127.1.0 # local clock
fudge 127.127.1.0 stratum 10

server 0.pool.ntp.org mask 255.255.255.255 nomodify notrap noquery
server 1.pool.ntp.org mask 255.255.255.255 nomodify notrap noquery
server 2.pool.ntp.org mask 255.255.255.255 nomodify notrap noquery
server 3.pool.ntp.org mask 255.255.255.255 nomodify notrap noquery

restrict default kod nomodify notrap noquery nopeer
restrict 127.0.0.1

driftfile /etc/ntp/drift
multicastclient # listen on default 224.0.1.1
broadcastdelay 0.008


--
Gary G. Taylor * Pomona|anomoP, CA * http://www.donavan.org
"The two most abundant things in the Universe are hydrogen and stupidity."
--Robert A. Heinlein, Harlan Ellison, Frank Zappa, and many others
"Living free is the best revenge." --GT
  Reply With Quote
4 22nd June 04:22
gary g. taylor
External User
 
Posts: 1
Default NTPD won't stay up


Sorry bout the flaky line endings. Here it is again, cleaned up:

server 127.127.1.0 # local clock
fudge 127.127.1.0 stratum 10

server 0.pool.ntp.org mask 255.255.255.255 nomodify notrap noquery
server 1.pool.ntp.org mask 255.255.255.255 nomodify notrap noquery
server 2.pool.ntp.org mask 255.255.255.255 nomodify notrap noquery
server 3.pool.ntp.org mask 255.255.255.255 nomodify notrap noquery

restrict default kod nomodify notrap noquery nopeer
restrict 127.0.0.1

driftfile /etc/ntp/drift
multicastclient # listen on default 224.0.1.1
broadcastdelay 0.008

--
Gary G. Taylor * Pomona|anomoP, CA * http://www.donavan.org
"The two most abundant things in the Universe are hydrogen and stupidity."
--Robert A. Heinlein, Harlan Ellison, Frank Zappa, and many others
"Living free is the best revenge." --GT
  Reply With Quote
5 22nd June 04:22
bit twister
External User
 
Posts: 1
Default NTPD won't stay up


I would try making /etc/ntp.conf simple and work back up from there.
I would also use time.windows.com just to get started and
the system clock needs to be fairly close to the correct time.

Using the Mandriva Linux Control Center you would get something like

$ grep -v \# /etc/ntp.conf
fudge 127.127.1.0 stratum 10

server time.windows.com

driftfile /etc/ntp/drift
broadcastdelay 0.008


$ cat /etc/ntp/drift
77.657


$ cat /etc/ntp/step-tickers
time.windows.com
  Reply With Quote
6 22nd June 04:22
gary g. taylor
External User
 
Posts: 1
Default NTPD won't stay up


Done and did. No joy.

--
Gary G. Taylor * Pomona|anomoP, CA * http://www.donavan.org
"The two most abundant things in the Universe are hydrogen and stupidity."
--Robert A. Heinlein, Harlan Ellison, Frank Zappa, and many others
"Living free is the best revenge." --GT
  Reply With Quote
7 22nd June 04:22
tom
External User
 
Posts: 1
Default NTPD won't stay up


I don't see anything particularly odd - though the choice of local clock
servers seem unique.

I'd turn on logging and remove the "restrict kod ..." line first, and see
if it comes up ok, and slowly turn things back on. Primarily I'm looking
at the nopeer and noquery restrictions, and wondering if that's not
somehow (magically) getting applied to the external peers.

Start pulling most everything out - particularly the "broadcastdelay" (why
so high?). And check shorewall again, to make sure you're not blocking
it there (3 hours into my last debugging session ....)
  Reply With Quote
8 22nd June 04:22
bit twister
External User
 
Posts: 1
Default NTPD won't stay up


Hmmm, I have no idea where to look now.
I do have ipv6 disabled on my
Mandriva Linux release 2006.0 (Official) for i586


I am running shorewall as my firewall, all inbound ports are blocked, no
outbound port blocks. Snippet from /var/log/messages where you can see
it took several minutes to sync to time server.

Feb 23 07:02:28 fw ntpd: ntpd shutdown succeeded
Feb 23 07:05:42 fw ntpdate[4756]: step time server 207.46.130.100 offset -0.498428 sec
Feb 23 07:05:42 fw ntpd: succeeded
Feb 23 07:05:42 fw ntpd[4783]: ntpd 4.2.0@1.1161-r Wed Sep 7 20:06:56 CEST 2005 (1)
Feb 23 07:05:42 fw ntpd: ntpd startup succeeded
Feb 23 07:05:42 fw ntpd[4783]: precision = 2.000 usec
Feb 23 07:05:42 fw ntpd[4783]: no IPv6 interfaces found
Feb 23 07:05:42 fw ntpd[4783]: kernel time sync status 0040
Feb 23 07:05:43 fw ntpd[4783]: frequency initialized 90.223 PPM from /etc/ntp/drift
Feb 23 07:08:57 fw ntpd[4783]: synchronized to LOCAL(0), stratum=10
Feb 23 07:08:57 fw ntpd[4783]: kernel time sync disabled 0041
Feb 23 07:10:03 fw ntpd[4783]: kernel time sync enabled 0001
Feb 23 07:14:19 fw ntpd[4783]: synchronized to 207.46.130.100, stratum=2
  Reply With Quote
9 22nd June 04:23
gary g. taylor
External User
 
Posts: 1
Default NTPD won't stay up


Here is my latest ntp.conf file, which is stripped to the bare bones ...
and doesn't work:

fudge 127.127.1.0 stratum 10
server 127.127.1.1
server pool.ntp.org
server time.windows.com

driftfile /etc/ntp/drift
broadcastdelay 0.002
logfile /etc/ntp/ntpd.log

----------

I note that, when started as a service, the daemon is NOT making entries
into the log file or the drift file. I've thought that my copy of the
program itself may be garbled and I have replaced it twice, once with
urpmi and once by compiling from source. Arg.

--
Gary G. Taylor * Pomona|anomoP, CA * http://www.donavan.org
"The two most abundant things in the Universe are hydrogen and stupidity."
--Robert A. Heinlein, Harlan Ellison, Frank Zappa, and many others
"Living free is the best revenge." --GT
  Reply With Quote
10 22nd June 04:23
bit twister
External User
 
Posts: 1
Default NTPD won't stay up


remove the pool.ntp.org and the /etc/ntp/step-tickers
has to have
time.windows.com <=== followed by a carriage return
  Reply With Quote
Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666