Unable to sync time - The computer did not resync because no time data was available.

fborup 1 Reputation point
2020-09-02T13:15:18.753+00:00

Unable to sync time - The computer did not resync because no time data was available.

The environment is:

PDC emulator running WIn2019 and used as time source for the entire domain, UDP/123 allowed on the local firewall and PDC emulator since 25/10/2019

Reliable time source for PDC emulator is the Cesium atomic clocks from: http://pcdsh01.on.br/HoraLegalBrasileira.php (less than 1 second error on 10 MILLION years) and following the guidelines of the "authoratiative time server", running OK since then

Serveral Windows domain-members and some Linux machines (using ntp.conf pointing to the FQDN of the PDC emulator)

Occasionaly, some WIndows machines are getting 4 to 5 minutes late and the resync is impossible, i ended up setting clocks manually and some of then, on the next day, got to be late gain, 4-5 minutes

So, on my domain members i tried:

net stop w32time
net start w32time
w32tm /config /update
w32tm /resync /rediscover

net time \ntp /set /yes
w32tm /config /computer:ntp /update /syncfromflags:DOMHIER

w32tm /resync /computer:ntp
Sending resync command to ntp...
The computer did not resync because no time data was available.

The last error is particularly weird, because I can´t see any reason on why data couldn´t be available

Besides manual intervention, why can´t I just re-sync and set the cloks at the first attempt, why is sometimes so difficult to set time?

============= WINDOWS CLIENT =====================================
[Configuration]

EventLogFlags: 2 (Local)
AnnounceFlags: 10 (Local)
TimeJumpAuditOffset: 28800 (Local)
MinPollInterval: 10 (Local)
MaxPollInterval: 15 (Local)
MaxNegPhaseCorrection: 4294967295 (Local)
MaxPosPhaseCorrection: 4294967295 (Local)
MaxAllowedPhaseOffset: 300 (Local)

FrequencyCorrectRate: 4 (Local)
PollAdjustFactor: 5 (Local)
LargePhaseOffset: 50000000 (Local)
SpikeWatchPeriod: 900 (Local)
LocalClockDispersion: 10 (Local)
HoldPeriod: 5 (Local)
PhaseCorrectRate: 1 (Local)
UpdateInterval: 30000 (Local)

[TimeProviders]

NtpClient (Local)
DllName: C:\WINDOWS\system32\w32time.dll (Local)
Enabled: 1 (Local)
InputProvider: 1 (Local)
CrossSiteSyncFlags: 2 (Local)
AllowNonstandardModeCombinations: 1 (Local)
ResolvePeerBackoffMinutes: 15 (Local)
ResolvePeerBackoffMaxTimes: 7 (Local)
CompatibilityFlags: 2147483648 (Local)
EventLogFlags: 1 (Local)
LargeSampleSkew: 3 (Local)
SpecialPollInterval: 3600 (Local)
Type: NT5DS (Local)

NtpServer (Local)
DllName: C:\WINDOWS\system32\w32time.dll (Local)
Enabled: 0 (Local)
InputProvider: 0 (Local)

============= WINDOWS CLIENT =====================================

============= WINDOWS SERVER - PDC EMULATOR =====================================

[Configuration]

EventLogFlags: 2 (Local)
AnnounceFlags: 5 (Local)
TimeJumpAuditOffset: 28800 (Local)
MinPollInterval: 6 (Local)
MaxPollInterval: 10 (Local)
MaxNegPhaseCorrection: 3600 (Local)
MaxPosPhaseCorrection: 1800 (Local)
MaxAllowedPhaseOffset: 300 (Local)

FrequencyCorrectRate: 4 (Local)
PollAdjustFactor: 5 (Local)
LargePhaseOffset: 50000000 (Local)
SpikeWatchPeriod: 900 (Local)
LocalClockDispersion: 10 (Local)
HoldPeriod: 5 (Local)
PhaseCorrectRate: 7 (Local)
UpdateInterval: 100 (Local)

[TimeProviders]

NtpClient (Local)
DllName: C:\Windows\system32\w32time.dll (Local)
Enabled: 1 (Local)
InputProvider: 1 (Local)
CrossSiteSyncFlags: 2 (Local)
AllowNonstandardModeCombinations: 1 (Local)
ResolvePeerBackoffMinutes: 15 (Local)
ResolvePeerBackoffMaxTimes: 7 (Local)
CompatibilityFlags: 2147483648 (Local)
EventLogFlags: 1 (Local)
LargeSampleSkew: 3 (Local)
SpecialPollInterval: 900 (Local)
Type: NT5DS (Local)

NtpServer (Local)
DllName: C:\Windows\system32\w32time.dll (Local)
Enabled: 1 (Local)
InputProvider: 0 (Local)
AllowNonstandardModeCombinations: 1 (Local)

VMICTimeProvider (Local)
DllName: C:\Windows\System32\vmictimeprovider.dll (Local)
Enabled: 1 (Local)
InputProvider: 1 (Local)

============= WINDOWS SERVER - PDC EMULATOR =====================================

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
5,842 questions
{count} votes

7 answers

