bosnet / sebak

SEBAK, the next BOScoin Blockchain
https://devteam.blockchainos.org
GNU General Public License v3.0
44 stars 15 forks source link

read udp error in TimeSync #920

Open Charleslee522 opened 5 years ago

Charleslee522 commented 5 years ago
t=2019-01-29T01:50:41+0000 lvl=crit msg="failed to start time sync" module=main error="read udp 10.142.4.44:43217->203.248.240.140:123: i/o timeout" caller=run.go:721
t=2019-01-29T01:50:41+0000 lvl=eror msg="Node exited with error" module=main error="read udp 10.142.4.44:43217->203.248.240.140:123: i/o timeout" caller=run.go:165

https://circleci.com/gh/bosnet/sebak/18977

Geod24 commented 5 years ago

That's weird... The line "time-sync-command=" make it look like it shouldn't try to time sync...

spikeekips commented 5 years ago

This error was not caused by sync command, I think timeout occurred to connect time server. By default, time.bora.net timeserver we use. We can set the timeserver by SEBAK_NTP_SERVER env or --ntp option.

Geod24 commented 5 years ago

Why would sebak try to connect to the time server if sync is not configured ?

spikeekips commented 5 years ago

@Geod24 At the start time, it tries to check the system time is correct or not using timeserver.

Geod24 commented 5 years ago

Sounds like a terrible thing to do. Either leave it to the system, or checks with the other nodes, not a random 3rd party.

spikeekips commented 5 years ago

@Geod24 only without time command is empty, it does not sync. Time server has default value and check time.