FedoraForum.org - Fedora Support Forums and Community
Results 1 to 11 of 11
  1. #1
    Join Date
    Mar 2004
    Location
    In your closet
    Posts
    16,568
    Mentioned
    19 Post(s)
    Tagged
    0 Thread(s)

    NTP start fails

    Where would I begin to diagnose this?
    PHP Code:
    [root@blackhole glenn>$ systemctl start ntpdate.service
    Job failed
    . See system journal and 'systemctl status' for details.

    [
    root@blackhole glenn>$ systemctl status ntpdate.service
    ntpdate
    .service - Set time via NTP
          Loaded
    : loaded (/usr/lib/systemd/system/ntpdate.service; enabled)
          
    Active: failed (Result: exit-code) since Sat, 15 Sep 2012 15:46:14 -0400; 8min ago
         Process
    : 25111 ExecStart=/usr/libexec/ntpdate-wrapper (code=exited, status=1/FAILURE)
          
    CGroup: name=systemd:/system/ntpdate.service 
    Of the 4 computers I have running Fedora 17, this is the only one on which starting NTP has failed. It is enabled.

  2. #2
    Join Date
    Mar 2012
    Location
    Montana, US
    Posts
    85
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Out of curiosity, is there a reason you aren't using chronyd?

  3. #3
    Join Date
    Mar 2004
    Location
    In your closet
    Posts
    16,568
    Mentioned
    19 Post(s)
    Tagged
    0 Thread(s)

    Re: NTP start fails

    Quote Originally Posted by randomuser
    Out of curiosity, is there a reason you aren't using chronyd?
    Because I am unaware of chronyd. Now that I've heard of it and have at least looked at yum info chrony is it preferred over NTP these days?

  4. #4
    Join Date
    Mar 2012
    Location
    Montana, US
    Posts
    85
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    chronyd is the successor to ntpd, and has been the default for the last two releases.

    https://fedoraproject.org/wiki/Featu...ronyDefaultNTP

  5. #5
    Join Date
    Mar 2004
    Location
    In your closet
    Posts
    16,568
    Mentioned
    19 Post(s)
    Tagged
    0 Thread(s)

    Re: NTP start fails

    Proves that I don't read about release changes too often

    Let's give chrony a try then.

  6. #6
    Join Date
    Mar 2004
    Location
    In your closet
    Posts
    16,568
    Mentioned
    19 Post(s)
    Tagged
    0 Thread(s)

    Re: NTP start fails

    Back to the original question though, any help?

  7. #7
    Join Date
    Mar 2012
    Location
    Montana, US
    Posts
    85
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Anything relevant in your logs?

  8. #8
    stevea Guest

    Re: NTP start fails

    Id start the daemon manually w/ some debug (could try -ddd or -D nnn).

    sudo /usr/sbin/ntpd -d -u ntp:ntp -g

  9. #9
    Join Date
    Jun 2004
    Location
    Maryland, US
    Posts
    15,409
    Mentioned
    186 Post(s)
    Tagged
    0 Thread(s)

    Re: NTP start fails

    But ntpdate service having a problem doesn't really mean there's a problem with ntpd, ntpdate is a standalone utility,
    (you don't even need the ntp package installed to use ntpdate) you could try a query and then see if that works:
    ntpdate -q <some valid ntp service address here>
    if that works, then it's likely a systemd problem
    Last edited by marko; 17th September 2012 at 11:02 PM.

  10. #10
    Join Date
    Dec 2012
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: NTP start fails

    It seems ntpd won't start until the local clock is near enough to the actual time.
    Run ntpdate once and then try starting the ntpd service again.

  11. #11
    Join Date
    Jun 2004
    Location
    Maryland, US
    Posts
    15,409
    Mentioned
    186 Post(s)
    Tagged
    0 Thread(s)

    Re: NTP start fails

    ntpd will do a one-time very large time update if you use the 'g' option.
    You can do that by making the /etc/sysconfig/ntpd file contain:
    OPTIONS="-g"
    The panic threshold is 1000 seconds (if the -g option isn't used and you start ntpd with a time error of more than 1000 seconds, then ntpd just exits)

Similar Threads

  1. 2.6.33-rc2 fails to start X
    By dbbd in forum Using Fedora
    Replies: 1
    Last Post: 30th December 2009, 01:34 PM
  2. Xsane fails to start
    By satimis in forum Hardware
    Replies: 6
    Last Post: 9th December 2007, 08:04 AM
  3. #/etc/init.d/mysqld start FAILS won't start mysql
    By cwynn in forum Servers & Networking
    Replies: 17
    Last Post: 19th September 2006, 02:59 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •