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

Better error message when node not synced #48

Open
WhoSoup opened this issue Oct 6, 2019 · 0 comments
Open

Better error message when node not synced #48

WhoSoup opened this issue Oct 6, 2019 · 0 comments

Comments

@WhoSoup
Copy link
Contributor

WhoSoup commented Oct 6, 2019

My local mainnet node's first pass was 100% but second pass was lagging behind 3 blocks (I started it recently), which resulted in the following set of messages:

time="2019-10-06T15:29:22+02:00" level=debug msg=synced height=213120 took=80.0045ms
time="2019-10-06T15:29:22+02:00" level=debug msg=synced height=213121 took=104.006ms
time="2019-10-06T15:29:22+02:00" level=debug msg=synced height=213122 took=86.0049ms
time="2019-10-06T15:29:22+02:00" level=debug msg=synced height=213123 took=106.0061ms
time="2019-10-06T15:29:22+02:00" level=error msg="failed to sync height" error="jsonrpc2.Error{Code:-32008, Message:"Object not found"}" height=213124
time="2019-10-06T15:29:27+02:00" level=error msg="failed to sync height" error="jsonrpc2.Error{Code:-32008, Message:"Object not found"}" height=213124
time="2019-10-06T15:29:32+02:00" level=error msg="failed to sync height" error="jsonrpc2.Error{Code:-32008, Message:"Object not found"}" height=213124
time="2019-10-06T15:29:37+02:00" level=error msg="failed to sync height" error="jsonrpc2.Error{Code:-32008, Message:"Object not found"}" height=213124
time="2019-10-06T15:29:42+02:00" level=error msg="failed to sync height" error="jsonrpc2.Error{Code:-32008, Message:"Object not found"}" height=213124
time="2019-10-06T15:29:48+02:00" level=error msg="failed to sync height" error="jsonrpc2.Error{Code:-32008, Message:"Object not found"}" height=213124
time="2019-10-06T15:29:53+02:00" level=error msg="failed to sync height" error="jsonrpc2.Error{Code:-32008, Message:"Object not found"}" height=213124
time="2019-10-06T15:29:58+02:00" level=error msg="failed to sync height" error="jsonrpc2.Error{Code:-32008, Message:"Object not found"}" height=213124
time="2019-10-06T15:30:03+02:00" level=error msg="failed to sync height" error="jsonrpc2.Error{Code:-32008, Message:"Object not found"}" height=213124
time="2019-10-06T15:30:08+02:00" level=error msg="failed to sync height" error="jsonrpc2.Error{Code:-32008, Message:"Object not found"}" height=213124
time="2019-10-06T15:30:13+02:00" level=error msg="failed to sync height" error="jsonrpc2.Error{Code:-32008, Message:"Object not found"}" height=213124
time="2019-10-06T15:30:18+02:00" level=error msg="failed to sync height" error="jsonrpc2.Error{Code:-32008, Message:"Object not found"}" height=213124
time="2019-10-06T15:30:23+02:00" level=error msg="failed to sync height" error="jsonrpc2.Error{Code:-32008, Message:"Object not found"}" height=213124
time="2019-10-06T15:30:28+02:00" level=error msg="failed to sync height" error="jsonrpc2.Error{Code:-32008, Message:"Object not found"}" height=213124
time="2019-10-06T15:30:33+02:00" level=error msg="failed to sync height" error="jsonrpc2.Error{Code:-32008, Message:"Object not found"}" height=213124
time="2019-10-06T15:30:38+02:00" level=error msg="failed to sync height" error="jsonrpc2.Error{Code:-32008, Message:"Object not found"}" height=213124
time="2019-10-06T15:30:43+02:00" level=error msg="failed to sync height" error="jsonrpc2.Error{Code:-32008, Message:"Object not found"}" height=213124
time="2019-10-06T15:30:48+02:00" level=error msg="failed to sync height" error="jsonrpc2.Error{Code:-32008, Message:"Object not found"}" height=213124
time="2019-10-06T15:30:53+02:00" level=error msg="failed to sync height" error="jsonrpc2.Error{Code:-32008, Message:"Object not found"}" height=213124
time="2019-10-06T15:30:58+02:00" level=error msg="failed to sync height" error="jsonrpc2.Error{Code:-32008, Message:"Object not found"}" height=213124
time="2019-10-06T15:31:03+02:00" level=error msg="failed to sync height" error="jsonrpc2.Error{Code:-32008, Message:"Object not found"}" height=213124
time="2019-10-06T15:31:08+02:00" level=error msg="failed to sync height" error="jsonrpc2.Error{Code:-32008, Message:"Object not found"}" height=213124
time="2019-10-06T15:31:13+02:00" level=error msg="failed to sync height" error="jsonrpc2.Error{Code:-32008, Message:"Object not found"}" height=213124
time="2019-10-06T15:31:18+02:00" level=error msg="failed to sync height" error="jsonrpc2.Error{Code:-32008, Message:"Object not found"}" height=213124
time="2019-10-06T15:31:23+02:00" level=error msg="failed to sync height" error="jsonrpc2.Error{Code:-32008, Message:"Object not found"}" height=213124
time="2019-10-06T15:31:28+02:00" level=error msg="failed to sync height" error="jsonrpc2.Error{Code:-32008, Message:"Object not found"}" height=213124
time="2019-10-06T15:31:33+02:00" level=error msg="failed to sync height" error="jsonrpc2.Error{Code:-32008, Message:"Object not found"}" height=213124
time="2019-10-06T15:31:38+02:00" level=error msg="failed to sync height" error="jsonrpc2.Error{Code:-32008, Message:"Object not found"}" height=213124
time="2019-10-06T15:31:43+02:00" level=error msg="failed to sync height" error="jsonrpc2.Error{Code:-32008, Message:"Object not found"}" height=213124
time="2019-10-06T15:31:48+02:00" level=debug msg=synced height=213124 took=68.0039ms
time="2019-10-06T15:31:48+02:00" level=debug msg=synced height=213125 took=91.0052ms
time="2019-10-06T15:31:58+02:00" level=debug msg=synced height=213126 took=81.0047ms

If the height is available but the data is not, we should print out a better message. something like "data not yet downloaded on node", OR we could be using entryblockheight instead of directoryblockheight

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

No branches or pull requests

1 participant