This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

time runs away

I got on the acc the problem that the time runs away.
30 Minutes a day.

When i use ntpdate to correct it i get an Error. Also connect to an ip for ntpdate dont work.
Does anybody has an hint for me?

acc:/root # ntpdate ntp1.ptb.de

Error : Servname not supported for ai_socktype
15 Nov 12:27:57 ntpdate[32071]: can't find host ntp1.ptb.de

15 Nov 12:27:57 ntpdate[32071]: no servers can be used, exiting
acc:/root # ping ntp1.ptb.de -c1
PING ptbtime1.ptb.de (192.53.103.108) 56(84) bytes of data.
64 bytes from ptbtime1.ptb.de (192.53.103.108): icmp_seq=1 ttl=52 time=28.0 ms

--- ptbtime1.ptb.de ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 28.070/28.070/28.070/0.000 ms
acc:/root # ntpdate 192.53.103.108
Error : Servname not supported for ai_socktype
15 Nov 12:28:15 ntpdate[32082]: can't find host 192.53.103.108

15 Nov 12:28:15 ntpdate[32082]: no servers can be used, exiting
acc:/root #


What can i do that i can connect to the ntpservers. The firewall is not blocking.
I think there is no entry for the Gateway in the network settings. But where i found the network settings?


This thread was automatically locked due to age.
Parents
  • For some reason, ACC does not come with an "/etc/services" file usually found on Linux systems. I'll check that.

    The upshot is that you need "/etc/services" for ntpdate to work; the rather confusing error message complains that ntpdate does not know what ports the service name "ntp" is associated with. Either copy an "/etc/services" from a different Linux machine, or create such a text file containing at least the following two lines:


    ntp    123/tcp
    ntp    123/udp


    If you can ping the NTP server, things should work as expected then.
  • ok that works,

    but how can i get it to run as cron?
    crontab -e as root does not work.

    an file in /etc/cron.d also noes not work
  • Does any body can tell me how can i create on the acc an cron to sync time time autmatically?
  • Can anybody help me with my Issue?
    How can i run an cron on acc?
  • Yes, there needs to be a way to have ACC automatically sync up. I found my ACC 1.301 to be about 12 hours off of current time.

    Here's how to create a cron job to manually sync up with a NTP server of your choice:

    1. Log into ACC via console as root.
    2. Type `crontab -e`
    3. Insert a line that looks like this to sync up the time once an hour:
    0 * * * * /usr/sbin/ntpdate ntpserver > /dev/null

    Replace ntpserver with your local ntp server.
    Quit the editor and it will save your changes.

    You can check /var/log/system.log after the next hour rolls over and you should see that it runs.
  • Hi,

    thanks for your patience on this issue. It is quite evident that ACC misses features to adjust date and time related settings - manually or automatically. We will take this into account for future releases but definitely not for the upcoming one. 

    Cheers
  • For now, the manual crontab entry seems to be doing a decent job.
Reply Children
No Data