Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

read udp error in TimeSync #920

Open
Charleslee522 opened this issue Jan 31, 2019 · 6 comments
Open

read udp error in TimeSync #920

Charleslee522 opened this issue Jan 31, 2019 · 6 comments
Assignees
Labels
question Further information is requested

Comments

@Charleslee522
Copy link
Member

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

@Charleslee522 Charleslee522 added the bug Something isn't working label Jan 31, 2019
@Geod24
Copy link
Contributor

Geod24 commented Jan 31, 2019

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

@spikeekips
Copy link
Contributor

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.

@spikeekips spikeekips added question Further information is requested and removed bug Something isn't working labels Jan 31, 2019
@spikeekips spikeekips self-assigned this Jan 31, 2019
@Geod24
Copy link
Contributor

Geod24 commented Jan 31, 2019

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

@spikeekips
Copy link
Contributor

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

@Geod24
Copy link
Contributor

Geod24 commented Jan 31, 2019

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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants