NTP fails synchronization with server at startup - NTP

This is a discussion on NTP fails synchronization with server at startup - NTP ; Dear All, I have NTP configured to synchronize with a server at startup, but it always fails that as reported by Fedora 8 during the booting. Notwithstanding: # /sbin/service ntpd restart Shutting down ntpd: [ OK ] ntpd: Synchronizing with ...

+ Reply to Thread
Results 1 to 9 of 9

Thread: NTP fails synchronization with server at startup

  1. NTP fails synchronization with server at startup

    Dear All,

    I have NTP configured to synchronize with a server at startup, but it
    always fails that as reported by Fedora 8 during the booting.
    Notwithstanding:

    # /sbin/service ntpd restart
    Shutting down ntpd: [ OK ]
    ntpd: Synchronizing with time server: [ OK ]
    Starting ntpd: [ OK ]
    #

    Any ideas?

    Thanks in advance,

    Paul

  2. Re: NTP fails synchronization with server at startup

    phhs80@gmail.com wrote:
    > Dear All,
    >
    > I have NTP configured to synchronize with a server at startup, but it
    > always fails that as reported by Fedora 8 during the booting.
    > Notwithstanding:
    >
    > # /sbin/service ntpd restart
    > Shutting down ntpd: [ OK ]
    > ntpd: Synchronizing with time server: [ OK ]
    > Starting ntpd: [ OK ]
    > #
    >
    > Any ideas?
    >
    > Thanks in advance,
    >
    > Paul


    Your message is VERY short on useful information. What version of ntpd
    are you using? I don't see any details of the alleged failure.

    What command line are you using to start ntpd? What does your ntp.conf
    file look like? Are there any relevant messages in syslog?


  3. Re: NTP fails synchronization with server at startup

    On Dec 5, 10:35 pm, "Richard B. Gilbert"
    wrote:
    > > I have NTP configured to synchronize with a server at startup, but it
    > > always fails that as reported by Fedora 8 during the booting.
    > > Notwithstanding:

    >
    > > # /sbin/service ntpd restart
    > > Shutting down ntpd: [ OK ]
    > > ntpd: Synchronizing with time server: [ OK ]
    > > Starting ntpd: [ OK ]
    > > #

    >
    > > Any ideas?

    >
    > > Thanks in advance,

    >
    > > Paul

    >
    > Your message is VERY short on useful information. What version of ntpd
    > are you using? I don't see any details of the alleged failure.
    >
    > What command line are you using to start ntpd? What does your ntp.conf
    > file look like? Are there any relevant messages in syslog?


    Thanks, Richard. Let me add the requested details:

    Using:
    # rpm -qi ntp
    Name : ntp Relocations: (not
    relocatable)
    Version : 4.2.4p2 Vendor: Fedora Project
    Release : 6.fc8 Build Date: Mon 24 Sep
    2007 03:40:21 PM WEST
    Install Date: Fri 02 Nov 2007 02:22:53 PM WET Build Host:
    xenbuilder4.fedora.phx.redhat.com
    Group : System Environment/Daemons Source RPM:
    ntp-4.2.4p2-6.fc8.src.rpm
    Size : 2652615 License: (MIT and BSD
    and BSD with advertising) and GPLv2
    Signature : DSA/SHA1, Thu 25 Oct 2007 05:41:19 AM WEST, Key ID
    b44269d04f2a6fd2
    Packager : Fedora Project
    URL : http://www.ntp.org
    Summary : Synchronizes system time using the Network Time Protocol
    (NTP)
    Description :
    The Network Time Protocol (NTP) is used to synchronize a computer's
    time with another reference time source. The ntp package contains
    utilities and daemons that will synchronize your computer's time to
    Coordinated Universal Time (UTC) via the NTP protocol and NTP servers.
    The ntp package includes ntpdate (a program for retrieving the date
    and time from remote machines via a network) and ntpd (a daemon which
    continuously adjusts system time).

    Install the ntp package if you need tools for keeping your system's
    time synchronized via the NTP protocol.
    #



    ---------------------------------------------------------------------------------
    SYSLOG

    /var/log/messagesec 6 00:11:47 localhost ntpd[1863]: ntpd exiting
    on signal 15
    /var/log/messagesec 6 00:13:22 localhost ntpdate[2187]: can't find
    host ntp.obspm.fr
    /var/log/messagesec 6 00:13:22 localhost ntpdate[2187]: can't find
    host ntp.kamino.fr
    /var/log/messagesec 6 00:13:22 localhost ntpdate[2187]: can't find
    host ntp2.belbone.be
    /var/log/messagesec 6 00:13:22 localhost ntpdate[2187]: no servers
    can be used, exiting
    /var/log/messagesec 6 00:13:22 localhost ntpd[2192]: ntpd
    4.2.4p2@1.1495-o Mon Sep 24 14:40:07 UTC 2007 (1)
    /var/log/messagesec 6 00:13:22 localhost ntpd[2194]: precision =
    1.000 usec
    /var/log/messagesec 6 00:13:22 localhost ntpd[2194]: Listening on
    interface #0 wildcard, 0.0.0.0#123 Disabled
    /var/log/messagesec 6 00:13:22 localhost ntpd[2194]: Listening on
    interface #1 wildcard, ::#123 Disabled
    /var/log/messagesec 6 00:13:22 localhost ntpd[2194]: Listening on
    interface #2 lo, ::1#123 Enabled
    /var/log/messagesec 6 00:13:22 localhost ntpd[2194]: Listening on
    interface #3 lo, 127.0.0.1#123 Enabled
    /var/log/messagesec 6 00:13:22 localhost ntpd[2194]: kernel time
    sync status 0040
    /var/log/messagesec 6 00:13:22 localhost ntpd[2194]: frequency
    initialized 85.123 PPM from /var/lib/ntp/drift
    /var/log/messagesec 6 00:13:22 localhost ntpd[2194]: getaddrinfo:
    "ntp.obspm.fr" invalid host address, ignored
    /var/log/messagesec 6 00:13:22 localhost ntpd[2194]: getaddrinfo:
    "ntp.kamino.fr" invalid host address, ignored
    /var/log/messagesec 6 00:13:22 localhost ntpd[2194]: getaddrinfo:
    "ntp2.belbone.be" invalid host address, ignored
    /var/log/messagesec 6 00:16:24 localhost ntpd[2194]: Cannot find
    existing interface for address 145.238.203.10
    /var/log/messagesec 6 00:16:24 localhost ntpd_initres[2206]: ntpd
    indicates no data available!
    /var/log/messagesec 6 00:16:24 localhost ntpd[2194]: Cannot find
    existing interface for address 213.251.169.205
    /var/log/messagesec 6 00:16:24 localhost ntpd_initres[2206]: ntpd
    indicates no data available!
    /var/log/messagesec 6 00:16:25 localhost ntpd[2194]: Cannot find
    existing interface for address 195.13.1.153
    /var/log/messagesec 6 00:16:25 localhost ntpd_initres[2206]: ntpd
    indicates no data available!
    /var/log/messagesec 6 00:17:24 localhost ntpd[2194]: Cannot find
    existing interface for address 145.238.203.10
    /var/log/messagesec 6 00:17:24 localhost ntpd_initres[2206]: ntpd
    indicates no data available!
    /var/log/messagesec 6 00:17:24 localhost ntpd[2194]: Cannot find
    existing interface for address 213.251.169.205
    /var/log/messagesec 6 00:17:24 localhost ntpd_initres[2206]: ntpd
    indicates no data available!
    /var/log/messagesec 6 00:17:24 localhost ntpd[2194]: Cannot find
    existing interface for address 195.13.1.153
    /var/log/messagesec 6 00:17:24 localhost ntpd_initres[2206]: ntpd
    indicates no data available!
    /var/log/messagesec 6 00:18:23 localhost ntpd[2194]: Listening on
    interface #4 eth0, fe80::214:85ff:fe38:2c93#123 Enabled
    /var/log/messagesec 6 00:18:23 localhost ntpd[2194]: Listening on
    interface #5 eth0, 192.168.1.64#123 Enabled
    /var/log/messagesec 6 00:21:41 localhost ntpd[2194]: synchronized
    to 145.238.203.10, stratum 2
    /var/log/messagesec 6 00:21:42 localhost ntpd[2194]: time reset
    +0.282590 s
    /var/log/messagesec 6 00:21:42 localhost ntpd[2194]: kernel time
    sync status change 0001
    #

    -----------------------------------------------------------------------
    NTP.CONF FILE:

    # For more information about this file, see the man pages
    # ntp.conf(5), ntp_acc(5), ntp_auth(5), ntp_clock(5), ntp_misc(5),
    ntp_mon(5).

    driftfile /var/lib/ntp/drift

    # Permit time synchronization with our time source, but do not
    # permit the source to query or modify the service on this system.
    restrict default kod nomodify notrap nopeer noquery

    # Permit all access over the loopback interface. This could
    # be tightened as well, but to do so would effect some of
    # the administrative functions.
    restrict 127.0.0.1

    # Hosts on local network are less restricted.
    #restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap

    # Use public servers from the pool.ntp.org project.
    # Please consider joining the pool (http://www.pool.ntp.org/
    join.html).

    #broadcast 192.168.1.255 autokey # broadcast server
    #broadcastclient # broadcast client
    #broadcast 224.0.1.1 autokey # multicast server
    #multicastclient 224.0.1.1 # multicast client
    #manycastserver 239.255.254.254 # manycast server
    #manycastclient 239.255.254.254 autokey # manycast client

    # Undisciplined Local Clock. This is a fake driver intended for backup
    # and when no outside source of synchronized time is available.
    #server 127.127.1.0 # local clock
    #fudge 127.127.1.0 stratum 10

    # Enable public key cryptography.
    #crypto

    includefile /etc/ntp/crypto/pw

    # Key file containing the keys and key identifiers used when operating
    # with symmetric key cryptography.
    keys /etc/ntp/keys

    # Specify the key identifiers which are trusted.
    #trustedkey 4 8 42

    # Specify the key identifier to use with the ntpdc utility.
    #requestkey 8

    # Specify the key identifier to use with the ntpq utility.
    #controlkey 8

    # Enable writing of statistics records.
    #statistics clockstats cryptostats loopstats peerstats
    restrict 193.136.134.3 mask 255.255.255.255 nomodify notrap noquery
    server ntp.obspm.fr
    restrict ntp.obspm.fr mask 255.255.255.255 nomodify notrap noquery
    server ntp.kamino.fr
    restrict ntp.kamino.fr mask 255.255.255.255 nomodify notrap noquery
    server ntp2.belbone.be
    restrict ntp2.belbone.be mask 255.255.255.255 nomodify notrap noquery

  4. Re: NTP fails synchronization with server at startup

    How about the output of 'ntpq -p' ?

    H
    --
    http://ntpforum.isc.org - be a member!

  5. Re: NTP fails synchronization with server at startup

    On Dec 6, 12:37 am, Harlan Stenn wrote:
    > How about the output of 'ntpq -p' ?
    >
    > H
    > --http://ntpforum.isc.org - be a member!


    # /usr/sbin/ntpq -p
    remote refid st t when poll reach delay
    offset jitter
    ================================================== ============================
    *syrte8.obspm.fr 145.238.203.14 2 u 7 64 377 61.055
    55.208 6.901
    +ns2.kamino.fr 193.52.184.106 2 u 30 64 377 49.493
    48.255 8.133
    +ntp2.belbone.be 195.13.23.6 2 u 4 64 377 69.442
    43.465 6.665
    #

    Paul

  6. Re: NTP fails synchronization with server at startup

    phhs80@gmail.com wrote:
    > On Dec 5, 10:35 pm, "Richard B. Gilbert"
    > wrote:
    >
    >>>I have NTP configured to synchronize with a server at startup, but it
    >>>always fails that as reported by Fedora 8 during the booting.
    >>>Notwithstanding:

    >>
    >>># /sbin/service ntpd restart
    >>>Shutting down ntpd: [ OK ]
    >>>ntpd: Synchronizing with time server: [ OK ]
    >>>Starting ntpd: [ OK ]
    >>>#

    >>
    >>>Any ideas?

    >>
    >>>Thanks in advance,

    >>
    >>>Paul

    >>
    >>Your message is VERY short on useful information. What version of ntpd
    >>are you using? I don't see any details of the alleged failure.
    >>
    >>What command line are you using to start ntpd? What does your ntp.conf
    >>file look like? Are there any relevant messages in syslog?

    >
    >
    > Thanks, Richard. Let me add the requested details:
    >
    > Using:
    > # rpm -qi ntp
    > Name : ntp Relocations: (not
    > relocatable)
    > Version : 4.2.4p2 Vendor: Fedora Project
    > Release : 6.fc8 Build Date: Mon 24 Sep
    > 2007 03:40:21 PM WEST
    > Install Date: Fri 02 Nov 2007 02:22:53 PM WET Build Host:
    > xenbuilder4.fedora.phx.redhat.com
    > Group : System Environment/Daemons Source RPM:
    > ntp-4.2.4p2-6.fc8.src.rpm
    > Size : 2652615 License: (MIT and BSD
    > and BSD with advertising) and GPLv2
    > Signature : DSA/SHA1, Thu 25 Oct 2007 05:41:19 AM WEST, Key ID
    > b44269d04f2a6fd2
    > Packager : Fedora Project
    > URL : http://www.ntp.org
    > Summary : Synchronizes system time using the Network Time Protocol
    > (NTP)
    > Description :
    > The Network Time Protocol (NTP) is used to synchronize a computer's
    > time with another reference time source. The ntp package contains
    > utilities and daemons that will synchronize your computer's time to
    > Coordinated Universal Time (UTC) via the NTP protocol and NTP servers.
    > The ntp package includes ntpdate (a program for retrieving the date
    > and time from remote machines via a network) and ntpd (a daemon which
    > continuously adjusts system time).
    >
    > Install the ntp package if you need tools for keeping your system's
    > time synchronized via the NTP protocol.
    > #
    >
    >
    >
    > ---------------------------------------------------------------------------------
    > SYSLOG
    >
    > /var/log/messagesec 6 00:11:47 localhost ntpd[1863]: ntpd exiting
    > on signal 15
    > /var/log/messagesec 6 00:13:22 localhost ntpdate[2187]: can't find
    > host ntp.obspm.fr
    > /var/log/messagesec 6 00:13:22 localhost ntpdate[2187]: can't find
    > host ntp.kamino.fr
    > /var/log/messagesec 6 00:13:22 localhost ntpdate[2187]: can't find
    > host ntp2.belbone.be
    > /var/log/messagesec 6 00:13:22 localhost ntpdate[2187]: no servers
    > can be used, exiting


    The above appears to say that your system is having trouble resolving
    the IP addresses of your servers. Have you tried replacing
    "ntp.obspm.fr" with
    145.238.203.10
    etc?




  7. Re: NTP fails synchronization with server at startup

    Paul,

    phhs80@gmail.com wrote:
    > Dear All,
    >
    > I have NTP configured to synchronize with a server at startup, but it
    > always fails that as reported by Fedora 8 during the booting.
    > Notwithstanding:
    >
    > # /sbin/service ntpd restart
    > Shutting down ntpd: [ OK ]
    > ntpd: Synchronizing with time server: [ OK ]
    > Starting ntpd: [ OK ]


    The above looks OK, and also the output of "ntpq -p" in of of the other
    postings looks OK.

    > Any ideas?


    As Richard already mentioned, in the log messages you also posted it looks
    like DNS name resolution is not working when ntpd starts up. On the other
    hand, the output of "ntpq -p" shows that name resolution is working when
    that command has been run.

    So there seems to be a problem with the organization of the startup/run
    control scripts. There's currently a similar isssue with openSUSE 10.3,
    where ntpd occasionally doesn't start up successfully at system boot, but
    runs fine if it is restarted after the final runlevel has been reached:
    https://bugzilla.novell.com/show_bug.cgi?id=337075

    Current Linux distributions seem to account for network
    interfaces/connections which may appear or disappear while the system is
    running, e.g. WLAN connections or USB network interfaces.

    Recent versions of ntpd try to cope with that by dynamically rescanning of
    the network interface list. However, this has to be taken into account by
    the rc scripts, e.g. openSUSE 10.3 still tries to run an initial ntpdate
    even when no network interface but loopback is yet up, in which case it
    fails for sure.

    On the other hand we must see whether the actual way of dynamical scanning
    for interfaces is sufficient. Since ntpd does this only in cyclic
    intervals, it may take as long as one interval until a new interface is
    detected and can be used.

    When this happens to be the first interface then the initial synchronization
    is delayed needlessly. Maybe a signalling mechanism should be introduced
    which could be used to trigger an interface rescan by udev or similar
    whenever an interface becomes available or unavailable.


    Martin
    --
    Martin Burnicki

    Meinberg Funkuhren
    Bad Pyrmont
    Germany

  8. Re: NTP fails synchronization with server at startup

    On Dec 6, 2:18 am, "Richard B. Gilbert"
    wrote:
    > phh...@gmail.com wrote:
    > > On Dec 5, 10:35 pm, "Richard B. Gilbert"
    > > wrote:

    >
    > >>>I have NTP configured to synchronize with a server at startup, but it
    > >>>always fails that as reported by Fedora 8 during the booting.
    > >>>Notwithstanding:

    >
    > >>># /sbin/service ntpd restart
    > >>>Shutting down ntpd: [ OK ]
    > >>>ntpd: Synchronizing with time server: [ OK ]
    > >>>Starting ntpd: [ OK ]
    > >>>#

    >
    > >>>Any ideas?

    >
    > >>>Thanks in advance,

    >
    > >>>Paul

    >
    > >>Your message is VERY short on useful information. What version of ntpd
    > >>are you using? I don't see any details of the alleged failure.

    >
    > >>What command line are you using to start ntpd? What does your ntp.conf
    > >>file look like? Are there any relevant messages in syslog?

    >
    > > Thanks, Richard. Let me add the requested details:

    >
    > > Using:
    > > # rpm -qi ntp
    > > Name : ntp Relocations: (not
    > > relocatable)
    > > Version : 4.2.4p2 Vendor: Fedora Project
    > > Release : 6.fc8 Build Date: Mon 24 Sep
    > > 2007 03:40:21 PM WEST
    > > Install Date: Fri 02 Nov 2007 02:22:53 PM WET Build Host:
    > > xenbuilder4.fedora.phx.redhat.com
    > > Group : System Environment/Daemons Source RPM:
    > > ntp-4.2.4p2-6.fc8.src.rpm
    > > Size : 2652615 License: (MIT and BSD
    > > and BSD with advertising) and GPLv2
    > > Signature : DSA/SHA1, Thu 25 Oct 2007 05:41:19 AM WEST, Key ID
    > > b44269d04f2a6fd2
    > > Packager : Fedora Project
    > > URL :http://www.ntp.org
    > > Summary : Synchronizes system time using the Network Time Protocol
    > > (NTP)
    > > Description :
    > > The Network Time Protocol (NTP) is used to synchronize a computer's
    > > time with another reference time source. The ntp package contains
    > > utilities and daemons that will synchronize your computer's time to
    > > Coordinated Universal Time (UTC) via the NTP protocol and NTP servers.
    > > The ntp package includes ntpdate (a program for retrieving the date
    > > and time from remote machines via a network) and ntpd (a daemon which
    > > continuously adjusts system time).

    >
    > > Install the ntp package if you need tools for keeping your system's
    > > time synchronized via the NTP protocol.
    > > #

    >
    > > ---------------------------------------------------------------------------------
    > > SYSLOG

    >
    > > /var/log/messagesec 6 00:11:47 localhost ntpd[1863]: ntpd exiting
    > > on signal 15
    > > /var/log/messagesec 6 00:13:22 localhost ntpdate[2187]: can't find
    > > host ntp.obspm.fr
    > > /var/log/messagesec 6 00:13:22 localhost ntpdate[2187]: can't find
    > > host ntp.kamino.fr
    > > /var/log/messagesec 6 00:13:22 localhost ntpdate[2187]: can't find
    > > host ntp2.belbone.be
    > > /var/log/messagesec 6 00:13:22 localhost ntpdate[2187]: no servers
    > > can be used, exiting

    >
    > The above appears to say that your system is having trouble resolving
    > the IP addresses of your servers. Have you tried replacing
    > "ntp.obspm.fr" with
    > 145.238.203.10
    > etc?


    Yes, I have, but with no progress.

    Paul

  9. Re: NTP fails synchronization with server at startup

    phhs80@gmail.com wrote:
    > On Dec 6, 2:18 am, "Richard B. Gilbert"
    > wrote:
    >
    >>phh...@gmail.com wrote:
    >>
    >>>On Dec 5, 10:35 pm, "Richard B. Gilbert"
    >>>wrote:

    >>
    >>>>>I have NTP configured to synchronize with a server at startup, but it
    >>>>>always fails that as reported by Fedora 8 during the booting.
    >>>>>Notwithstanding:
    >>>>
    >>>>># /sbin/service ntpd restart
    >>>>>Shutting down ntpd: [ OK ]
    >>>>>ntpd: Synchronizing with time server: [ OK ]
    >>>>>Starting ntpd: [ OK ]
    >>>>>#
    >>>>
    >>>>>Any ideas?
    >>>>
    >>>>>Thanks in advance,
    >>>>
    >>>>>Paul
    >>>>
    >>>>Your message is VERY short on useful information. What version of ntpd
    >>>>are you using? I don't see any details of the alleged failure.
    >>>
    >>>>What command line are you using to start ntpd? What does your ntp.conf
    >>>>file look like? Are there any relevant messages in syslog?
    >>>
    >>>Thanks, Richard. Let me add the requested details:

    >>
    >>>Using:
    >>># rpm -qi ntp
    >>>Name : ntp Relocations: (not
    >>>relocatable)
    >>>Version : 4.2.4p2 Vendor: Fedora Project
    >>>Release : 6.fc8 Build Date: Mon 24 Sep
    >>>2007 03:40:21 PM WEST
    >>>Install Date: Fri 02 Nov 2007 02:22:53 PM WET Build Host:
    >>>xenbuilder4.fedora.phx.redhat.com
    >>>Group : System Environment/Daemons Source RPM:
    >>>ntp-4.2.4p2-6.fc8.src.rpm
    >>>Size : 2652615 License: (MIT and BSD
    >>>and BSD with advertising) and GPLv2
    >>>Signature : DSA/SHA1, Thu 25 Oct 2007 05:41:19 AM WEST, Key ID
    >>>b44269d04f2a6fd2
    >>>Packager : Fedora Project
    >>>URL :http://www.ntp.org
    >>>Summary : Synchronizes system time using the Network Time Protocol
    >>>(NTP)
    >>>Description :
    >>>The Network Time Protocol (NTP) is used to synchronize a computer's
    >>>time with another reference time source. The ntp package contains
    >>>utilities and daemons that will synchronize your computer's time to
    >>>Coordinated Universal Time (UTC) via the NTP protocol and NTP servers.
    >>>The ntp package includes ntpdate (a program for retrieving the date
    >>>and time from remote machines via a network) and ntpd (a daemon which
    >>>continuously adjusts system time).

    >>
    >>>Install the ntp package if you need tools for keeping your system's
    >>>time synchronized via the NTP protocol.
    >>>#

    >>
    >>>---------------------------------------------------------------------------------
    >>>SYSLOG

    >>
    >>>/var/log/messagesec 6 00:11:47 localhost ntpd[1863]: ntpd exiting
    >>>on signal 15
    >>>/var/log/messagesec 6 00:13:22 localhost ntpdate[2187]: can't find
    >>>host ntp.obspm.fr
    >>>/var/log/messagesec 6 00:13:22 localhost ntpdate[2187]: can't find
    >>>host ntp.kamino.fr
    >>>/var/log/messagesec 6 00:13:22 localhost ntpdate[2187]: can't find
    >>>host ntp2.belbone.be
    >>>/var/log/messagesec 6 00:13:22 localhost ntpdate[2187]: no servers
    >>>can be used, exiting

    >>
    >>The above appears to say that your system is having trouble resolving
    >>the IP addresses of your servers. Have you tried replacing
    >>"ntp.obspm.fr" with
    >>145.238.203.10
    >>etc?

    >
    >
    > Yes, I have, but with no progress.
    >
    > Paul


    This doesn't look like an NTP problem at all. I think you may have some
    basic problems with your network configuration. Can you ping your DNS
    servers? How about your NTP servers?

    What is your network topology? Router? Firewall?


+ Reply to Thread