Time error 0x41

[SOLVED] ntpd: kernel reports TIME_ERROR: 0x41: Clock Unsynchronized

Topic: [SOLVED] ntpd: kernel reports TIME_ERROR: 0x41: Clock Unsynchronized  (Read 224540 times)

Can’t get ntpd to work. Clean install with default settings. It’s stuck in Unreach/Pending no matter how long I wait.

Aug 12 10:25:38 OPNsense ntpd[19031]: ntpd 4.2.8p15@1.3728-o Tue Jul 28 02:25:36 UTC 2020 (1): Starting
Aug 12 10:25:38 OPNsense ntpd[19031]: Command line: /usr/local/sbin/ntpd -g -c /var/etc/ntpd.conf -p /var/run/ntpd.pid
Aug 12 10:25:38 OPNsense ntpd[19031]: —————————————————-
Aug 12 10:25:38 OPNsense ntpd[19031]: ntp-4 is maintained by Network Time Foundation,
Aug 12 10:25:38 OPNsense ntpd[19031]: Inc. (NTF), a non-profit 501(c)(3) public-benefit
Aug 12 10:25:38 OPNsense ntpd[19031]: corporation.  Support and training for ntp-4 are
Aug 12 10:25:38 OPNsense ntpd[19031]: available at https://www.nwtime.org/support
Aug 12 10:25:38 OPNsense ntpd[19031]: —————————————————-
Aug 12 10:25:38 OPNsense ntpd[22352]: proto: precision = 0.045 usec (-24)
Aug 12 10:25:38 OPNsense ntpd[22352]: basedate set to 2020-07-16
Aug 12 10:25:38 OPNsense ntpd[22352]: gps base set to 2020-07-19 (week 2115)
Aug 12 10:25:38 OPNsense ntpd[22352]: restrict: ‘monitor’ cannot be disabled while ‘limited’ is enabled
Aug 12 10:25:38 OPNsense ntpd[22352]: Listen and drop on 0 v6wildcard [::]:123
Aug 12 10:25:38 OPNsense ntpd[22352]: Listen and drop on 1 v4wildcard 0.0.0.0:123
Aug 12 10:25:38 OPNsense ntpd[22352]: Listen normally on 2 re0 10.0.0.4:123
Aug 12 10:25:38 OPNsense ntpd[22352]: Listen normally on 3 re0 [fe80::21e:6ff:fe45:2ce0%1]:123
Aug 12 10:25:38 OPNsense ntpd[22352]: Listen normally on 4 re1 [fe80::21e:6ff:fe45:2ce1%2]:123
Aug 12 10:25:38 OPNsense ntpd[22352]: Listen normally on 5 re1 10.0.0.197:123
Aug 12 10:25:38 OPNsense ntpd[22352]: Listen normally on 6 lo0 [::1]:123
Aug 12 10:25:38 OPNsense ntpd[22352]: Listen normally on 7 lo0 [fe80::1%4]:123
Aug 12 10:25:38 OPNsense ntpd[22352]: Listen normally on 8 lo0 127.0.0.1:123
Aug 12 10:25:38 OPNsense ntpd[22352]: Listening on routing socket on fd #29 for interface updates
Aug 12 10:25:38 OPNsense ntpd[22352]: kernel reports TIME_ERROR: 0x41: Clock Unsynchronized
Aug 12 10:25:38 OPNsense ntpd[22352]: kernel reports TIME_ERROR: 0x41: Clock Unsynchronized

« Last Edit: August 14, 2020, 02:28:16 pm by LouCipher »


Logged


Exactly same issue here…


Logged


NTP cannot synchronize when error is greater than the panic threshold, which is 1000s

Maybe this is the issue

Try to stop the service, then manually align with ntpdate, then restart the ntp service


Logged

https://www.signorini.ch (please do hack me contest)
OPNsense 20.7 on
Protectli Pfsense Mi7500L6 Intel 7Th Gen Core I7 7500U 16Gb Ddr4 Ram
512Gb Msata Ssd
6 X Intel Gigabit Ethernet


Or try chrony, pkg install os-chrony-devel


Logged


Google says that this error message is not specific to Opnsense and often occurs during initial start up.  After a short while the clock stabilises and the message does not recur.

You can check the clock with:

# nptime

Or try chrony, pkg install os-chrony-devel

+1 for chrony


Logged


Thanks guys! I’ll give set date manually a try then I’ll try chrony.


Logged


Running ntptime gives an error

root@OPNsense:/var/log # ntptime
ntp_gettime() returns code 5 (ERROR)
  time e2dfbf6f.16e9f000  Thu, Aug 13 2020 15:32:31.089, (.244089507),
  maximum error 16032000 us, estimated error 16000000 us, TAI offset 0
ntp_adjtime() returns code 5 (ERROR)
  modes 0x0 (),
  offset 0.000 us, frequency 0.000 ppm, interval 4 s,
  maximum error 16032000 us, estimated error 16000000 us,
  status 0x41 (PLL,UNSYNC),
  time constant 3, precision 0.000 us, tolerance 496 ppm,
  pps frequency 0.000 ppm, stability 0.000 ppm, jitter 0.000 us,
  intervals 0, jitter exceeded 0, stability exceeded 0, errors 0.


Logged


the right command is ntpdate, ntptime is for checking…

here on a linux

root@linjs:/root # systemctl stop ntpd.service
root@linjs:/root # ntpdate -d time1.ethz.ch
13 Aug 16:33:22 ntpdate[28064]: ntpdate 4.2.8p12@1.3728-o (1)
Looking for host time1.ethz.ch and service ntp
192.33.96.101 reversed to time1.ethz.ch
host found : time1.ethz.ch
transmit(192.33.96.101)
receive(192.33.96.101)
transmit(192.33.96.101)
receive(192.33.96.101)
transmit(192.33.96.101)
receive(192.33.96.101)
transmit(192.33.96.101)
receive(192.33.96.101)

server 192.33.96.101, port 123
stratum 1, precision -22, leap 00, trust 000
refid [PPS], root delay 0.000000, root dispersion 0.001129
transmitted 4, in filter 4
reference time:    e2dfcdaf.e20b3677  Thu, Aug 13 2020 16:33:19.882
originate timestamp: e2dfcdb9.0419f314  Thu, Aug 13 2020 16:33:29.016
transmit timestamp:  e2dfcdb9.023592f9  Thu, Aug 13 2020 16:33:29.008
filter delay:  0.03868  0.03891  0.03833  0.03868
         0.00000  0.00000  0.00000  0.00000
filter offset: 0.000453 0.000584 0.000382 0.000520
         0.000000 0.000000 0.000000 0.000000
delay 0.03833, dispersion 0.00008
offset 0.000382

13 Aug 16:33:29 ntpdate[28064]: adjust time server 192.33.96.101 offset 0.000382 sec
root@linjs:/root # ntpdate time1.ethz.ch
13 Aug 16:33:42 ntpdate[28074]: adjust time server 192.33.96.101 offset 0.000278 sec
root@linjs:/root # ntptime
ntp_gettime() returns code 0 (OK)
  time e2dfcdd1.98178704 2020-08-13T14:33:53.594Z, (.594109583),
  maximum error 27000 us, estimated error 0 us, TAI offset 37
ntp_adjtime() returns code 0 (OK)
  modes 0x0 (),
  offset -0.020 us, frequency -17.823 ppm, interval 1 s,
  maximum error 27000 us, estimated error 0 us,
  status 0x2001 (PLL,NANO),
  time constant 4, precision 1.000 us, tolerance 500 ppm,


Logged

https://www.signorini.ch (please do hack me contest)
OPNsense 20.7 on
Protectli Pfsense Mi7500L6 Intel 7Th Gen Core I7 7500U 16Gb Ddr4 Ram
512Gb Msata Ssd
6 X Intel Gigabit Ethernet


Tried stopping ntpd, setting date manually with date command, then restart ntpd. Still wont work. Any suggestions what is wrong?

Did a quick install of pfSense and it works straight away…but I would like to use OPNsense since it feel more modern.


Logged


Can you try to execute the following (when ntpd is not running)

ntpdate 0.opnsense.pool.ntp.org

Then wait a couple of minutes and the same again.

After that try to start ntpd the usual way via the services menu.


Logged


Ok, here’s the result…

root@OPNsense:~ # ntpdate 0.opnsense.pool.ntp.org
14 Aug 10:24:59 ntpdate[87980]: step time server 83.168.200.198 offset +5655.643222 sec
root@OPNsense:~ # ntpdate 0.opnsense.pool.ntp.org
14 Aug 10:28:31 ntpdate[2106]: step time server 147.78.228.41 offset +157.351788 sec
root@OPNsense:~ #

Clock on dashboard seems to sync.

Starting ntpd…

Log shows:

Aug 14 10:28:35 OPNsense ntpd[77906]: 0.0.0.0 c016 06 restart
Aug 14 10:28:35 OPNsense ntpd[77906]: DNS 0.opnsense.pool.ntp.org -> 193.182.111.142
Aug 14 10:28:35 OPNsense ntpd[77906]: 193.182.111.142 8011 81 mobilize assoc 43417
Aug 14 10:28:36 OPNsense ntpd[77906]: DNS 1.opnsense.pool.ntp.org -> 193.182.111.141
Aug 14 10:28:36 OPNsense ntpd[77906]: 193.182.111.141 8011 81 mobilize assoc 43418
Aug 14 10:28:36 OPNsense ntpd[77906]: DNS 2.opnsense.pool.ntp.org -> 193.182.111.12
Aug 14 10:28:36 OPNsense ntpd[77906]: 193.182.111.12 8011 81 mobilize assoc 43419
Aug 14 10:28:36 OPNsense ntpd[77906]: DNS 3.opnsense.pool.ntp.org -> 162.159.200.123
Aug 14 10:28:36 OPNsense ntpd[77906]: 162.159.200.123 8011 81 mobilize assoc 43420
Aug 14 10:28:37 OPNsense ntpd[77906]: 162.159.200.123 8014 84 reachable
Aug 14 10:28:37 OPNsense ntpd[77906]: 193.182.111.142 8014 84 reachable
Aug 14 10:28:38 OPNsense ntpd[77906]: 193.182.111.141 8014 84 reachable
Aug 14 10:28:39 OPNsense ntpd[77906]: 193.182.111.12 8014 84 reachable

Services->Network time->Status shows:

Status   Server   Ref ID   Stratum   Type   When   Poll   Reach   Delay   Offset   Jitter
Unreach/Pending   193.182.111.142   192.36.143.152   2   u   41   64   1   12.357   +54612.   19739.1
Unreach/Pending   193.182.111.141   192.36.143.130   2   u   40   64   1   3.258   +57555.   19659.9
Unreach/Pending   193.182.111.12   192.36.143.153   2   u   39   64   1   2.974   +60612.   19798.2
Unreach/Pending   162.159.200.123   10.65.8.177   3   u   41   64   1   4.150   +54582.   19728.3


Logged


Your issue looks hardware related, as the rtc clock drifts 157 seconds within a couple of minutes, which will likely make ntpd stop at some point in time (which can even be during startup).


Logged


Ok, that might be it. I’ll look in to that and report back. Thank you!


Logged


Ok, so problem solved :)

Seems like there is a problem with ODROID-H2(device used for OPNsense) and FreeBSD regarding hwclock.

What I did to fix this was to change the parameter kern.timecounter.hardware from TSC-low to ACPI-fast.

sysctl -w kern.timecounter.hardware=ACPI-fast
And made the change persistent with a tunable.

After that all looks good. Clock is correct.

Thanks AdSchellevis for pointing me in the right direction!

See below for more details of the fix.
https://forum.odroid.com/viewtopic.php?t=33911


Logged


Thx for your detailed feedback:)


Logged


On Debian 10, ntpd 4.2.8p12@1.3728-o fails to sync with following error:

kernel reports TIME_ERROR: 0x41: Clock Unsynchronize

here’s ntp.conf:

disable monitor

statsdir /var/log/ntpstats

restrict -4 default kod nomodify notrap nopeer noquery
restrict -6 default kod nomodify notrap nopeer noquery
restrict 127.0.0.1
restrict ::1

server 0.us.pool.ntp.org iburst
server 1.us.pool.ntp.org iburst
server 2.us.pool.ntp.org iburst
server 3.us.pool.ntp.org iburst

server   127.127.1.0
fudge    127.127.1.0 stratum 10
restrict 127.127.1.0

driftfile /var/lib/ntp/drift

ntpq -c sysinfo:

associd=0 status=0614 leap_none, sync_ntp, 1 event, freq_mode,
system peer:        50-205-57-38-static.hfc.comcastbusiness.net:123
system peer mode:   client
leap indicator:     00
stratum:            2
log2 precision:     -23
root delay:         70.634
root dispersion:    3.569
reference ID:       50.205.57.38
reference time:     e3a0c049.c39d770a  Wed, Jan  6 2021 23:03:37.764
system jitter:      0.723169
clock jitter:       1.177
clock wander:       0.000
broadcast delay:    -50.000
symm. auth. delay:  0.000

ntpq -c lpeers:

     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 LOCAL(0)        .LOCL.          10 l  286   64   20    0.000    0.000   0.000
*50-205-57-38-st .GPS.            1 u   19   64   37   70.631    1.618   1.843
-ns1.backplanedn 173.162.192.156  2 u   14   64   37   84.235   -1.575   2.852
+c-73-239-136-18 74.6.168.73      3 u   11   64   37   48.606    1.598   2.522
+time-d.bbnx.net 252.74.143.178   2 u   14   64   37   92.632    0.623   0.799

timedatectl:

               Local time: Wed 2021-01-06 23:06:44 UTC
           Universal time: Wed 2021-01-06 23:06:44 UTC
                 RTC time: Wed 2021-01-06 23:06:44
                Time zone: Etc/UTC (UTC, +0000)
System clock synchronized: no
              NTP service: inactive
          RTC in local TZ: no

Any idea what could be wrong?

Содержание

  1. Kernel time error 0x41
  2. Arch Linux
  3. #1 2020-07-01 23:49:56
  4. System clock and Hardware Clock [SOLVED]
  5. ntpd -g does not sync the clock
  6. 1 Answer 1
  7. Thread: NTP Issues
  8. NTP Issues
  9. Re: NTP Issues
  10. Re: NTP Issues
  11. Re: NTP Issues
  12. Re: NTP Issues
  13. Re: NTP Issues
  14. Re: NTP Issues
  15. Re: NTP Issues
  16. Re: NTP Issues
  17. Re: NTP Issues

Kernel time error 0x41

I found some threads about this error, but solutions did not worked for me.

Tried sysctl -w kern.timecounter.hardware=ACPI-fast , but it did not help any. I reverted back to TSC.

My system is pfSense 2.6.0 on bare metal with Intel J4125 CPU. BIOS time and battery is also check’d.

Here is some logs and settings:

Anything to try?

That doesn’t look like a problem to me unless you’re actually seeing time inaccuracy?
It’s normal to see ntpd report that when it first starts.

If I restart it here for example:

Thanks Steve for reply.

Yes it have problem. It slowly drifting behind. This time it was almost two minutes behind and I had to stop NTP service and manually run ntpdate command. Logs are same before and after this manual correction.

Is it normal to see NTP request coming from pfBlockerNG virtual IP?

Did you see any other connections.. while you will see pool as a place holder, you should also see the actual servers your talking too with a reach of 377, etc.

I don’t run pfblocker vip, I just use it for aliases that I use in my own rules. But yeah that seems odd — is that vip actually natted to your public IP? If it tries and go to the public?

An intelligent man is sometimes forced to be drunk to spend time with his fools
If you get confused: Listen to the Music Play
Please don’t Chat/PM me for help, unless mod related
SG-4860 22.05 | Lab VMs CE 2.6, 2.7

There is no other than pools shown.

I have pfBlockerNG with quite stock settings. I have disabled automatic firewall policies and run it with these manually made floating rules:

Check Status > Interfaces. Are you seeing the WAN trying to use the pfBlocker VIP as it’s primary IP?
You might be hitting this: https://redmine.pfsense.org/issues/11545

There probably isn’t an outbound NAT rule for it so traffic to the actual NTP servers is failing.

Normally the pfBlocker VIP is on LAN so that should not be an issue.

Do you have specific interfaces set in NTP to listen on? It also uses those to send from and if you are only listening on LAN I could see that happening. Does it succeed if you deselect all the interfaces so it listens on all (the default)?

Can’t find 10.10.10.1 on any interface on interfaces status page.

I had spesified listen interfaces for NTP. I had understood that selected interfaces was only for NTP server listen interfaces.

Cleared and restarted server. Now it looks much more promising.

Is there a way to make sure everything is working?

Is there a way to make sure everything is working?

Yeah that looks better — it should fairly quickly show reach of 377, if so then its working correctly.

I really don’t see point to pointing to all of those pools. You should pick a pool for your region of the world and that should be more than enough..

An intelligent man is sometimes forced to be drunk to spend time with his fools
If you get confused: Listen to the Music Play
Please don’t Chat/PM me for help, unless mod related
SG-4860 22.05 | Lab VMs CE 2.6, 2.7

Thank you @stephenw10 and @johnpoz this looks like it is working now.

I assigned only one pool to NTP and now reach column shows 377 for four servers. So this is golden. Thanks again!

Источник

Arch Linux

You are not logged in.

#1 2020-07-01 23:49:56

System clock and Hardware Clock [SOLVED]

I was just hoping someone could help me work out If I’ve set the time correctly on my system. When I did the install I did

and after I installed the Desktop Environment I installed ntp and enabled ntpd.service.

I don’t know why there’s the kernel error saying clock unsynchronized.

when I set up reflector it seems to be going by UTC time

To be honest I don’t have a clue about all this time stuff and am totally confused. I just want to know if its configured correctly so I won’t have issues with it in the future. The time on my screen is correct for my local time.

Any help would be much appreciated.

Can someone help me correct the time if that is needed and explain how I can make sure it stays synchronized. I did think I had set the time correctly and that ntpd was going to keep it synchronized.

Anyone hopefully someone who doesn’t mind explaining things in a bit more detail without just directing me to the wiki. I do understand the intention of directing someone to the wiki. I have put it a serious amount of effort to just get a basic arch install and desktop environment setup. From scratch not long ago I started learning about Linux and only after installing arch have I asked a couple of questions.

I’m still stuck and quite confused with the whole issue of setting the time. Not only am I new to Arch but I am new to Linux too. I don’t want to give up on Arch now that I’ve come this far and spent so many weeks to get to where I am. I had read the appropriate wiki pages before I first posted here and then again after being directed back to them, but sadly the wiki isn’t written for absolute novices like me and I’ve struggled immensely trying to understand anything from it.

I have a few questions.

1) how does One clarify there system time and hardware clock is correct or wrong?

2) how to set up a time synchronisation service correctly so the time issue never needs to be a concern again?

3) If I was to do a fresh install using

and then after installing the desktop environment if I disabled

and then installed ntp and enabled

would/should all my time issues be resolved?

Last edited by Straight-path (2020-07-02 19:05:24)

Источник

ntpd -g does not sync the clock

From ntpd man page

If time is more than 1000s from the server time, ntpd assumes something must be terribly wrong and the only reliable action is for the operator to intervene and set the clock by hand. This causes ntpd to exit with a panic message to the system log. The -g option overrides this check and the clock will be set to the server time regardless of the chip time .

I have done small experiment to test -g option with ntpd. First I changed the system clock time to some old time with date command.

date -s 2021.06.15-19:10:21

After that I created small /etc/ntp.conf file with below information

After that I ran ntpd with below command

ntpd -g -n -4 -c /etc/ntp.conf &

Please note that my ntp.drift file was empty.

I see no change in the system time , infact ntp status shows that clock is not synchronized.

Can someone please help me. Did I missed any configuration or some other data.

Apart from this I have one small question

Does ntp clock need to be synchronised for ntp authentication? If ntp clock is not synchronised then in that case will ntp server authentication pass.

Below are the logs come when I start ntpd

Update:

@John I have done what ever you suggested but still I see same issue

Can you please check once. Did I missed anything?

Update

1 Answer 1

Normally after allowing NTP through any firewall, the first few packets are processed (increasing reach), a system peer is selected, and the initial step fixes the time. This system has reachable peers but rejected them all, which is odd.

After reviewing readvar output, rootdelay=0.000 doesn’t make sense. Remote over the internet, cannot be zero. Possibly why you got a flash word of distance threshold exceeded.

A theory from IRC is that NTP packets are being mangled by some middlebox. Which if true would be bad as it apparently broke NTP. ntpd applies dscp to its packets but ntpdate does not. Try dscp 0 in ntp.conf Ask around if differentiated services aware boxes are in the path. Take a packet capture (tcpdump) of NTP packets and look at it in Wireshark. See if it can dissect both any DSCP fields, wrapping NTP packets with NTP timestamps.

Also study ntpd in an entirely different network to contrast what it looks like when working. ntpd can run on anything, so maybe a VM on your workstation.

My original answer with a critique of the config follows.

Your reach recorded there is only 1. Wait 3 minutes after starting ntpd. Takes some time to get the first couple packets returned.

Regarding your configuration:

Consider adding iburst to your server and pool lines. Initial burst at startup of several packets with a short delay.

I am not convinced configuring minpool and maxpool is a good idea, neither is Red Hat. Too frequent for a sustained period and public NTP services may block you. ntpd is already good at dynamically selecting the pool interval.

Need more NTP servers, ideally 4 for detecting falsetickers with n+1 redundancy. Google public NTP has 4 frontends, which you can use with either the pool directive or multiple server lines. Feel free to add other NTP services as a second opinion, like 2.pool.ntp.org . (However you will have a messy leap second smear if your NTP servers don’t agree on that.)

No, public NTP services do not require NTP authentication. Authentication is not your problem, allowing large steps and tweaking the poll rate is.

My suggested change for the server line is more like this:

As to how you’re starting ntpd:

-g option is necessary to fix such a large offset of many hours, keep it. Allows infinite step once at start. Normally, large offset causes ntpd to panic. Use -g in any script that starts ntpd, so time will be fixed at boot.

I don’t see the purpose of no fork plus shell backgrounding. For starting in the background, I use the system’s service manager or init script. For example, a ntpd.service unit for Linux with systemd.

Delete -4 . Google is IPv6 capable.

If you wish to set the time once and exit, the -q option is useful. For interactive use when troubleshooting, normal operation is leaving ntpd running. Do not use ntpdate, which is obsolete.

Источник

Thread: NTP Issues

Thread Tools
Display

NTP Issues

Let me start out by saying I’m a noob at Linux as well as these forums.

I’m currently trying to update my NTP servers from 14.04 to 16.04. When I did the upgrade, it caused all havoc, and my network devices that rely heavily on NTP sent massive amounts of alerts. Thusly, I created new NTP servers from scratch, using 16.04. I’m using NTP Tool to troubleshoot client connectivity to the server. On the existing 14.04, I get no drops at 100 packets a second. On the new 16.04, I get 97-98 drops at 100 packets a second. The servers have synced to their NTP sources (ntp.org pools). This has really got me stumped, and any help will be greatly appreciated.

My syslogs for NTP.

The ntp.conf is mostly default, I commented out the Ubuntu servers and added the ntp.org pools (note below).

Here is the sync status of the servers.

Re: NTP Issues

Really sounds like a WAN connection issue, not specific to NTP.

BTW, more than 3 external servers is a waste, IMHO. If low msec correct time is that important, use a GPS device as source. Those numbers are huge! Use a local server and sync off it. That way, only 1 machine will be bouncing around and sending packets externally.

Oh . no need to sudo it. Over use of sudo can get you into trouble.

Where is the driftfile specified?
Do you restrict access to only the LAN systems?

I have 1 system that goes externally to get time from 3 pool servers (small network here). This box is the only time server for all the systems internally. They all point at it, including a few Windows systems. Just add the restrict and broadcast options to make an NTP server. Generally, perfectly accurate time really isn’t that important, so anything within a few minutes is close enough. Systems on the same network just need to closely have the same time. I’ve never seen any Unix machine off more than about 0.5 sec . though Windows systems seem to drift wildly for some reason. Too keep Windows times accurate, I had to force time checking every 15 minutes — anything longer than that, even 60 min, and the clock would be off 5+ minutes. Over a week, and it would be off almost an hour. The exact same system running Linux never has any time issues, so it is definitely a Windows problem. Plus this has happened to my Windows machines since the mid-90s. They just don’t keep time for some reason.

I agree with using non-Ubuntu time servers, though suspect they just point to the normal NTP pools. NTP is a good way for a distro to track running systems and the DNS redirect . well . those can be scary from a security standpoint.

Re: NTP Issues

I wish I could say it’s the WAN, but I’m testing internally and the company I am doing this for is an ISP.

Thanks for the note on «sudo», I get into the habit of sudoing everything, and I’m not about to open the root account. It’s a love/hate thing.

The drift file is the default location: /var/lib/ntp/ntp.drift. Driftfile output is 22.816.

I have not restricted access to any subnets that will be using it, yet. What I can’t understand, is that how is the 14.04 server allowing all these connections without issue, yet 16.04 will only answer the first 2-3 and drop the rest. I even disabled apparmor to see if that was the issue, but nope. Likewise with the firewall, it’s disabled. I assure you, minus the updates I listed in the original posts, both servers have the same ntp.conf setup.

We are running Calix devices that rely heavily on the NTP servers, and when I updated them a few weeks ago, they broke due to this. I personally don’t have experience with Calix stuff, but from what I could tell, it’s crazy. I could tell them to test use the Windows Server 2012 R2 hosts as the NTP servers (I forgot to mention, we are running the servers via Hyper-V). I’m half way tempted to just leave them on 14.04 for now. It’s just crazy that I can’t upgrade the server from 14.04 to 16.04 and have NTP not allow these devices to query for NTP.

Re: NTP Issues

VMs change everything with keeping time. There are usually guest additions that passthru the physical host’s time to all clients. But I don’t know **anything**, zero, nada, nichts about hyper-v. IME, Windows can’t keep time, so I’d never have it in my infrastructure where that was important.

Test if this is an issue on a physical 16.04 machine. I only have 1 16.04 install (zero servers and only a play chromebook) and it doesn’t show any time issues.
BTW — it appears that NTP changed between 16.04 and 14.04. Check the release notes. The «server» entry isn’t what is being used anymore. There is a «pool» entry now in the default configs that I don’t recall previously. We use ansible to maintain ntp.conf files across all the systems, so checking any others for differences won’t be any help.

A guess (and it is only that) is to look for hyper-v updates related to the 16.04 release.

Interesting and frustrating problem. At an ISP, time is critical, since you should provide that as a service to the clients. Setup 3 time servers internally and get 3 GPS-based time devices for those to sync. Then point all the others at those 3 machines. Did this a few decades ago on a network that wasn’t connected to the internet. Bet it is cheaper and easier now. I wouldn’t use any internet-based time pools at all.

Last edited by TheFu; September 8th, 2016 at 07:52 PM .

Re: NTP Issues

I have an old E-Machine laying around that I might be able to put Ubuntu on to test at home. If not, maybe I can get my Raspberry Pi to run the ARM version of 16.04. Or, I can turn my laptop into a NTP server (running desktop 16.04). I’ll test and report when I can get this setup. I should be good on the NTP server side though, I can see that I am connected to a Stratum 2 NTP server, which isn’t too shabby. There is no way that they will purchase an atomic clock, though it would be cool if they did.

Re: NTP Issues

$35 for a GPS bluetooth device doesn’t seem that expensive. That level of time accuracy should be plenty for everyone except crypto operators.
IMHO.
https://blog.logentries.com/2015/07/. ource-to-ntpd/

I have an old BT GPS receiver that needs to be repurposed for this use myself. Gotta keep learning.

Re: NTP Issues

That looks neat, but the issue isn’t getting Ubuntu to sync with an NTP server. The issue is getting other devices to connect to the Ubuntu server with NTP. However, I’ve always wanted to get a Raspberry Pi, a breadboard, and a GPS module to create an atomic clock.

Re: NTP Issues

I’m fairly certain that virtual-PC is the issue (or whatever they call it now).
Any luck changing the server to pool in the config files?

Re: NTP Issues

In case you are using iptables filtering on the ntp servers, did you double check them after the upgrade? In 16.04 the naming of the interfaces is changed so that might affect any services that are strictly linked to interface names. Maybe this was the issue?

Re: NTP Issues

I did change them, but I wasn’t any closer to getting the clients to connect.

In reference to the iptables, the current server, I’m unsure of (I would bet it’s not running, we use a Cisco ASA and just NAT the NTP server to an external IP). As for the new server, the one giving me the troubles, iptables is turned off (along with ufw).

Right now, I’m updating my Ubuntu desktop laptop (as I type. ) to set as a NTP server to see if using a physical box makes a difference.

UPDATE: I just got done testing, and it’s the same story. I’m going to revisit the firewall in the AM, just to make sure that it’s fully disabled. Also, I’ll create a 14.04 virtual machine to see if it does the same thing without configuring.

Last edited by hammons2012; September 9th, 2016 at 12:33 AM .

Источник

Содержание

  1. Kernel time error 0x41
  2. Thread: NTP Issues
  3. NTP Issues
  4. Re: NTP Issues
  5. Re: NTP Issues
  6. Re: NTP Issues
  7. Re: NTP Issues
  8. Re: NTP Issues
  9. Re: NTP Issues
  10. Re: NTP Issues
  11. Re: NTP Issues
  12. Re: NTP Issues
  13. Kernel time error 0x41
  14. Re: Cannot get NTP client to sync with local server
  15. Re: Cannot get NTP client to sync with local server
  16. Re: Cannot get NTP client to sync with local server
  17. Re: Cannot get NTP client to sync with local server
  18. Re: Cannot get NTP client to sync with local server
  19. Re: Cannot get NTP client to sync with local server
  20. Re: Cannot get NTP client to sync with local server
  21. Re: Cannot get NTP client to sync with local server
  22. Re: Cannot get NTP client to sync with local server
  23. Re: Cannot get NTP client to sync with local server
  24. Re: Cannot get NTP client to sync with local server
  25. Re: Cannot get NTP client to sync with local server
  26. Re: Cannot get NTP client to sync with local server
  27. Re: Cannot get NTP client to sync with local server
  28. Re: Cannot get NTP client to sync with local server
  29. Re: Cannot get NTP client to sync with local server
  30. Re: Cannot get NTP client to sync with local server
  31. Re: Cannot get NTP client to sync with local server
  32. Re: Cannot get NTP client to sync with local server
  33. Re: Cannot get NTP client to sync with local server
  34. Re: Cannot get NTP client to sync with local server

Kernel time error 0x41

I found some threads about this error, but solutions did not worked for me.

Tried sysctl -w kern.timecounter.hardware=ACPI-fast , but it did not help any. I reverted back to TSC.

My system is pfSense 2.6.0 on bare metal with Intel J4125 CPU. BIOS time and battery is also check’d.

Here is some logs and settings:

Anything to try?

That doesn’t look like a problem to me unless you’re actually seeing time inaccuracy?
It’s normal to see ntpd report that when it first starts.

If I restart it here for example:

Thanks Steve for reply.

Yes it have problem. It slowly drifting behind. This time it was almost two minutes behind and I had to stop NTP service and manually run ntpdate command. Logs are same before and after this manual correction.

Is it normal to see NTP request coming from pfBlockerNG virtual IP?

Did you see any other connections.. while you will see pool as a place holder, you should also see the actual servers your talking too with a reach of 377, etc.

I don’t run pfblocker vip, I just use it for aliases that I use in my own rules. But yeah that seems odd — is that vip actually natted to your public IP? If it tries and go to the public?

An intelligent man is sometimes forced to be drunk to spend time with his fools
If you get confused: Listen to the Music Play
Please don’t Chat/PM me for help, unless mod related
SG-4860 22.05 | Lab VMs CE 2.6, 2.7

There is no other than pools shown.

I have pfBlockerNG with quite stock settings. I have disabled automatic firewall policies and run it with these manually made floating rules:

Check Status > Interfaces. Are you seeing the WAN trying to use the pfBlocker VIP as it’s primary IP?
You might be hitting this: https://redmine.pfsense.org/issues/11545

There probably isn’t an outbound NAT rule for it so traffic to the actual NTP servers is failing.

Normally the pfBlocker VIP is on LAN so that should not be an issue.

Do you have specific interfaces set in NTP to listen on? It also uses those to send from and if you are only listening on LAN I could see that happening. Does it succeed if you deselect all the interfaces so it listens on all (the default)?

Can’t find 10.10.10.1 on any interface on interfaces status page.

I had spesified listen interfaces for NTP. I had understood that selected interfaces was only for NTP server listen interfaces.

Cleared and restarted server. Now it looks much more promising.

Is there a way to make sure everything is working?

Is there a way to make sure everything is working?

Yeah that looks better — it should fairly quickly show reach of 377, if so then its working correctly.

I really don’t see point to pointing to all of those pools. You should pick a pool for your region of the world and that should be more than enough..

