Synchonization issue
When i start the wallet I get

and i do use time servers

What OS and version are you running?
Apperantly Windows will only synchronize once a week (source). In most cases this will be sufficient but in your case it might not. Could you manually synchronize the time? I assume if you select a different ntp server Windows will re-synchronize.
The upcoming mist version will only look if the time is set to automatically and not compare times anymore. This should fix this issue.
I've downloaded and began using Ethereum-Wallet-win64-0-5-2. For the first use, "Ethereum node needs to sync" was complete and I could run the app.
Since restarting, I have had a problem of "Ethereum node needs to sync" stagnating around downloading block 400,000+.
Read some forums/discussions that the PC time synchronization could be a problem and should be synced with a world server time.
So I installed Atomic Clock Sync v3.5 (http://www.worldtimeserver.com/atomic-clock/) and set it to synchronize my PC clock (Lenovo Ideapad 100 running Windows 10 Pro) every hour while "Set Time Automatically" under "Settings > Date & time" of the PC is put as off (since I want the Atomic Clock to be setting the PC time).
Now the "Ethereum node needs to sync" stagnates around downloading block 500,000+ even after various attempts and restarts.
Would really appreciate if anyone can guide me on overcoming this issue I am still facing.
I have windows 10 and am using the default auto sync time servers. Same issue here since installing latest version.
The following helped me get rid of the above error. Now I am currently trying to sync with the ethereum node. Go to (windows 10): Date and Time Settings --> additional date, time & regional settings --> set the time and date --> internet time tab --> change settings --> changed server to time-nw.nist.gov and then update
I tried to do a force time update and it still failed. I went ahead and rolled back to previous version. Thanks for the info solid, here is the command line to force sync.
w32tm /resync is to force a time resync but needs to be run in elevated CMD
Have the same issue, while my PC's time is perfectly synced automatically. It even reports this after I manually sync. Windows 10 and Myst 0.7.2.
This bug is still there in 0.7.3. My Windows 10 machine is 100% correct timesynced, but it will allways throws this error.
Still there in 0.7.4. Already deleted the blockchain, no change.
@woftor could you kindly give me the output of this commandline command?
reg query HKLM\SYSTEM\CurrentControlSet\Services\W32Time
For those interested in a long and technical explanation I will try to give you some background on this issue.
Time-sychronisation is important as the underlaying network protocol devp2p depends on a shared timebase for its correct functionality.
NTP (Network Time Protocol) is the mean by which Operation Systems can synchronize their time to the one of some (public) NTP server.
Sometime NTP is disabled for some reason or its configuration broken thus the ethereum-client (geth as default) will connect and immidiately drop its peers thus not synchronize the blockchain.
To give some feedback to the often clueless user Mist leverages the node module os-timesync in its main.js-file.
On line 236 it will check for the enabled NTP functionality and will show that error-dialog if the check fails:
timesync.checkEnabled(function (err, enabled) {
if(!enabled) {
dialog.showMessageBox({
type: "warning",
buttons: ['OK'],
message: global.i18n.t('mist.errors.timeSync.title'),
}, function(){
});
}
});
This will evoke the following routine on windows OS:
function checkWindows(cb) {
var args = ["query", "HKLM\\SYSTEM\\CurrentControlSet\\Services\\W32Time", "/v", "Start"];
childProcess.execFile("reg", args, function (err, stdout) {
cb(err, /REG_DWORD\s+0x3/.test(stdout));
});
}
which checks the output of the (commandline) command:
reg query HKLM\SYSTEM\CurrentControlSet\Services\W32Time
If NTP is enabled this will output among others:
REG_DWORD 0x3
if it is deactivated:
REG_DWORD 0x4
This works on windows 7 - I haven't tested it on windows 10.
This basically means there could be two reasons for a false error:
- this dialog could still falsely appear because the synchronization will take time to happen (a reboot could be appropiate for this change to reflect.)
- that check-command could not be working on some OS-versions and needs an adjustment
@fjl maybe some improvements on you package are necessary? https://www.npmjs.com/package/os-timesync
@luclu
@woftor could you kindly give me the output of this commandline command? reg query HKLM\SYSTEM\CurrentControlSet\Services\W32Time
This is on Windows 10 with timesync ENABLED:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time
Start REG_DWORD 0x2
DisplayName REG_SZ Windows Time
ErrorControl REG_DWORD 0x1
ImagePath REG_EXPAND_SZ %SystemRoot%\system32\svchost.exe -k LocalService
Type REG_DWORD 0x20
Description REG_SZ @%SystemRoot%\system32\w32time.dll,-201
ObjectName REG_SZ NT AUTHORITY\LocalService
ServiceSidType REG_DWORD 0x1
RequiredPrivileges REG_MULTI_SZ SeAuditPrivilege\0SeChangeNotifyPrivilege\0SeCreateGlobalPrivilege\0SeSystemTimePrivilege
FailureActions REG_BINARY 80510100000000000000000003000000140000000100000060EA000001000000C0D401000000000000000000
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\SecureTimeLimits
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Security
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TriggerInfo
This is with timesync DISABLED:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time
Start REG_DWORD 0x4
DisplayName REG_SZ Windows Time
ErrorControl REG_DWORD 0x1
ImagePath REG_EXPAND_SZ %SystemRoot%\system32\svchost.exe -k LocalService
Type REG_DWORD 0x20
Description REG_SZ @%SystemRoot%\system32\w32time.dll,-201
ObjectName REG_SZ NT AUTHORITY\LocalService
ServiceSidType REG_DWORD 0x1
RequiredPrivileges REG_MULTI_SZ SeAuditPrivilege\0SeChangeNotifyPrivilege\0SeCreateGlobalPrivilege\0SeSystemTimePrivilege
FailureActions REG_BINARY 80510100000000000000000003000000140000000100000060EA000001000000C0D401000000000000000000
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\SecureTimeLimits
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Security
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TriggerInfo
And now the weirdest thing. Because I swiched timesync off and on: The wallet is now doing as expected!! When I check the register again:
Start REG_DWORD 0x3!
I only swiched it off and on again. Now it works like a charm...
We can make it check for 0x2 too. The time sync check is best-effort anyway.
@fjl another occurance of Start REG_DWORD 0x2 on win 10: https://github.com/ethereum/mist/issues/466
I will add the check for 0x2 in os-timesync. Will also fix the other linux issue there and release a new version.
We just released version 0.7.5 which contains an updated version of os-timesync. https://github.com/ethereum/mist/releases/tag/0.7.5 Please give me a small ping-back if you still encounter any issues in this regard.
The issue is not solved (or some new bug has been introduced). Here is my output of
reg query HKLM\SYSTEM\CurrentControlSet\Services\W32Time (as requested):
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time
Start REG_DWORD 0x2
DisplayName REG_SZ Windows-Zeitgeber
ErrorControl REG_DWORD 0x1
ImagePath REG_EXPAND_SZ %SystemRoot%\system32\svchost.exe -k LocalService
Type REG_DWORD 0x20
Description REG_SZ @%SystemRoot%\system32\w32time.dll,-201
ObjectName REG_SZ NT AUTHORITY\LocalService
ServiceSidType REG_DWORD 0x1
RequiredPrivileges REG_MULTI_SZ SeAuditPrivilege\0SeChangeNotifyPrivilege\0SeCreateGlobalPrivilege\0SeSystemTimePrivilege
FailureActions REG_BINARY 80510100000000000000000003000000140000000100000060EA000001000000C0D401000000000000000000
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\SecureTimeLimits
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Security
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TriggerInfo
I have explicitly checked and repeatedly synced clocks. They have a correct time. Either the clock you use is off or there is just a bug.
BTW: The displayed error message no longer contains the lines with "Your time" and "Real time".
@alexvandesande could you please check if os-timesync 1.0.6 got bundled or if it is still on 1.0.5.