in pool, my server runs for days, crashes with no log - NTP

This is a discussion on in pool, my server runs for days, crashes with no log - NTP ; My server, ntp.pfarrell.com, runs for a week or so, and then just stops. I can't see anything useful in the ntp/ntpd.log file nor in the syslog. my .conf file has logconfig +allsync +allclock +sysevents logfile /var/log/ntp/ntpd.log are there other options ...

+ Reply to Thread
Results 1 to 11 of 11

Thread: in pool, my server runs for days, crashes with no log

  1. in pool, my server runs for days, crashes with no log

    My server, ntp.pfarrell.com, runs for a week or so, and then just
    stops. I can't see anything useful in the ntp/ntpd.log file nor in the
    syslog.

    my .conf file has
    logconfig +allsync +allclock +sysevents
    logfile /var/log/ntp/ntpd.log

    are there other options that I should enable to get a better clue as
    to why it is dying?

    thanks
    Pat


  2. Re: in pool, my server runs for days, crashes with no log

    In article <1194239872.652100.248260@19g2000hsx.googlegroups.c om>,
    fishtop_records writes:
    >My server, ntp.pfarrell.com, runs for a week or so, and then just
    >stops. I can't see anything useful in the ntp/ntpd.log file nor in the
    >syslog.


    What version of ntp are you running?

    There was a bug that silently discarded error messages. It was
    fixed a while ago (month or two) but hasn't made it to an official
    stable release yet. (I think it just missed the last release.)

    It is in ntp-dev if you want to try that.


    One common problem is running out of memory.

    --
    These are my opinions, not necessarily my employer's. I hate spam.


  3. Re: in pool, my server runs for days, crashes with no log

    On Nov 5, 12:39 am, hal-use...@ip-64-139-1-69.sjc.megapath.net (Hal
    Murray) wrote:
    > What version of ntp are you running?



    ntp-4.2.0

    > One common problem is running out of memory.


    Yeah, I've set ulimit to try to hold that.

    Altho I can't find it when I look for it now. Where does the ulimit
    belong?
    My server is a dual Xeon with only one or two GB of ram, what's a good
    ulimit value?

    Thanks
    Pat



  4. Re: in pool, my server runs for days, crashes with no log

    fishtop_records wrote:
    > On Nov 5, 12:39 am, hal-use...@ip-64-139-1-69.sjc.megapath.net (Hal
    > Murray) wrote:
    >> What version of ntp are you running?

    >
    >
    > ntp-4.2.0
    >
    >> One common problem is running out of memory.

    >
    > Yeah, I've set ulimit to try to hold that.
    >
    > Altho I can't find it when I look for it now. Where does the ulimit
    > belong?


    It needs to be placed in your ntpd startup script, before ntpd is started,
    /etc/init.d/ntpd or whatever you use to start ntpd.

    > My server is a dual Xeon with only one or two GB of ram, what's a good
    > ulimit value?


    I use '8192' for my pool server. It's what's recommended on the
    'configuration recommendations' page,
    http://www.pool.ntp.org/join/configuration.html .

    > Thanks
    > Pat


    --
    Dennis Hilberg, Jr. timekeeper(at)dennishilberg(dot)com
    NTP Server Information: http://saturn.dennishilberg.com/ntp.php

  5. Re: in pool, my server runs for days,crashes with no log

    fishtop_records wrote:
    > On Nov 5, 12:39 am, hal-use...@ip-64-139-1-69.sjc.megapath.net (Hal
    > Murray) wrote:
    >> What version of ntp are you running?

    >
    >
    > ntp-4.2.0
    >


    First of all you should upgrade since that's a positively ancient
    version. The current stable release is 4.2.4p4. If it still crashes we
    can discuss it further.

    Danny

  6. Re: in pool, my server runs for days, crashes with no log

    > First of all you should upgrade since that's a positively ancient
    > version. The current stable release is 4.2.4p4.


    OK, I've updated to 4.2.4p4
    For some reason, 'make install' didn't put the executables into /usr/
    sbin as I expected as I did the
    configure --prefix=/usr/sbin

    but I moved them by hand and it seems to be working. Will check in a
    bit when the official poller updates my stats.

    thanks




  7. Re: in pool, my server runs for days, crashes with no log

    >>> In article <1194315403.082129.232840@d55g2000hsg.googlegroups. com>, fishtop_records writes:

    fishtop> OK, I've updated to 4.2.4p4 For some reason, 'make install' didn't
    fishtop> put the executables into /usr/ sbin as I expected as I did the
    fishtop> configure --prefix=/usr/sbin

    You wanted: configure --with-binsubdir=sbin

    See the output of configure --help .

    H

  8. Re: in pool, my server runs for days, crashes with no log

    On Nov 5, 9:47 pm, Harlan Stenn wrote:
    > You wanted: configure --with-binsubdir=sbin


    That put the executables in /usr/sbin/sbin

    But I've got a bigger problem.
    The normal /etc/rc.d/init.d/ntpd script is not working.
    if I run the ntpd program from a shell, it runs fine.
    (It takes a fairly long time to start and detach from the shell, maybe
    a full minute or more)

    if I start it the usual Mandriva way,
    /etc/rc.d/init.d/ntpd start
    it says it succeeds, but a minute, checking the status fails.

    [root@dmz log]# /etc/rc.d/init.d/ntpd status
    ntpd dead but subsys locked

    I see no errors in either the /var/log/syslog or the /var/log/ntp/
    ntpd.log

    While its OK to start it by hand for now, its bad form. What can I do
    to see why it won't stay up?


  9. Re: in pool, my server runs for days, crashes with no log

    >But I've got a bigger problem.
    >The normal /etc/rc.d/init.d/ntpd script is not working.
    >if I run the ntpd program from a shell, it runs fine.
    >(It takes a fairly long time to start and detach from the shell, maybe
    >a full minute or more)


    > if I start it the usual Mandriva way,
    > /etc/rc.d/init.d/ntpd start
    > it says it succeeds, but a minute, checking the status fails.


    Which version are you running?

    The log files should have a line that tells you the version when it gets
    started. Something like this (from my /var/log/syslog):

    Aug 2 04:07:27 glypnod ntpd[665]: ntpd 4.2.0b-rc1@1.1475-o Sun Mar 19 18:29:03 UTC 2006 (1)


    The Development version from
    http://support.ntp.org/bin/view/Main/SoftwareDownloads

    Should have the (a?) abort-with-no-logging bug fixed.

    --
    These are my opinions, not necessarily my employer's. I hate spam.


  10. Re: in pool, my server runs for days, crashes with no log

    fishtop_records wrote:
    > But I've got a bigger problem.
    > The normal /etc/rc.d/init.d/ntpd script is not working.
    > if I run the ntpd program from a shell, it runs fine.
    > (It takes a fairly long time to start and detach from the shell, maybe
    > a full minute or more)
    >
    > if I start it the usual Mandriva way,
    > /etc/rc.d/init.d/ntpd start
    > it says it succeeds, but a minute, checking the status fails.
    >
    > [root@dmz log]# /etc/rc.d/init.d/ntpd status
    > ntpd dead but subsys locked
    >
    > I see no errors in either the /var/log/syslog or the /var/log/ntp/
    > ntpd.log
    >
    > While its OK to start it by hand for now, its bad form. What can I do
    > to see why it won't stay up?


    I had a similar problem with the same version of ntp (4.2.0) on a Mandriva
    2007.0 system. I did what you did, tried to use the Mandriva startup script
    for the reference implementation and it didn't work very well, for whatever
    reason. I never figured it out. The startup script was set up to run
    'ntpdate' on boot and right at ntpd startup via a host in the 'step-tickers'
    file.

    All of that is pointless anyway if you use the '-g' option when starting
    ntpd, which allows for an initial large adjustment.

    I ended up abandoning the Mandriva distribution of ntp a while back and now
    only use the reference implementation from www.ntp.org .

    For my startup script, it's just:

    ulimit -l 8192

    /usr/local/bin/ntpd \
    -c /etc/ntp.conf \
    -p /var/run/ntpd.pid -g

    I would get rid of all traces of the Mandriva ntp: '# urpme ntp'. Make sure
    you don't have the OpenNtpd installed either: '# urpme ntpd'. Then install
    the reference implementation and create a simple startup script like mine.
    Finally, create a basic ntp.conf if you don't already have one:

    restrict default kod nopeer nomodify notrap
    restrict 127.0.0.1

    server hostname.1.domain iburst
    server hostname.2.domain iburst
    server hostname.3.domain iburst
    server hostname.4.domain iburst

    driftfile /var/lib/ntp.drift
    logfile /var/log/ntp/ntp.log

    statsdir /var/log/ntp/
    statistics loopstats peerstats
    filegen loopstats file loopstats type day enable
    filegen peerstats file peerstats type day enable

    Since your server is in the pool, don't configure it with pool servers as
    synchronization sources. Find some good stratum twos from
    http://support.ntp.org/bin/view/Serv...TwoTimeServers that are not
    part of the pool project.

    Hope that helps,

    --
    Dennis Hilberg, Jr. timekeeper(at)dennishilberg(dot)com
    NTP Server Information: http://saturn.dennishilberg.com/ntp.php

  11. Re: in pool, my server runs for days, crashes with no log

    >>> In article <1194322188.699136.172200@57g2000hsv.googlegroups.c om>, fishtop_records writes:

    fishtop> On Nov 5, 9:47 pm, Harlan Stenn wrote:
    >> You wanted: configure --with-binsubdir=sbin


    fishtop> That put the executables in /usr/sbin/sbin

    Then I belive you used a strange value for --prefix.

    fishtop> But I've got a bigger problem. The normal /etc/rc.d/init.d/ntpd
    fishtop> script is not working. if I run the ntpd program from a shell, it
    fishtop> runs fine. (It takes a fairly long time to start and detach from
    fishtop> the shell, maybe a full minute or more)

    Exactly what command-line flags/options are you using again?

    H


+ Reply to Thread