An intelligent man is sometimes forced to be drunk to spend time with his fools
If you get confused: Listen to the Music Play
Please don’t Chat/PM me for help, unless mod related
SG-4860 22.05 | Lab VMs CE 2.6, 2.7

Thank you @stephenw10 and @johnpoz this looks like it is working now.

I assigned only one pool to NTP and now reach column shows 377 for four servers. So this is golden. Thanks again!

Источник

Thread: NTP Issues

Thread Tools
Display

NTP Issues

Let me start out by saying I’m a noob at Linux as well as these forums.

I’m currently trying to update my NTP servers from 14.04 to 16.04. When I did the upgrade, it caused all havoc, and my network devices that rely heavily on NTP sent massive amounts of alerts. Thusly, I created new NTP servers from scratch, using 16.04. I’m using NTP Tool to troubleshoot client connectivity to the server. On the existing 14.04, I get no drops at 100 packets a second. On the new 16.04, I get 97-98 drops at 100 packets a second. The servers have synced to their NTP sources (ntp.org pools). This has really got me stumped, and any help will be greatly appreciated.

My syslogs for NTP.

The ntp.conf is mostly default, I commented out the Ubuntu servers and added the ntp.org pools (note below).

Here is the sync status of the servers.

Re: NTP Issues

Really sounds like a WAN connection issue, not specific to NTP.

BTW, more than 3 external servers is a waste, IMHO. If low msec correct time is that important, use a GPS device as source. Those numbers are huge! Use a local server and sync off it. That way, only 1 machine will be bouncing around and sending packets externally.

Oh . no need to sudo it. Over use of sudo can get you into trouble.

Where is the driftfile specified?
Do you restrict access to only the LAN systems?

I have 1 system that goes externally to get time from 3 pool servers (small network here). This box is the only time server for all the systems internally. They all point at it, including a few Windows systems. Just add the restrict and broadcast options to make an NTP server. Generally, perfectly accurate time really isn’t that important, so anything within a few minutes is close enough. Systems on the same network just need to closely have the same time. I’ve never seen any Unix machine off more than about 0.5 sec . though Windows systems seem to drift wildly for some reason. Too keep Windows times accurate, I had to force time checking every 15 minutes — anything longer than that, even 60 min, and the clock would be off 5+ minutes. Over a week, and it would be off almost an hour. The exact same system running Linux never has any time issues, so it is definitely a Windows problem. Plus this has happened to my Windows machines since the mid-90s. They just don’t keep time for some reason.

I agree with using non-Ubuntu time servers, though suspect they just point to the normal NTP pools. NTP is a good way for a distro to track running systems and the DNS redirect . well . those can be scary from a security standpoint.

Re: NTP Issues

I wish I could say it’s the WAN, but I’m testing internally and the company I am doing this for is an ISP.

Thanks for the note on «sudo», I get into the habit of sudoing everything, and I’m not about to open the root account. It’s a love/hate thing.

The drift file is the default location: /var/lib/ntp/ntp.drift. Driftfile output is 22.816.

I have not restricted access to any subnets that will be using it, yet. What I can’t understand, is that how is the 14.04 server allowing all these connections without issue, yet 16.04 will only answer the first 2-3 and drop the rest. I even disabled apparmor to see if that was the issue, but nope. Likewise with the firewall, it’s disabled. I assure you, minus the updates I listed in the original posts, both servers have the same ntp.conf setup.

We are running Calix devices that rely heavily on the NTP servers, and when I updated them a few weeks ago, they broke due to this. I personally don’t have experience with Calix stuff, but from what I could tell, it’s crazy. I could tell them to test use the Windows Server 2012 R2 hosts as the NTP servers (I forgot to mention, we are running the servers via Hyper-V). I’m half way tempted to just leave them on 14.04 for now. It’s just crazy that I can’t upgrade the server from 14.04 to 16.04 and have NTP not allow these devices to query for NTP.

Re: NTP Issues

VMs change everything with keeping time. There are usually guest additions that passthru the physical host’s time to all clients. But I don’t know **anything**, zero, nada, nichts about hyper-v. IME, Windows can’t keep time, so I’d never have it in my infrastructure where that was important.

Test if this is an issue on a physical 16.04 machine. I only have 1 16.04 install (zero servers and only a play chromebook) and it doesn’t show any time issues.
BTW — it appears that NTP changed between 16.04 and 14.04. Check the release notes. The «server» entry isn’t what is being used anymore. There is a «pool» entry now in the default configs that I don’t recall previously. We use ansible to maintain ntp.conf files across all the systems, so checking any others for differences won’t be any help.

A guess (and it is only that) is to look for hyper-v updates related to the 16.04 release.

Interesting and frustrating problem. At an ISP, time is critical, since you should provide that as a service to the clients. Setup 3 time servers internally and get 3 GPS-based time devices for those to sync. Then point all the others at those 3 machines. Did this a few decades ago on a network that wasn’t connected to the internet. Bet it is cheaper and easier now. I wouldn’t use any internet-based time pools at all.

Last edited by TheFu; September 8th, 2016 at 07:52 PM .

Re: NTP Issues

I have an old E-Machine laying around that I might be able to put Ubuntu on to test at home. If not, maybe I can get my Raspberry Pi to run the ARM version of 16.04. Or, I can turn my laptop into a NTP server (running desktop 16.04). I’ll test and report when I can get this setup. I should be good on the NTP server side though, I can see that I am connected to a Stratum 2 NTP server, which isn’t too shabby. There is no way that they will purchase an atomic clock, though it would be cool if they did.

Re: NTP Issues

$35 for a GPS bluetooth device doesn’t seem that expensive. That level of time accuracy should be plenty for everyone except crypto operators.
IMHO.
https://blog.logentries.com/2015/07/. ource-to-ntpd/

I have an old BT GPS receiver that needs to be repurposed for this use myself. Gotta keep learning.

Re: NTP Issues

That looks neat, but the issue isn’t getting Ubuntu to sync with an NTP server. The issue is getting other devices to connect to the Ubuntu server with NTP. However, I’ve always wanted to get a Raspberry Pi, a breadboard, and a GPS module to create an atomic clock.

Re: NTP Issues

I’m fairly certain that virtual-PC is the issue (or whatever they call it now).
Any luck changing the server to pool in the config files?

Re: NTP Issues

In case you are using iptables filtering on the ntp servers, did you double check them after the upgrade? In 16.04 the naming of the interfaces is changed so that might affect any services that are strictly linked to interface names. Maybe this was the issue?

Re: NTP Issues

I did change them, but I wasn’t any closer to getting the clients to connect.

In reference to the iptables, the current server, I’m unsure of (I would bet it’s not running, we use a Cisco ASA and just NAT the NTP server to an external IP). As for the new server, the one giving me the troubles, iptables is turned off (along with ufw).

Right now, I’m updating my Ubuntu desktop laptop (as I type. ) to set as a NTP server to see if using a physical box makes a difference.

UPDATE: I just got done testing, and it’s the same story. I’m going to revisit the firewall in the AM, just to make sure that it’s fully disabled. Also, I’ll create a 14.04 virtual machine to see if it does the same thing without configuring.

Last edited by hammons2012; September 9th, 2016 at 12:33 AM .

Источник

Kernel time error 0x41

I cannot set the RPi to sync its time over the local network. I have one RPi that is setup as
NTP server. This is OK and it is sending its time to the Hubitat Elevation when it’s being requested.
The server part is then OK. I’m trying to get the others RPI to sync their time from the
same local server. There is no internet on this network.

The way I understand this, the RPi comes pre-installed with timesyncd service. So I modified the file:

where i did set the ip address of my NTP server. (By the way, the NTP server is using the NTP service)

I tried this, but didn’t work. I then uncomment the following 3 lines where they set the poll interval etc.
Did not work either (even after rebooting).

I also tried to stop and start the service with

sudo systemctl stop systemd-timesyncd
sudo systemctl start systemd-timesyncd

did not work either. Strange enough, the status shows

NTP service: active
System clock synchronised: no

but the time is never synchronised.

So I gave up with timesyncd and tried with NTP. I first disabled the timesyncd

sudo systemctl stop systemd-timesyncd
sudo systemctl disable systemd-timesyncd

and installed NTP

sudo apt-get install ntp

I edited the configuration file

sudo nano /etc/ntp.conf

in that file, I added a line for my server

and comment out the 4 poll lines

rebooted and requested some outputs:

remote refid st t when poll reach delay offset jitter
================================================================================
192.168.2.34 .XFAC. 16 u 26 64 0 0.000 0.000 0.000

192.168.2.34 : IP of my server (OK)
.XFAC. : Source of time. (I guess it is still undefined)
16 : Stratum 16 means untrusted time source
u : Unicast
26 : When: Number of second since last response. This is changing all the time, so I assume it is talking to it
64 : Poll: Interval in seconds between time request
0 : Reach: indicates success/failure to reach the source

the other values mean nothing since it does not reach the source.

Notes: This is a new fresh install Debian and all the updates done.. The ping to the server is responding
properly. I also rebooted and retried the ntpq command and now the «when» value is staying «-«

Re: Cannot get NTP client to sync with local server

Re: Cannot get NTP client to sync with local server

It would make sense if others couldn’t talk to the server as well. But HE does get the time form the ntp server.

Everything is the default; even the router is restored to the default just to be sure.

Re: Cannot get NTP client to sync with local server

I also disabled all firewall, and nothing more.

The log shows also this:

jui 12 00:03:16 raspberrypi systemd[1]: Started Network Time Service.
jui 12 00:03:16 raspberrypi ntpd[1070]: proto: precision = 0.759 usec (-20)
jui 12 00:03:16 raspberrypi ntpd[1070]: leapsecond file (‘/usr/share/zoneinfo/leap-seconds.list’): good hash signature
jui 12 00:03:16 raspberrypi ntpd[1070]: leapsecond file (‘/usr/share/zoneinfo/leap-seconds.list’): loaded, expire=2020-12-28T00:00:00Z last=2017-01-01T00:00:00Z ofs=37
jui 12 00:03:16 raspberrypi ntpd[1070]: Listen and drop on 0 v6wildcard [::]:123
jui 12 00:03:16 raspberrypi ntpd[1070]: Listen and drop on 1 v4wildcard 0.0.0.0:123
jui 12 00:03:16 raspberrypi ntpd[1070]: Listen normally on 2 lo 127.0.0.1:123
jui 12 00:03:16 raspberrypi ntpd[1070]: Listen normally on 3 wlan0 192.168.2.27:123
jui 12 00:03:16 raspberrypi ntpd[1070]: Listen normally on 4 lo [::1]:123
jui 12 00:03:16 raspberrypi ntpd[1070]: Listen normally on 5 wlan0 [fe80::dfc1:4a0:c4ad:cf5f%3]:123
jui 12 00:03:16 raspberrypi ntpd[1070]: Listening on routing socket on fd #22 for interface updates
jui 12 00:03:16 raspberrypi ntpd[1070]: Listen for broadcasts to 192.168.2.255 on interface #3 wlan0
jui 12 00:03:16 raspberrypi ntpd[1070]: kernel reports TIME_ERROR: 0x41: Clock Unsynchronized
jui 12 00:03:16 raspberrypi ntpd[1070]: kernel reports TIME_ERROR: 0x41: Clock Unsynchronized