Sort by: Most helpful
  1. Dave Patrick 426.1K Reputation points MVP
    2020-09-02T13:22:59.623+00:00

    On the PDCe it should have been;

    w32tm /unregister
    net stop w32time
    w32tm /register
    net start w32time
    w32tm /config /manualpeerlist:<ntp ip address> /syncfromflags:manual /reliable:yes /update
    net stop w32time
    net start w32time
    then check
    w32tm /query /source
    w32tm /query /configuration

    Some general info

    --please don't forget to Accept as answer if the reply is helpful--

    3 people found this answer helpful.

  2. fborup 1 Reputation point
    2020-09-02T13:26:45.75+00:00

    Regarding the post, just a mistake, i got the ntp config fro another member server, not the PDC emulator, so the proper PDC emulator config is as follows:

    w32tm.exe /config /syncfromflags:manual /manualpeerlist:pool.ntp.br,0x8 /reliable:yes /update

    w32tm.exe /config /update

    Type: NTP (Local)
    NtpServer: pool.ntp.br,0x8 (Local)

    FULL CONFIG:

    [Configuration]

    EventLogFlags: 2 (Local)
    AnnounceFlags: 5 (Local)
    TimeJumpAuditOffset: 28800 (Local)
    MinPollInterval: 6 (Local)
    MaxPollInterval: 10 (Local)
    MaxNegPhaseCorrection: 3600 (Local)
    MaxPosPhaseCorrection: 1800 (Local)
    MaxAllowedPhaseOffset: 300 (Local)

    FrequencyCorrectRate: 4 (Local)
    PollAdjustFactor: 5 (Local)
    LargePhaseOffset: 50000000 (Local)
    SpikeWatchPeriod: 900 (Local)
    LocalClockDispersion: 10 (Local)
    HoldPeriod: 5 (Local)
    PhaseCorrectRate: 7 (Local)
    UpdateInterval: 100 (Local)

    [TimeProviders]

    NtpClient (Local)
    DllName: C:\Windows\system32\w32time.dll (Local)
    Enabled: 1 (Local)
    InputProvider: 1 (Local)
    CrossSiteSyncFlags: 2 (Local)
    AllowNonstandardModeCombinations: 1 (Local)
    ResolvePeerBackoffMinutes: 15 (Local)
    ResolvePeerBackoffMaxTimes: 7 (Local)
    CompatibilityFlags: 2147483648 (Local)
    EventLogFlags: 1 (Local)
    LargeSampleSkew: 3 (Local)
    SpecialPollInterval: 900 (Local)
    Type: NTP (Local)
    NtpServer: pool.ntp.br,0x8 (Local)

    NtpServer (Local)
    DllName: C:\Windows\system32\w32time.dll (Local)
    Enabled: 1 (Local)
    InputProvider: 0 (Local)
    AllowNonstandardModeCombinations: 1 (Local)

    VMICTimeProvider (Local)
    DllName: C:\Windows\System32\vmictimeprovider.dll (Local)
    Enabled: 1 (Local)
    InputProvider: 1 (Local)

    0 comments No comments

  3. fborup 1 Reputation point
    2020-09-02T13:36:09.21+00:00

    Just adding more information:

    some minutes after posting, the clock of the PDC emulator got back in time and now is wrong too...

    w32tm /stripchart /computer:pool.ntp.br /samples:5
    Tracking pool.ntp.br [200.186.125.195:123].
    Collecting 5 samples.
    The current time is 02/09/2020 10:28:09.
    10:28:09, d:+00.0008535s o:+249.8569505s [ | @]
    10:28:11, d:+00.0010238s o:+249.8568649s [ | @]
    10:28:13, d:+00.0008155s o:+249.8569727s [ | @]
    10:28:15, d:+00.0008535s o:+249.8570283s [ | @]
    10:28:17, d:+00.0008268s o:+249.8570432s [ | @]

    0 comments No comments

  4. Dave Patrick 426.1K Reputation points MVP
    2020-09-02T13:50:26.243+00:00

    Might try a different ntp time server, also drop the 0x8 flags unless specifically configured.
    https://tf.nist.gov/tf-cgi/servers.cgi

    --please don't forget to Accept as answer if the reply is helpful--

    0 comments No comments

  5. Fan Fan 15,291 Reputation points Microsoft Vendor
    2020-09-03T01:44:11.44+00:00

    Hi,
    Before going further, i would want to make sure that the PDC and clients are physical machines,right?
    I would recommend you check the following registries ,if it's not right, you may have to make it right firstly。
    In a normal Active Directory forest, we can see the registry is set as the following types.
    ===PDC===
    Path: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config
    Key Name: AnnounceFlags
    Type: REG_DWORD (DWORD Value )
    Data: 0x5
     
    Path: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters\Type
    Key Name: Type
    Type: REG_SZ(String Value)
    Data: NTP
     
    Path: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters
    Key Name: NtpServer
    Type: REG_SZ(String Value)
    Data: Peers  (time.nist.gov,0x1)
     note:Peers is the external time Server,such as:time.nist.gov,0x1
     
    ===other DC & Client===
    Path: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters\Type
    Key Name: Type
    Type: REG_SZ(String Value)
    Data: NT5DS
     
    Path: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config
    Key Name: AnnounceFlags
    Type: REG_DWORD (DWORD Value )
    Data: 0xa
    Best Regards,