question

fborup avatar image
0 Votes"
fborup asked DSPatrick commented

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

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 =====================================


windows-active-directory
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi,
I am checking to see if the problem has been resolved.
If there's anything you'd like to know, don't hesitate to ask.
Best Regards,

0 Votes 0 ·
DSPatrick avatar image
1 Vote"
DSPatrick answered DSPatrick commented

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--














· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi, Patrick
could you please check this URL https://docs.microsoft.com/en-us/answers/questions/278218/windows-10-donot-sync-the-time-from-bios-clock.html

The system show "The computer did not resync because no time data was available" also when I investigate the issue.

0 Votes 0 ·

Thank you, this works perfectly.

0 Votes 0 ·

Thanks this worked

0 Votes 0 ·

Glad to hear,

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



0 Votes 0 ·
fborup avatar image
0 Votes"
fborup answered

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)





5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

fborup avatar image
0 Votes"
fborup answered

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 [ | @]

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

DSPatrick avatar image
0 Votes"
DSPatrick answered DSPatrick rolled back

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--






5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

FanFan-MSFT avatar image
0 Votes"
FanFan-MSFT answered FanFan-MSFT commented

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,

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi,@fborup
I am checking to see if the problem has been resolved.
If there's anything you'd like to know, don't hesitate to ask.
Best Regards

0 Votes 0 ·
SumanBhowmik avatar image
0 Votes"
SumanBhowmik answered

Hi,
I cant tell you the resolution. But, can guide you with troubleshooting.
Hope this will help


First and Foremost, if the affected machine is hosted on VM, disable VMICTimeSync
This settings forces the machine to sync time from VM Host which is not recommended when you want the clients to sync time from AD.

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\VMICTimeProvider\Enabled --> 0
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\VMICTimeProvider\InputProvider --> 0



Increase the event log flags
This will generate some more information and log events under system event logs

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpClient\EventLogFlags --> 2
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config\EventLogFlags --> 2



Enable time debug log
This is plaintext and will give you detailed information about what happened

https://support.microsoft.com/en-gb/office/how-to-turn-on-debug-logging-in-the-windows-time-service-8decbb8b-b178-ab87-9f42-bcaba7579741#:~:text=%20To%20turn%20on%20debug%20logging%20in%20the,name%3A%20FileLogName%0AData%20Type%3A%20String%0AValue%20data%3A%20C%3AWindowsTempw32time.log%0AThis...%20More%20



5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.