Re: Cannot get NTP client to sync with local server

Re: Cannot get NTP client to sync with local server

Re: Cannot get NTP client to sync with local server

Re: Cannot get NTP client to sync with local server

Omg. i ran to the rpi to try adjusting the clock 10 minutes off the server. But no . Same problem. I rebooted and same problem.

But i didn’t understand where to put the -g option.

I am wondering also why in the log i dont see the ip of the server it is supposed to poll the time from. Somehow i thought it would make sense to write that there. Unless im not configured properly.

Re: Cannot get NTP client to sync with local server

Do you have the correct timezone set in raspi-config?

Reset the clock by running

Re: Cannot get NTP client to sync with local server

Ok, you want me to remove the ntp package and go back to timedatectl?

I beleive they dont work well together these two services.

Re: Cannot get NTP client to sync with local server

Re: Cannot get NTP client to sync with local server

Samething. I see that the datetimectl command did effectively changed the time but after a reboot, it failed again.

Compared to the log i posted earlier, there that line that bugs me a lot related to no interface available for broadcast.

Re: Cannot get NTP client to sync with local server

Samething. I see that the datetimectl command did effectively changed the time but after a reboot, it failed again.

Compared to the log i posted earlier, there that line that bugs me a lot related to no interface available for broadcast.

I am not sure this is a failure, ntp takes a little while to synchronize. It’s been a while, but I want to say it was 5-10 samplings, which depending on your polling settings could take 5 minutes or hours. Usually most systems would do an ntpdate before starting ntpd to sync the clock up, and ntpd just makes the adjustments for drift. I believe you have to install the ntpdate package, and tweak /etc/default/ntpdate if you want to sync the clock at start up, then ntpd would start up and keep it in sync.

This is why I am wondering why you abandoned timesyncd, it does the forced sync which your are going to need due the absence of a hardware clock and it keeps the clock in sync. I would say at this point, maybe way an hour or 2 and check your syslog and ntpq to see if the status changes.

Re: Cannot get NTP client to sync with local server

grrrr. I wont have any hair left after this.

Thanks a lot for helping me with this. I’m desperated.

I did wait and wait, but no time update. But by looking at the ntpq command, it sounds like it’s never reaching the server. I also installed the ntpdate but no luck. When i type

sudo ntpdate 192.168.2.34

I see it trying for a few seconds and then:

«no server suitable for synchronization found»

I tried to find if there was a way to see the requests coming in the server but didn’t find how. If I could see this, I could compare with the Hubitat requests. And I could probably see if the server is indeed answering, but only the client is ignoring it. Can’t find anything.

As far as timesyncd, I only abandoned it because I could not make it work either. I really dont mind which one to use.

The strange thing is that this is bran new install, completly redone from scratch, and installed the updates. That’s all I’ve done to it. It is surprising that it can’t work right off the box. What am I doing wrong?

The router is an old Cisco E2000. But Hubitat uses it too and it works. That’s why I concentrate only on the client.

Re: Cannot get NTP client to sync with local server

One thing I noticed is the ntp server at 192.168.2.34 was reporting stratum 16, now I don’t know if that is real or not, I want to say it starts with 16 until it can actually talk to the ntp server to probe it’s stratum. But if it is 16, clients will not sync.

I think it was suggested earlier, but this is sounding a bit like a firewall issue. Perhaps your Cisco router has ACLs in place to restrict access? Do the public NTP servers not work?

Re: Cannot get NTP client to sync with local server

The firewall in the Cisco is turned off. Beside, if Hubitat can go through, the RPi should.

And yes, 16 means untrusted time source. But who decide it’s 16? I dont recall having set that anywhere.

To try the public server, I’ll have to connect this network to internet. I’ll do that. it might help finding that out.

Re: Cannot get NTP client to sync with local server

public servers works. Not the one you gave me, but this one:

I get errors in the log but it does work anyway.

In the list, that debian server stayed as a stratum 16, but I can see a list of about 12 ip addresses below with st being 1, 2 or 3

I dont know what to think anymore.

Re: Cannot get NTP client to sync with local server

The firewall in the Cisco is turned off. Beside, if Hubitat can go through, the RPi should.

And yes, 16 means untrusted time source. But who decide it’s 16? I dont recall having set that anywhere.

To try the public server, I’ll have to connect this network to internet. I’ll do that. it might help finding that out.

Well the way stratum works is let’s say server A is using a reference clock, so he is stratum 1, server B syncs from A so he is stratum 2 server C syncs from B so he is stratum 3, and you sync to C so you are stratum 4. I am fairly sure the reference clock driver will end up forcing your server to 1, I have never done a sync to a «reference clock» but it appears be 127.127.x.y IPs where x is the reference driver — so i am guessing it declares itself as 0 so the NTPd server connecting to the reference clock will advertise itself as 1. http://doc.ntp.org/4.1.2/refclock.htm

If you do not sync to another server then you are usually stratum 16. So if your Cisco router is not syncing a time server it will be stratum 16, if that is by design and you are just using a system/hardware clock then you can fudge the stratum to 1 but knowing the time your serving will not be accurate and will drift over time (and all of the downstream clients will drift). I don’t know about Cisco routers, but for ntpd you can sync to your system clock (i think the server is 127.127.1.1, it’s usually in the comments) and then you use the fudge command to fudge the stratum.

Whatever this device is may not have a proper ntp implementation, but ntpd will refuse to sync to a stratum 16 server.

Re: Cannot get NTP client to sync with local server

wow. this is getting out of hand

The only thing I want is to get all the computers at the same date and time (plus or minus 10 minutes). Since I had to have a ntp server to set the clock of the Hubitat hub, I thought to use the same server to update the other clients. All the docs I read about this seems to be very simple. But it’s not.

I think I can write a SYNC program in python that will do the job. I’m on this case simce 6 am today. Writing a python will only take me half an hour. But I was trying to use the CANE software

Thanks for your help.

Re: Cannot get NTP client to sync with local server

Yeah it’s usually pretty simple. In my case systemd-timesyncd runs on all my Linux boxes and they all sync to a public NTP server of some sort, generally whatever the OS has configured out of the box.

Years ago I used to run ntpd for all my local devices, but honestly couldn’t be bothered anymore.

Re: Cannot get NTP client to sync with local server

In case of unsurmountable firewall problem you can try using htpdate instead of ntpdate.
It uses headers in the HTTP response from servers to set a date by bumping the local clock.
Not as accurate as NTP but good enough.

(Not all http servers include the needed headers, if the date doesn’t adjust, try hitting other ones.)

Re: Cannot get NTP client to sync with local server

Ok guys. Thanks a lot for helping.

I wasn’t able to give up without a last try. So a remove ntp and tried again using the timesyncd. Surprising enough, i was able to find out that the client is indeed receiving something from the server. Because if In the server’s ntp.conf, i set the line

restrict 192.168.2.1 mask 255.255.255.255 nomodify notrap

I cant remember the exact syntax but there was a mention in the comment that we must restrict this only if cryptographically authenticated. Anyway, if i set this line, the timesyncd was reporting a timeout trying to get the time. Recommenting it then i was not getting this time out. So, somehow, the client is receiving some kind of answer back from the server. But i could not get any farther. I tried and tried lots of different setup.

So, i disabled timesyncd and reinstalled ntp. Doing the same change in the sever i could see the POLL value of the ntpd command incrementing when the restriction was not active, and not incrementing when the restriction was ON. This is also means that it is receiving something. but what?

Strange that there are no log to report what is really going on. Anyhow, i tried so many different things. i ended up writing a python program on the server to broadcast the time, and in the clients, i get it and update its time. This is at least working. Not exactly the way i prefer but it is working.

If someone read this one day and have a clue what was happening here, let me know.

Источник

