Error NTP after boot

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite












I'm having a problem with ntp service after ubuntu boot. I have a local net with a few computers running Ubuntu 16.04 / Windows 8 and a Debian 8 server running as ntp/samba/dhcp server. Some computers don't get a correct time and then the users can't connect on that machine.



To solve this issue i just run:



sudo systemctl restart ntp.server



But i need to run this every time when windows start and then switch to ubuntu.



sudo systemctl status ntp.service
Abr 19 13:11:26 L05M01L ntp[1288]: * Starting NTP server ntpd
Abr 19 13:11:26 L05M01L ntpd[1296]: ntpd 4.2.8p4@1.3265-o Wed Feb 14 14:56:29 UTC 2018 (1): Starting
Abr 19 13:11:26 L05M01L ntpd[1296]: Command line: /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 125:136
Abr 19 13:11:26 L05M01L ntp[1288]: ...done.
Abr 19 13:11:26 L05M01L ntpd[1299]: proto: precision = 0.046 usec (-24)
Abr 19 13:11:26 L05M01L ntpd[1262]: ntpd exiting on signal 15 (Terminated)
Abr 19 13:11:26 L05M01L ntpd[1299]: restrict: ignoring line 23, address/host 'test.local' unusable.
Abr 19 13:11:26 L05M01L ntpd[1299]: Listen and drop on 0 v6wildcard [::]:123
Abr 19 13:11:26 L05M01L ntpd[1299]: Listen and drop on 1 v4wildcard 0.0.0.0:123
Abr 19 13:11:26 L05M01L ntpd[1299]: Listen normally on 2 lo 127.0.0.1:123
Abr 19 13:11:26 L05M01L ntpd[1299]: Listen normally on 3 lo [::1]:123
Abr 19 13:11:26 L05M01L ntpd[1299]: Listening on routing socket on fd #20 for interface updates
Abr 19 13:11:27 L05M01L ntpd[1299]: error resolving pool test.local: Temporary failure in name resolution (-3)
Abr 19 13:11:29 L05M01L ntpdate[1561]: the NTP socket is in use, exiting
Abr 19 13:11:29 L05M01L ntpdate[1617]: the NTP socket is in use, exiting
Abr 19 13:11:30 L05M01L ntpd[1299]: Listen normally on 4 eno1 192.168.1.67:123
Abr 19 13:12:32 L05M01L ntpd[1299]: Soliciting pool server 192.168.1.11
Abr 19 13:13:39 L05M01L ntpd[1299]: Soliciting pool server 192.168.1.11


ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
test.local .POOL. 16 p - 64 0 0.000 0.000 0.000


after a restart



remote refid st t when poll reach delay offset jitter
==============================================================================
test.local .POOL. 16 p - 64 0 0.000 0.000 0.000
*info.test.loca LOCAL(0) 6 u 3 64 1 0.448 -0.065 0.020


PS: I'm using a tool to connect all pcs in the domain, called CiD (https://sourceforge.net/projects/c-i-d/), so the ntp.conf is configured by the tool.



# [Modified by CID]
#
# This file has been modified by the CID (Closed In Directory) program.
# A copy of its previous state was saved in /var/lib/cid/backups/ori/etc/ntp.conf
# and in /var/lib/cid/backups/mod/etc/ntp.conf if the program has made a
# reconfiguration in the file.
# For more details, see: /usr/share/doc/cid-base/usermanual.html.

driftfile /var/lib/ntp/ntp.drift

statistics loopstats peerstats clockstats
filegen loopstats file loopstats type day enable
filegen peerstats file peerstats type day enable
filegen clockstats file clockstats type day enable

pool test.local iburst prefer

restrict -4 default ignore
restrict -6 default ignore
restrict -4 127.0.0.1
restrict -6 ::1
restrict test.local mask 255.255.255.255 notrap nomodify noquery


So, this could be a problem with my DNS?







share|improve this question
























    up vote
    0
    down vote

    favorite












    I'm having a problem with ntp service after ubuntu boot. I have a local net with a few computers running Ubuntu 16.04 / Windows 8 and a Debian 8 server running as ntp/samba/dhcp server. Some computers don't get a correct time and then the users can't connect on that machine.



    To solve this issue i just run:



    sudo systemctl restart ntp.server



    But i need to run this every time when windows start and then switch to ubuntu.



    sudo systemctl status ntp.service
    Abr 19 13:11:26 L05M01L ntp[1288]: * Starting NTP server ntpd
    Abr 19 13:11:26 L05M01L ntpd[1296]: ntpd 4.2.8p4@1.3265-o Wed Feb 14 14:56:29 UTC 2018 (1): Starting
    Abr 19 13:11:26 L05M01L ntpd[1296]: Command line: /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 125:136
    Abr 19 13:11:26 L05M01L ntp[1288]: ...done.
    Abr 19 13:11:26 L05M01L ntpd[1299]: proto: precision = 0.046 usec (-24)
    Abr 19 13:11:26 L05M01L ntpd[1262]: ntpd exiting on signal 15 (Terminated)
    Abr 19 13:11:26 L05M01L ntpd[1299]: restrict: ignoring line 23, address/host 'test.local' unusable.
    Abr 19 13:11:26 L05M01L ntpd[1299]: Listen and drop on 0 v6wildcard [::]:123
    Abr 19 13:11:26 L05M01L ntpd[1299]: Listen and drop on 1 v4wildcard 0.0.0.0:123
    Abr 19 13:11:26 L05M01L ntpd[1299]: Listen normally on 2 lo 127.0.0.1:123
    Abr 19 13:11:26 L05M01L ntpd[1299]: Listen normally on 3 lo [::1]:123
    Abr 19 13:11:26 L05M01L ntpd[1299]: Listening on routing socket on fd #20 for interface updates
    Abr 19 13:11:27 L05M01L ntpd[1299]: error resolving pool test.local: Temporary failure in name resolution (-3)
    Abr 19 13:11:29 L05M01L ntpdate[1561]: the NTP socket is in use, exiting
    Abr 19 13:11:29 L05M01L ntpdate[1617]: the NTP socket is in use, exiting
    Abr 19 13:11:30 L05M01L ntpd[1299]: Listen normally on 4 eno1 192.168.1.67:123
    Abr 19 13:12:32 L05M01L ntpd[1299]: Soliciting pool server 192.168.1.11
    Abr 19 13:13:39 L05M01L ntpd[1299]: Soliciting pool server 192.168.1.11


    ntpq -p
    remote refid st t when poll reach delay offset jitter
    ==============================================================================
    test.local .POOL. 16 p - 64 0 0.000 0.000 0.000


    after a restart



    remote refid st t when poll reach delay offset jitter
    ==============================================================================
    test.local .POOL. 16 p - 64 0 0.000 0.000 0.000
    *info.test.loca LOCAL(0) 6 u 3 64 1 0.448 -0.065 0.020


    PS: I'm using a tool to connect all pcs in the domain, called CiD (https://sourceforge.net/projects/c-i-d/), so the ntp.conf is configured by the tool.



    # [Modified by CID]
    #
    # This file has been modified by the CID (Closed In Directory) program.
    # A copy of its previous state was saved in /var/lib/cid/backups/ori/etc/ntp.conf
    # and in /var/lib/cid/backups/mod/etc/ntp.conf if the program has made a
    # reconfiguration in the file.
    # For more details, see: /usr/share/doc/cid-base/usermanual.html.

    driftfile /var/lib/ntp/ntp.drift

    statistics loopstats peerstats clockstats
    filegen loopstats file loopstats type day enable
    filegen peerstats file peerstats type day enable
    filegen clockstats file clockstats type day enable

    pool test.local iburst prefer

    restrict -4 default ignore
    restrict -6 default ignore
    restrict -4 127.0.0.1
    restrict -6 ::1
    restrict test.local mask 255.255.255.255 notrap nomodify noquery


    So, this could be a problem with my DNS?







    share|improve this question






















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I'm having a problem with ntp service after ubuntu boot. I have a local net with a few computers running Ubuntu 16.04 / Windows 8 and a Debian 8 server running as ntp/samba/dhcp server. Some computers don't get a correct time and then the users can't connect on that machine.



      To solve this issue i just run:



      sudo systemctl restart ntp.server



      But i need to run this every time when windows start and then switch to ubuntu.



      sudo systemctl status ntp.service
      Abr 19 13:11:26 L05M01L ntp[1288]: * Starting NTP server ntpd
      Abr 19 13:11:26 L05M01L ntpd[1296]: ntpd 4.2.8p4@1.3265-o Wed Feb 14 14:56:29 UTC 2018 (1): Starting
      Abr 19 13:11:26 L05M01L ntpd[1296]: Command line: /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 125:136
      Abr 19 13:11:26 L05M01L ntp[1288]: ...done.
      Abr 19 13:11:26 L05M01L ntpd[1299]: proto: precision = 0.046 usec (-24)
      Abr 19 13:11:26 L05M01L ntpd[1262]: ntpd exiting on signal 15 (Terminated)
      Abr 19 13:11:26 L05M01L ntpd[1299]: restrict: ignoring line 23, address/host 'test.local' unusable.
      Abr 19 13:11:26 L05M01L ntpd[1299]: Listen and drop on 0 v6wildcard [::]:123
      Abr 19 13:11:26 L05M01L ntpd[1299]: Listen and drop on 1 v4wildcard 0.0.0.0:123
      Abr 19 13:11:26 L05M01L ntpd[1299]: Listen normally on 2 lo 127.0.0.1:123
      Abr 19 13:11:26 L05M01L ntpd[1299]: Listen normally on 3 lo [::1]:123
      Abr 19 13:11:26 L05M01L ntpd[1299]: Listening on routing socket on fd #20 for interface updates
      Abr 19 13:11:27 L05M01L ntpd[1299]: error resolving pool test.local: Temporary failure in name resolution (-3)
      Abr 19 13:11:29 L05M01L ntpdate[1561]: the NTP socket is in use, exiting
      Abr 19 13:11:29 L05M01L ntpdate[1617]: the NTP socket is in use, exiting
      Abr 19 13:11:30 L05M01L ntpd[1299]: Listen normally on 4 eno1 192.168.1.67:123
      Abr 19 13:12:32 L05M01L ntpd[1299]: Soliciting pool server 192.168.1.11
      Abr 19 13:13:39 L05M01L ntpd[1299]: Soliciting pool server 192.168.1.11


      ntpq -p
      remote refid st t when poll reach delay offset jitter
      ==============================================================================
      test.local .POOL. 16 p - 64 0 0.000 0.000 0.000


      after a restart



      remote refid st t when poll reach delay offset jitter
      ==============================================================================
      test.local .POOL. 16 p - 64 0 0.000 0.000 0.000
      *info.test.loca LOCAL(0) 6 u 3 64 1 0.448 -0.065 0.020


      PS: I'm using a tool to connect all pcs in the domain, called CiD (https://sourceforge.net/projects/c-i-d/), so the ntp.conf is configured by the tool.



      # [Modified by CID]
      #
      # This file has been modified by the CID (Closed In Directory) program.
      # A copy of its previous state was saved in /var/lib/cid/backups/ori/etc/ntp.conf
      # and in /var/lib/cid/backups/mod/etc/ntp.conf if the program has made a
      # reconfiguration in the file.
      # For more details, see: /usr/share/doc/cid-base/usermanual.html.

      driftfile /var/lib/ntp/ntp.drift

      statistics loopstats peerstats clockstats
      filegen loopstats file loopstats type day enable
      filegen peerstats file peerstats type day enable
      filegen clockstats file clockstats type day enable

      pool test.local iburst prefer

      restrict -4 default ignore
      restrict -6 default ignore
      restrict -4 127.0.0.1
      restrict -6 ::1
      restrict test.local mask 255.255.255.255 notrap nomodify noquery


      So, this could be a problem with my DNS?







      share|improve this question












      I'm having a problem with ntp service after ubuntu boot. I have a local net with a few computers running Ubuntu 16.04 / Windows 8 and a Debian 8 server running as ntp/samba/dhcp server. Some computers don't get a correct time and then the users can't connect on that machine.



      To solve this issue i just run:



      sudo systemctl restart ntp.server



      But i need to run this every time when windows start and then switch to ubuntu.



      sudo systemctl status ntp.service
      Abr 19 13:11:26 L05M01L ntp[1288]: * Starting NTP server ntpd
      Abr 19 13:11:26 L05M01L ntpd[1296]: ntpd 4.2.8p4@1.3265-o Wed Feb 14 14:56:29 UTC 2018 (1): Starting
      Abr 19 13:11:26 L05M01L ntpd[1296]: Command line: /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 125:136
      Abr 19 13:11:26 L05M01L ntp[1288]: ...done.
      Abr 19 13:11:26 L05M01L ntpd[1299]: proto: precision = 0.046 usec (-24)
      Abr 19 13:11:26 L05M01L ntpd[1262]: ntpd exiting on signal 15 (Terminated)
      Abr 19 13:11:26 L05M01L ntpd[1299]: restrict: ignoring line 23, address/host 'test.local' unusable.
      Abr 19 13:11:26 L05M01L ntpd[1299]: Listen and drop on 0 v6wildcard [::]:123
      Abr 19 13:11:26 L05M01L ntpd[1299]: Listen and drop on 1 v4wildcard 0.0.0.0:123
      Abr 19 13:11:26 L05M01L ntpd[1299]: Listen normally on 2 lo 127.0.0.1:123
      Abr 19 13:11:26 L05M01L ntpd[1299]: Listen normally on 3 lo [::1]:123
      Abr 19 13:11:26 L05M01L ntpd[1299]: Listening on routing socket on fd #20 for interface updates
      Abr 19 13:11:27 L05M01L ntpd[1299]: error resolving pool test.local: Temporary failure in name resolution (-3)
      Abr 19 13:11:29 L05M01L ntpdate[1561]: the NTP socket is in use, exiting
      Abr 19 13:11:29 L05M01L ntpdate[1617]: the NTP socket is in use, exiting
      Abr 19 13:11:30 L05M01L ntpd[1299]: Listen normally on 4 eno1 192.168.1.67:123
      Abr 19 13:12:32 L05M01L ntpd[1299]: Soliciting pool server 192.168.1.11
      Abr 19 13:13:39 L05M01L ntpd[1299]: Soliciting pool server 192.168.1.11


      ntpq -p
      remote refid st t when poll reach delay offset jitter
      ==============================================================================
      test.local .POOL. 16 p - 64 0 0.000 0.000 0.000


      after a restart



      remote refid st t when poll reach delay offset jitter
      ==============================================================================
      test.local .POOL. 16 p - 64 0 0.000 0.000 0.000
      *info.test.loca LOCAL(0) 6 u 3 64 1 0.448 -0.065 0.020


      PS: I'm using a tool to connect all pcs in the domain, called CiD (https://sourceforge.net/projects/c-i-d/), so the ntp.conf is configured by the tool.



      # [Modified by CID]
      #
      # This file has been modified by the CID (Closed In Directory) program.
      # A copy of its previous state was saved in /var/lib/cid/backups/ori/etc/ntp.conf
      # and in /var/lib/cid/backups/mod/etc/ntp.conf if the program has made a
      # reconfiguration in the file.
      # For more details, see: /usr/share/doc/cid-base/usermanual.html.

      driftfile /var/lib/ntp/ntp.drift

      statistics loopstats peerstats clockstats
      filegen loopstats file loopstats type day enable
      filegen peerstats file peerstats type day enable
      filegen clockstats file clockstats type day enable

      pool test.local iburst prefer

      restrict -4 default ignore
      restrict -6 default ignore
      restrict -4 127.0.0.1
      restrict -6 ::1
      restrict test.local mask 255.255.255.255 notrap nomodify noquery


      So, this could be a problem with my DNS?









      share|improve this question











      share|improve this question




      share|improve this question










      asked Apr 19 at 20:01









      Roland Sgs

      11




      11

























          active

          oldest

          votes











          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "89"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1026512%2ferror-ntp-after-boot%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1026512%2ferror-ntp-after-boot%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          pylint3 and pip3 broken

          Missing snmpget and snmpwalk

          How to enroll fingerprints to Ubuntu 17.10 with VFS491