This topic has been deleted. Only users with topic management privileges can see it.

  • I found some threads about this error, but solutions did not worked for me.

    Tried sysctl -w kern.timecounter.hardware=ACPI-fast, but it did not help any. I reverted back to TSC.

    My system is pfSense 2.6.0 on bare metal with Intel J4125 CPU. BIOS time and battery is also check’d.

    Here is some logs and settings:

    May 4 17:18:15 	ntpd 	85447 	Soliciting pool server 193.182.111.13
    May 4 17:18:14 	ntpd 	85447 	Soliciting pool server 85.214.38.116
    May 4 17:18:13 	ntpd 	85447 	Soliciting pool server 162.159.200.1
    May 4 17:18:12 	ntpd 	85447 	0.0.0.0 c016 06 restart
    May 4 17:18:12 	ntpd 	85447 	0.0.0.0 c011 01 freq_not_set
    May 4 17:18:12 	ntpd 	85447 	0.0.0.0 c012 02 freq_set kernel 0.000 PPM
    May 4 17:18:12 	ntpd 	85447 	kernel reports TIME_ERROR: 0x41: Clock Unsynchronized
    May 4 17:18:12 	ntpd 	85447 	0.0.0.0 c01d 0d kern kernel time sync enabled
    May 4 17:18:12 	ntpd 	85447 	kernel reports TIME_ERROR: 0x41: Clock Unsynchronized
    May 4 17:18:12 	ntpd 	85447 	0.0.0.0 8811 81 mobilize assoc 51579
    May 4 17:18:12 	ntpd 	85447 	0.0.0.0 8811 81 mobilize assoc 51578
    May 4 17:18:12 	ntpd 	85447 	0.0.0.0 8811 81 mobilize assoc 51577
    May 4 17:18:12 	ntpd 	85447 	Listening on routing socket on fd #29 for interface updates
    May 4 17:18:12 	ntpd 	85447 	Listen normally on 8 igb1.12 10.14.12.1:123
    May 4 17:18:12 	ntpd 	85447 	Listen normally on 7 igb1.12 [fe80::2f1:f3ff:fe1f:fdd3%11]:123
    May 4 17:18:12 	ntpd 	85447 	Listen normally on 6 lo0 10.10.10.1:123
    May 4 17:18:12 	ntpd 	85447 	Listen normally on 5 lo0 127.0.0.1:123
    May 4 17:18:12 	ntpd 	85447 	Listen normally on 4 lo0 [fe80::1%6]:123
    May 4 17:18:12 	ntpd 	85447 	Listen normally on 3 lo0 [::1]:123
    May 4 17:18:12 	ntpd 	85447 	Listen normally on 2 igb1 10.14.11.2:123
    May 4 17:18:12 	ntpd 	85447 	Listen normally on 1 igb1 10.14.11.1:123
    May 4 17:18:12 	ntpd 	85447 	Listen normally on 0 igb1 [fe80::2f1:f3ff:fe1f:fdd3%2]:123
    May 4 17:18:12 	ntpd 	85447 	gps base set to 2022-01-02 (week 2191)
    May 4 17:18:12 	ntpd 	85447 	basedate set to 2021-12-31
    May 4 17:18:12 	ntpd 	85447 	proto: precision = 0.109 usec (-23)
    May 4 17:18:12 	ntpd 	85328 	----------------------------------------------------
    May 4 17:18:12 	ntpd 	85328 	available at https://www.nwtime.org/support
    May 4 17:18:12 	ntpd 	85328 	corporation. Support and training for ntp-4 are
    May 4 17:18:12 	ntpd 	85328 	Inc. (NTF), a non-profit 501(c)(3) public-benefit
    May 4 17:18:12 	ntpd 	85328 	ntp-4 is maintained by Network Time Foundation,
    May 4 17:18:12 	ntpd 	85328 	----------------------------------------------------
    May 4 17:18:12 	ntpd 	85328 	Command line: /usr/local/sbin/ntpd -g -c /var/etc/ntpd.conf -p /var/run/ntpd.pid
    
    # ntpq -p
         remote           refid      st t when poll reach   delay   offset  jitter
    ==============================================================================
     fi.pool.ntp.org .POOL.          16 p    -   64    0    0.000   +0.000   0.000
     de.pool.ntp.org .POOL.          16 p    -   64    0    0.000   +0.000   0.000
     se.pool.ntp.org .POOL.          16 p    -   64    0    0.000   +0.000   0.000
    
    # ntpq -c rv
    associd=0 status=c016 leap_alarm, sync_unspec, 1 event, restart,
    version="ntpd 4.2.8p15@1.3728-o Wed Jan 12 15:39:52 UTC 2022 (1)",
    processor="amd64", system="FreeBSD/12.3-STABLE", leap=11, stratum=16,
    precision=-23, rootdelay=0.000, rootdisp=2.295, refid=INIT,
    reftime=(no time),
    clock=e61d0a3e.02c71480  Wed, May  4 2022 17:20:46.010, peer=0, tc=3,
    mintc=3, offset=+0.000000, frequency=+0.000, sys_jitter=0.000000,
    clk_jitter=0.000, clk_wander=0.000
    
    # cat /var/etc/ntpd.conf
    tinker panic 0
    tos orphan 12 maxclock 5
    pool fi.pool.ntp.org iburst maxpoll 9 prefer
    pool de.pool.ntp.org iburst maxpoll 9
    pool se.pool.ntp.org iburst maxpoll 9
    statsdir /var/log/ntp
    logconfig =syncall +clockall +peerall +sysall
    driftfile /var/db/ntpd.drift
    restrict default kod limited nomodify nopeer notrap
    restrict -6 default kod limited nomodify nopeer notrap
    restrict source kod limited nomodify notrap
    interface ignore all
    interface ignore wildcard
    interface listen igb1
    interface listen igb1.12
    interface listen lo0
    
    # cat /var/db/ntpd.drift
    cat: /var/db/ntpd.drift: No such file or directory
    
    # host fi.pool.ntp.org
    fi.pool.ntp.org has address 162.159.200.1
    fi.pool.ntp.org has address 162.159.200.123
    fi.pool.ntp.org has address 195.148.70.12
    fi.pool.ntp.org has address 95.216.138.141
    
    # ntpdate fi.pool.ntp.org
     4 May 17:26:57 ntpdate[98867]: adjust time server 95.217.188.206 offset +0.025176 sec
    

    Anything to try?

  • That doesn’t look like a problem to me unless you’re actually seeing time inaccuracy?
    It’s normal to see ntpd report that when it first starts.

    If I restart it here for example:

     May 4 16:58:19 	ntpd 	13097 	ntpd exiting on signal 15 (Terminated)
    May 4 16:58:19 	ntpd 	13097 	81.21.65.168 local addr 172.21.16.206 -> <null>
    May 4 16:58:19 	ntpd 	13097 	178.62.18.76 local addr 172.21.16.206 -> <null>
    May 4 16:58:19 	ntpd 	13097 	93.93.131.118 local addr 172.21.16.206 -> <null>
    May 4 16:58:19 	ntpd 	13097 	178.62.250.107 local addr 172.21.16.206 -> <null>
    May 4 16:58:19 	ntpd 	37081 	ntpd 4.2.8p15@1.3728-o Wed Mar 23 20:14:42 UTC 2022 (1): Starting
    May 4 16:58:19 	ntpd 	37081 	Command line: /usr/local/sbin/ntpd -g -c /var/etc/ntpd.conf -p /var/run/ntpd.pid
    May 4 16:58:19 	ntpd 	37081 	----------------------------------------------------
    May 4 16:58:19 	ntpd 	37081 	ntp-4 is maintained by Network Time Foundation,
    May 4 16:58:19 	ntpd 	37081 	Inc. (NTF), a non-profit 501(c)(3) public-benefit
    May 4 16:58:19 	ntpd 	37081 	corporation. Support and training for ntp-4 are
    May 4 16:58:19 	ntpd 	37081 	available at https://www.nwtime.org/support
    May 4 16:58:19 	ntpd 	37081 	----------------------------------------------------
    May 4 16:58:19 	ntpd 	37106 	proto: precision = 0.370 usec (-21)
    May 4 16:58:19 	ntpd 	37106 	basedate set to 2022-03-11
    May 4 16:58:19 	ntpd 	37106 	gps base set to 2022-03-13 (week 2201)
    May 4 16:58:19 	ntpd 	37106 	Listen and drop on 0 v6wildcard [::]:123
    May 4 16:58:19 	ntpd 	37106 	Listen and drop on 1 v4wildcard 0.0.0.0:123
    May 4 16:58:19 	ntpd 	37106 	Listen normally on 2 igc0 [fe80::92ec:77ff:fe1f:8c3f%1]:123
    May 4 16:58:19 	ntpd 	37106 	Listen normally on 3 igc0 192.168.206.1:123
    May 4 16:58:19 	ntpd 	37106 	Listen normally on 4 igc0 [fe80::1:1%1]:123
    May 4 16:58:19 	ntpd 	37106 	Listen normally on 5 igc1 [fe80::92ec:77ff:fe1f:8c40%2]:123
    May 4 16:58:19 	ntpd 	37106 	Listen normally on 6 igc1 10.23.10.1:123
    May 4 16:58:19 	ntpd 	37106 	Listen normally on 7 igc2 [fe80::92ec:77ff:fe1f:8c41%3]:123
    May 4 16:58:19 	ntpd 	37106 	Listen normally on 8 igc3 [fe80::92ec:77ff:fe1f:8c42%4]:123
    May 4 16:58:19 	ntpd 	37106 	Listen normally on 9 ix2 [fe80::92ec:77ff:fe1f:8c3e%7]:123
    May 4 16:58:19 	ntpd 	37106 	Listen normally on 10 ix3 [fe80::92ec:77ff:fe1f:8c3d%8]:123
    May 4 16:58:19 	ntpd 	37106 	Listen normally on 11 ix3 172.21.16.206:123
    May 4 16:58:19 	ntpd 	37106 	Listen normally on 12 lo0 [::1]:123
    May 4 16:58:19 	ntpd 	37106 	Listen normally on 13 lo0 [fe80::1%10]:123
    May 4 16:58:19 	ntpd 	37106 	Listen normally on 14 lo0 127.0.0.1:123
    May 4 16:58:19 	ntpd 	37106 	Listen normally on 15 ix3.229 [fe80::92ec:77ff:fe1f:8c3d%13]:123
    May 4 16:58:19 	ntpd 	37106 	Listen normally on 16 ix3.229 10.229.0.11:123
    May 4 16:58:19 	ntpd 	37106 	Listen normally on 17 pppoe0 10.5.200.10:123
    May 4 16:58:19 	ntpd 	37106 	Listen normally on 18 pppoe0 [fe80::92ec:77ff:fe1f:8c3f%15]:123
    May 4 16:58:19 	ntpd 	37106 	Listen normally on 19 ovpnc1 [fe80::92ec:77ff:fe1f:8c3f%14]:123
    May 4 16:58:19 	ntpd 	37106 	Listen normally on 20 ovpnc1 10.2.4.2:123
    May 4 16:58:19 	ntpd 	37106 	Listening on routing socket on fd #41 for interface updates
    May 4 16:58:19 	ntpd 	37106 	kernel reports TIME_ERROR: 0x2041: Clock Unsynchronized
    May 4 16:58:19 	ntpd 	37106 	kernel reports TIME_ERROR: 0x2041: Clock Unsynchronized
    May 4 16:58:22 	ntpd 	37106 	Soliciting pool server 82.219.4.30 
    

    Steve

  • Thanks Steve for reply.

    Yes it have problem. It slowly drifting behind. This time it was almost two minutes behind and I had to stop NTP service and manually run ntpdate command. Logs are same before and after this manual correction.

    Is it normal to see NTP request coming from pfBlockerNG virtual IP?

    # tcpdump port 123 -nn
    tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
    listening on tun_wg1, link-type NULL (BSD loopback), capture size 262144 bytes
    23:36:32.846058 IP 10.10.10.1.123 > 78.46.150.245.123: NTPv4, Client, length 48
    23:36:32.846546 IP 10.10.10.1.123 > 162.159.200.123.123: NTPv4, Client, length 48
    23:36:40.846038 IP 10.10.10.1.123 > 194.58.202.20.123: NTPv4, Client, length 48
    23:37:37.846043 IP 10.10.10.1.123 > 195.201.20.16.123: NTPv4, Client, length 48
    23:37:38.846039 IP 10.10.10.1.123 > 192.26.105.26.123: NTPv4, Client, length 48
    23:37:45.846046 IP 10.10.10.1.123 > 91.209.0.19.123: NTPv4, Client, length 48
    
  • @mixka said in NTP problem: kernel reports TIME_ERROR: 0x41: Clock Unsynchronized:

    # ntpq -p
         remote           refid      st t when poll reach   delay   offset  jitter
    ==============================================================================
     fi.pool.ntp.org .POOL.          16 p    -   64    0    0.000   +0.000   0.000
     de.pool.ntp.org .POOL.          16 p    -   64    0    0.000   +0.000   0.000
     se.pool.ntp.org .POOL.          16 p    -   64    0    0.000   +0.000   0.000
    

    Did you see any other connections.. while you will see pool as a place holder, you should also see the actual servers your talking too with a reach of 377, etc.

    I don’t run pfblocker vip, I just use it for aliases that I use in my own rules. But yeah that seems odd — is that vip actually natted to your public IP? If it tries and go to the public?

  • Thank you @johnpoz

    There is no other than pools shown.

    I have pfBlockerNG with quite stock settings. I have disabled automatic firewall policies and run it with these manually made floating rules:

    2022-05-05 01_00_21-Firewall_ Rules_ Floating - thegreatwall.home.lan — Mozilla Firefox.png

  • Check Status > Interfaces. Are you seeing the WAN trying to use the pfBlocker VIP as it’s primary IP?
    You might be hitting this: https://redmine.pfsense.org/issues/11545

    There probably isn’t an outbound NAT rule for it so traffic to the actual NTP servers is failing.

    Normally the pfBlocker VIP is on LAN so that should not be an issue.

    Do you have specific interfaces set in NTP to listen on? It also uses those to send from and if you are only listening on LAN I could see that happening. Does it succeed if you deselect all the interfaces so it listens on all (the default)?

    Steve

  • @stephenw10

    Can’t find 10.10.10.1 on any interface on interfaces status page.

    I had spesified listen interfaces for NTP. I had understood that selected interfaces was only for NTP server listen interfaces.

    Cleared and restarted server. Now it looks much more promising.

    # ntpq -p
         remote           refid      st t when poll reach   delay   offset  jitter
    ==============================================================================
     fi.pool.ntp.org .POOL.          16 p    -   64    0    0.000   +0.000   0.015
     de.pool.ntp.org .POOL.          16 p    -   64    0    0.000   +0.000   0.015
     se.pool.ntp.org .POOL.          16 p    -   64    0    0.000   +0.000   0.015
    +static.52.142.2 194.58.205.20    2 u    3   64    3    2.802  +71.170  29.337
    +time.cloudflare 10.79.8.177      3 u    3   64    3    1.786  +66.978  29.504
    #ntp38.kashra-se 192.168.100.15   2 u    1   64    3   33.746  +63.356  30.095
    #time.cloudflare 10.79.8.177      3 u    2   64    3    1.598  +66.590  30.244
    *ntp2.vmar.se    192.36.143.150   2 u    3   64    3    7.929  +67.622  29.632
    +168.119.4.163.p 31.209.85.243    2 u    5   64    3   36.175  +66.945  29.398
    #ntp2.flashdance 192.36.143.153   2 u    1   64    3   10.534  +67.174  30.147
    +94.130.49.186 ( 9.193.143.114    3 u    6   64    3   35.614  +68.530  28.799
    #ntp.blockblueme 45.76.113.31     3 u    6   64    3  311.353  +78.537  30.032
    
    # ntpq -c rv
    associd=0 status=0615 leap_none, sync_ntp, 1 event, clock_sync,
    version="ntpd 4.2.8p15@1.3728-o Wed Jan 12 15:39:52 UTC 2022 (1)",
    processor="amd64", system="FreeBSD/12.3-STABLE", leap=00, stratum=3,
    precision=-16, rootdelay=8.768, rootdisp=163.398, refid=147.78.229.141,
    reftime=e61d9bc2.5717bbc2  Thu, May  5 2022  3:41:38.340,
    clock=e61d9bd7.252f7a39  Thu, May  5 2022  3:41:59.145, peer=2324, tc=6,
    mintc=3, offset=+68.205317, frequency=+0.000, sys_jitter=5.356193,
    clk_jitter=27.235, clk_wander=0.000
    
    # cat /var/etc/ntpd.conf
    tinker panic 0
    tos orphan 12 maxclock 5
    pool fi.pool.ntp.org iburst maxpoll 9 prefer
    pool de.pool.ntp.org iburst maxpoll 9
    pool se.pool.ntp.org iburst maxpoll 9
    statsdir /var/log/ntp
    logconfig =syncall +clockall +peerall +sysall
    driftfile /var/db/ntpd.drift
    restrict default kod limited nomodify nopeer notrap
    restrict -6 default kod limited nomodify nopeer notrap
    restrict source kod limited nomodify notrap
    
    # cat /var/db/ntpd.drift
    0.000
    

    Is there a way to make sure everything is working?

  • @mixka said in NTP problem: kernel reports TIME_ERROR: 0x41: Clock Unsynchronized:

    Is there a way to make sure everything is working?

    Yeah that looks better — it should fairly quickly show reach of 377, if so then its working correctly.

    I really don’t see point to pointing to all of those pools. You should pick a pool for your region of the world and that should be more than enough..

  • Thank you @stephenw10 and @johnpoz this looks like it is working now.

    I assigned only one pool to NTP and now reach column shows 377 for four servers. So this is golden. Thanks again!

  • Оффлайн
    Domitory

    Всем привет!

    Столкнулся с непонятной проблемой.
    Не могу прописать сервер для синхронизации времени в файле /etc/ntp.conf

    Команда ntpq -p показывает что никакие сервера не заданы в настройках

    stdds@stdds-GA-78LMT-S2:~$ sudo ntpq -p
         remote           refid      st t when poll reach   delay   offset  jitter
    ==============================================================================
     _gateway        .INIT.          16 u    -  512    0    0.000    0.000   0.000

    Содержимое файл /etc/ntp.conf

    # /etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for help

    driftfile /var/lib/ntp/ntp.drift

    # Leap seconds definition provided by tzdata
    leapfile /usr/share/zoneinfo/leap-seconds.list

    # Enable this if you want statistics to be logged.
    #statsdir /var/log/ntpstats/

    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

    # Specify one or more NTP servers.

    # Use servers from the NTP Pool Project. Approved by Ubuntu Technical Board
    # on 2011-02-08 (LP: #104525). See http://www.pool.ntp.org/join.html for
    # more information.
    #pool 0.ubuntu.pool.ntp.org iburst
    #pool 1.ubuntu.pool.ntp.org iburst
    #pool 2.ubuntu.pool.ntp.org iburst
    #pool 3.ubuntu.pool.ntp.org iburst
    server 192.168.0.8
    # Use Ubuntu's ntp server as a fallback.
    #pool ntp.ubuntu.com

    # Access control configuration; see /usr/share/doc/ntp-doc/html/accopt.html for
    # details.  The web page <http://support.ntp.org/bin/view/Support/AccessRestrictions>
    # might also be helpful.
    #
    # Note that "restrict" applies to both servers and clients, so a configuration
    # that might be intended to block requests from certain clients could also end
    # up blocking replies from your own upstream servers.

    # By default, exchange time with everybody, but don't allow configuration.
    restrict -4 default kod notrap nomodify nopeer noquery limited
    restrict -6 default kod notrap nomodify nopeer noquery limited

    # Local users may interrogate the ntp server more closely.
    restrict 127.0.0.1
    restrict ::1

    # Needed for adding pool entries
    restrict source notrap nomodify noquery

    # Clients from this (example!) subnet have unlimited access, but only if
    # cryptographically authenticated.
    #restrict 192.168.123.0 mask 255.255.255.0 notrust

    # If you want to provide time to your local subnet, change the next line.
    # (Again, the address is an example only.)
    #broadcast 192.168.123.255

    # If you want to listen to time broadcasts on your local subnet, de-comment the
    # next lines.  Please do this only if you trust everybody on the network!
    #disable auth
    #broadcastclient

    Статус сервиса NTP


    stdds@stdds-GA-78LMT-S2:~$ sudo service  ntp  status
    ● ntp.service - Network Time Service
         Loaded: loaded (/lib/systemd/system/ntp.service; enabled; vendor preset: enabled)
         Active: active (running) since Wed 2020-09-09 21:52:44 MSK; 5min ago
           Docs: man:ntpd(8)
        Process: 3763 ExecStart=/usr/lib/ntp/ntp-systemd-wrapper (code=exited, status=0/SUCCESS)
       Main PID: 3784 (ntpd)
          Tasks: 2 (limit: 19033)
         Memory: 1.7M
         CGroup: /system.slice/ntp.service
                 └─3784 /usr/sbin/ntpd -p /var/run/ntpd.pid -g -c /run/ntp.conf.dhcp -u 123:135

    сен 09 21:52:44 stdds-GA-78LMT-S2 ntpd[3784]: Listen and drop on 1 v4wildcard 0.0.0.0:123
    сен 09 21:52:44 stdds-GA-78LMT-S2 ntpd[3784]: Listen normally on 2 lo 127.0.0.1:123
    сен 09 21:52:44 stdds-GA-78LMT-S2 ntpd[3784]: Listen normally on 3 enp2s0 192.168.2.110:123
    сен 09 21:52:44 stdds-GA-78LMT-S2 ntpd[3784]: Listen normally on 4 wlxc83a35cb2e3f 192.168.0.6:123
    сен 09 21:52:44 stdds-GA-78LMT-S2 ntpd[3784]: Listen normally on 5 lo [::1]:123
    сен 09 21:52:44 stdds-GA-78LMT-S2 ntpd[3784]: Listen normally on 6 enp2s0 [fe80::feaa:14ff:febb:95b%2]:123
    сен 09 21:52:44 stdds-GA-78LMT-S2 ntpd[3784]: Listen normally on 7 wlxc83a35cb2e3f [fe80::7d36:6b5f:de36:1931%3]:123
    сен 09 21:52:44 stdds-GA-78LMT-S2 ntpd[3784]: Listening on routing socket on fd #24 for interface updates
    сен 09 21:52:44 stdds-GA-78LMT-S2 ntpd[3784]: kernel reports TIME_ERROR: 0x41: Clock Unsynchronized
    сен 09 21:52:44 stdds-GA-78LMT-S2 ntpd[3784]: kernel reports TIME_ERROR: 0x41: Clock Unsynchronized

    « Последнее редактирование: 09 Сентября 2020, 22:00:33 от Domitory »

    Recommended Posts

    kno

    Rookie

      • Share

    In my System Log I have observed the following error message:

    ntpd[1495]: kernel reports TIME_ERROR: 0x41: Clock Unsynchronized

    Does anyone know what this is?

    Link to comment

    • 3 years later…

    superloopy1

    Enthusiast

      • Share

    Bumping the exact same issue …. unraid 6.9.2, anyone else?

    Link to comment

    Vr2Io

    Proficient

      • Share

    You can ignore if just few error message.

    Link to comment

    bonienl

    Veteran

      • Share

    On 11/2/2017 at 12:14 PM, kno said:

    Does anyone know what this is?

    This is normal after rebooting the server, time will get synchronized after a while (assuming you have NTP configured).

    Link to comment

    superloopy1

    Enthusiast

      • Share

    58 minutes ago, bonienl said:

    This is normal after rebooting the server, time will get synchronized after a while (assuming you have NTP configured).

    yes i have, so all ok then, thx!

    • Quote

    Link to comment

    Join the conversation

    You can post now and register later.

    If you have an account, sign in now to post with your account.

    Note: Your post will require moderator approval before it will be visible.

    • #1

    Риг периодически зависает…может работать неделю а потом раз и виснет наглухо приходится перезагружать (купил спецом розетку яндекс) и опять копает нормально. log тока после включения пишется а где откопать до выключения.

    • вылет.JPG

      вылет.JPG

      68,2 КБ · Просмотры: 224

    • #3

    Г

    Риг периодически зависает…может работать неделю а потом раз и виснет наглухо приходится перезагружать (купил спецом розетку яндекс) и опять копает нормально. log тока после включения пишется а где откопать до выключения.

    Гпу 0 убавь разгон для начала

    • #4

    Г

    Гпу 0 убавь разгон для начала

    те он неделю работает нормально и вдруг ему разгон не понравился… рядом стоит такой один в один с такими же видюхами и с такими же настройками… ни разу не выключился тока у него железо другое (мать проц БП).зы. кошусь на блок питания…самый дешманский тк стояло ещё пару кульков на обдув чаще зависал…выкинул их(шумные очень стали) стало реже виснуть.

    • #5

    те он неделю работает нормально и вдруг ему разгон не понравился… рядом стоит такой один в один с такими же видюхами и с такими же настройками… ни разу не выключился тока у него железо другое (мать проц БП).зы. кошусь на блок питания…самый дешманский тк стояло ещё пару кульков на обдув чаще зависал…выкинул их(шумные очень стали) стало реже виснуть.

    КАРТЫ РАЗГОН УБАВЬ !!!!!!!!!!!!!!!!!!ИМ НЕТ РАЗНИЦА КАКОЙ У МЕНЯ БЛОК СТОИТ ХОТЬ ОТ БАТАРЕЙКИ ПИТАЙ!!!!!!!!!!!!!!!!!!!!!!!

    • #6

    мда… трудно видать с утра читается .ПОВТОРЮ ДЛЯ ПЛОХО ЧИТАЮЩИХ….. !!!! РЯДОМ ТАКОЙЖЕ ТОЧНО РИГ РАБОТАЕТ УЖЕ МЕСЯЦ …ВИДЕОКАРТЫ ОДИНАКОВЫЕ РАЗОГНАНЫ ОДИНАКОВО!!!

    • #7

    вот в логе нашёл… May 4 01:00:39 rig daemon.info ntpd[318]: kernel reports TIME_ERROR: 0x41: Clock Unsynchronized
    воркер не зависает а останавливается и просто не работает дальше

    • #8

    мда… трудно видать с утра читается .ПОВТОРЮ ДЛЯ ПЛОХО ЧИТАЮЩИХ….. !!!! РЯДОМ ТАКОЙЖЕ ТОЧНО РИГ РАБОТАЕТ УЖЕ МЕСЯЦ …ВИДЕОКАРТЫ ОДИНАКОВЫЕ РАЗОГНАНЫ ОДИНАКОВО!!!

    Чё орёшь то? Одинаковых карт не бывает, каждый экземпляр уникален и требует индивидуального подхода.

    • #9

    РЯДОМ ТАКОЙЖЕ ТОЧНО РИГ РАБОТАЕТ УЖЕ МЕСЯЦ …ВИДЕОКАРТЫ ОДИНАКОВЫЕ РАЗОГНАНЫ ОДИНАКОВО!!!

    Ты это ГПУ0 расскажи: «Смотри, рядом куча таких как ты, все работают.. Какого х..я тунеядствуешь, да еще и весь риг останавливаешь???»

    Последнее редактирование: 4 Май 2021

    • #10

    Ты это ГПУ0 расскажи: «Смотри, рядом куча таких как ты, все работают.. Какого х..я тунеядствуешь, да еще и весь риг останавливаеь???»

    кстати да !

    мда… трудно видать с утра читается .ПОВТОРЮ ДЛЯ ПЛОХО ЧИТАЮЩИХ….. !!!! РЯДОМ ТАКОЙЖЕ ТОЧНО РИГ РАБОТАЕТ УЖЕ МЕСЯЦ …ВИДЕОКАРТЫ ОДИНАКОВЫЕ РАЗОГНАНЫ ОДИНАКОВО!!!

    ты с гпу0 вообще общался ? или скажи что б остальные карты ей сказали , у тебя все нормально работают а гпу0 нет .
    они её за это подтянут !!!!!!!!!!!!!!!!!!!!!!!!

    • #11

    мда… трудно видать с утра читается .ПОВТОРЮ ДЛЯ ПЛОХО ЧИТАЮЩИХ….. !!!! РЯДОМ ТАКОЙЖЕ ТОЧНО РИГ РАБОТАЕТ УЖЕ МЕСЯЦ …ВИДЕОКАРТЫ ОДИНАКОВЫЕ РАЗОГНАНЫ ОДИНАКОВО!!!

    Если сам умный то че тогда советов просишь?

    • #12

    РЯДОМ ТАКОЙЖЕ ТОЧНО РИГ РАБОТАЕТ УЖЕ МЕСЯЦ …ВИДЕОКАРТЫ ОДИНАКОВЫЕ РАЗОГНАНЫ ОДИНАКОВО!!!

    Мля аргумент:D:D:D, те по русски система написала отвал 0 карты. Как еще тогда до вас донести эту инфу я х.з. o_O

    • #13

    те он неделю работает нормально и вдруг ему разгон не понравился… рядом стоит такой один в один с такими же видюхами и с такими же настройками… ни разу не выключился тока у него железо другое (мать проц БП).зы. кошусь на блок питания…самый дешманский тк стояло ещё пару кульков на обдув чаще зависал…выкинул их(шумные очень стали) стало реже виснуть.

    Поставь эту карту в соседний риг, а из него на освободившееся место поставь другую карту. И протэсти. Если будут отвалы, копай в сторону питания или рейзеров.
    Проверь ещё, что бы из соседней карты не задувало теплом в эту карту.
    И убавь разгон (PL+MEM). Ругается Рэйв у тебя именно на переразгон.

    • #14

    короче железо чёт мудрит про May 4 01:00:39 rig daemon.info ntpd[318]: kernel reports TIME_ERROR: 0x41: Clock Unsynchronized никто умного ничё не придумал.. .ребутнул опять работает стабильно (розетка вифи это прям спасение окупилась за не поездку на такси до рига чтобы розетку передёрнуть)
    зы. Если бы это глючило хотя бы раз в сутки … то да надо решать…а тут раз в 5-8 дней

    Последнее редактирование: 5 Май 2021

    • #15

    Ну и как всегда на этом форуме, решения нет, только одно пустословие. А гугл это форсит, найс…
    kernel reports TIME_ERROR: 0x41: Clock Unsynchronized кто-нибудь решил?

    • #16

    Ну и как всегда на этом форуме, решения нет, только одно пустословие. А гугл это форсит, найс…
    kernel reports TIME_ERROR: 0x41: Clock Unsynchronized кто-нибудь решил?

    короче железо чёт мудрит про May 4 01:00:39 rig daemon.info ntpd[318]: kernel reports TIME_ERROR: 0x41: Clock Unsynchronized никто умного ничё не придумал.. .ребутнул опять работает стабильно (розетка вифи это прям спасение окупилась за не поездку на такси до рига чтобы розетку передёрнуть)
    зы. Если бы это глючило хотя бы раз в сутки … то да надо решать…а тут раз в 5-8 дней

    Нашел решение проблемы?

    • #17

    Прости за долгий ответ, давно сюда не захожу, ибо тут одни смехуёчки, типо все профи, а толку 0
    Да, нашел, написал разрабам на почту + погуглил англоязычные сайты.
    Надо обновить биос + проверить настройки даты и времени в биосе, это и есть решение, но у меня всё равно не с первого раза запускалась ТРМ, но там было с питанием проблемы. Всё поменял, обновил и всё заработало

    Hey,

    I have an error with my NTP daemon. When I check its status for the first time with

    systemctl status ntpd.service

    here is the output:

    Oct 26 17:14:42 myhost ntpd[377]: unable to create socket on enp2s0 (5) for fe80::493f:8ce3:2992:16b5%2#123
    Oct 26 17:14:42 myhost ntpd[377]: failed to init interface for address fe80::493f:8ce3:2992:16b5%2
    Oct 26 17:14:42 myhost ntpd[377]: new interface(s) found: waking up resolver
    Oct 26 17:14:44 myhost ntpd[377]: bind(24) AF_INET6 xxxx:xxxx:xx:xxxx:xxxx:xxxx:xxxx:xxxx#123 flags 0x11 failed: Cannot assign re>
    Oct 26 17:14:44 myhost ntpd[377]: unable to create socket on enp2s0 (6) for xxxx:xxxx:xx:xxxx:xxxx:xxxx:xxxx:xxxx#123
    Oct 26 17:14:44 myhost ntpd[377]: failed to init interface for address xxxx:xxxx:xx:xxxx:xxxx:xxxx:xxxx:xxxx
    Oct 26 17:14:44 myhost ntpd[377]: Listen normally on 7 enp2s0 [fe80::493f:8ce3:2992:16b5%2]:123
    Oct 26 17:14:44 myhost ntpd[377]: new interface(s) found: waking up resolver
    Oct 26 17:14:46 myhost ntpd[377]: Listen normally on 8 enp2s0 [xxxx:xxxx:xx:xxxx:xxxx:xxxx:xxxx:xxxx]:123
    Oct 26 17:14:46 myhost ntpd[377]: new interface(s) found: waking up resolver

    It seems to be an IPv6 error.

    Then, when I restart the service, and that I check its status again, I get another one:

    Oct 26 17:18:13 myhost ntpd[1178]: Listen and drop on 0 v6wildcard [::]:123
    Oct 26 17:18:13 myhost ntpd[1178]: Listen and drop on 1 v4wildcard 0.0.0.0:123
    Oct 26 17:18:13 myhost ntpd[1178]: Listen normally on 2 lo 127.0.0.1:123
    Oct 26 17:18:13 myhost ntpd[1178]: Listen normally on 3 enp2s0 192.168.1.25:123
    Oct 26 17:18:13 myhost ntpd[1178]: Listen normally on 4 lo [::1]:123
    Oct 26 17:18:13 myhost ntpd[1178]: Listen normally on 5 enp2s0 [xxxx:xxxx:xx:xxxx:xxxx:xxxx:xxxx:xxxx]:123
    Oct 26 17:18:13 myhost ntpd[1178]: Listen normally on 6 enp2s0 [fe80::493f:8ce3:2992:16b5%2]:123
    Oct 26 17:18:13 myhost ntpd[1178]: Listening on routing socket on fd #23 for interface updates
    Oct 26 17:18:13 myhost ntpd[1178]: kernel reports TIME_ERROR: 0x41: Clock Unsynchronized
    Oct 26 17:18:13 myhost ntpd[1178]: kernel reports TIME_ERROR: 0x41: Clock Unsynchronized

    This time it is a kernel time error.

    My configuration file `/etc/ntp.conf`:

    # Please consider joining the pool:
    #
    #     http://www.pool.ntp.org/join.html
    #
    # For additional information see:
    # - https://wiki.archlinux.org/index.php/Network_Time_Protocol_daemon
    # - http://support.ntp.org/bin/view/Support/GettingStarted
    # - the ntp.conf man page
    
    # Associate to Arch's NTP pool
    server 0.fr.pool.ntp.org iburst
    server 1.fr.pool.ntp.org iburst
    server 2.fr.pool.ntp.org iburst
    server 3.fr.pool.ntp.org iburst
    
    # By default, the server allows:
    # - all queries from the local host
    # - only time queries from remote hosts, protected by rate limiting and kod
    restrict default kod limited nomodify nopeer noquery notrap
    restrict 127.0.0.1
    restrict ::1
    
    # Location of drift file
    driftfile /var/lib/ntp/ntp.drift

    The output of `ntpq -pn`

         remote           refid      st t when poll reach   delay   offset  jitter
    ==============================================================================
    +185.123.84.51   200.98.196.212   2 u   30   64  377   15.617   -0.422  20.934
    +80.67.184.40    85.199.214.102   2 u   29   64  377    4.370    0.859   9.489
    *2001:bc8:313f:: 145.238.203.14   2 u   26   64  377    4.182    1.177   8.150
    +178.32.220.152  138.96.64.10     2 u   25   64  377    7.363    3.703   8.125

    Thank you in advance for your help.

    Last edited by Wmog (2018-10-26 15:37:04)

    Понравилась статья? Поделить с друзьями:

    Читайте также:

  • Tilix найдена ошибка конфигурации
  • Tilemap collider 2d unity как изменить
  • Tilda ошибка 404
  • Tilda store booking error
  • Tik tok как изменить имя пользователя

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии