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

Error: Header Rejected, too far in the future #15

Closed
ImmaZoni opened this issue Sep 14, 2021 · 5 comments
Closed

Error: Header Rejected, too far in the future #15

ImmaZoni opened this issue Sep 14, 2021 · 5 comments
Labels
bug Something isn't working

Comments

@ImmaZoni
Copy link
Contributor

Error Code

💔 Verification failed for block 0xf514f794c67003ed3ca47f8d3dbb9056b1aefc6de8b1a50a761048f39a5dd09d received from peer: 12D3KooWPEynXbQeuGwai76xheGav44cCs3n4cpMpCP94g7my1wT, "Header 0xf514f794c67003ed3ca47f8d3dbb9056b1aefc6de8b1a50a761048f39a5dd09d rejected: too far in the future"

Description

The user contacted me regarding their node crashing due to a power outage, when they reconnected there were no peers connected and their chain was behind the longest known chain.

As time progressed, in some cases the node would catch up; connect to 4 peers and work for about 1 min then fall back behind and drop all the peers again.

Expected Behavior

The node should catch up to the chain, and keep caught up.
furthermore, the node should not lose the peer connection.

Actual Behavior

The node would try to sync with other nodes and catch up for a moment, then fall far behind again.

Attempted Troubleshooting

We rebooted the machine, attempted to reconnect the node, and the issue persisted.
From here we purged the chain and attempted sync from Genysis. initially, it was syncing very effectively, but once it got to the longest chain the issue arose again.

General farmer usage

Steps to Reproduce

*This may be hard to replicate.

  1. Run node & farmer as per normal workflow.
  2. Unexpectedly power off the machine.
  3. Boot machine & attempt to restart node & farmer
  4. see if the issue arises.

Your Environment

  • Version used: Spartan Testnet
  • Operating System and version: Windows 10
  • Desktop, Laptop, or Server: Lenovo Legion
@ImmaZoni ImmaZoni added the bug Something isn't working label Sep 14, 2021
@nazar-pc
Copy link
Member

nazar-pc commented Sep 14, 2021

If after the purge issue still persists it might be an issue with system time. Is their time synced and up to date? If it slides significantly in either direction it might result in this.

@ImmaZoni
Copy link
Contributor Author

If after the purge issue still persists it might be an issue with system time. Is their time up synced and to date? If it slides significantly in either direction it might result in this.

Gotcha, I will test with user and verify clock is properly synced

@nazar-pc
Copy link
Member

I have seen this error about some blocks from a specific user yesterday. I guess it is inevitable in production network, we just need to make sure it is caused by time de-sync and not bug in our code.

@ImmaZoni
Copy link
Contributor Author

Would it maybe be worth it to have the desktop farmer, and the CLI do a time sync check and just prompt the user if they are out of sync? Obviously, it's kind of out of scope to have the core protocol do this check, but we could integrate it with some supporting applications to make it easy for users to self resolve this issue, let me know your thoughts.

@nazar-pc
Copy link
Member

I'm not aware of anyone else doing that, but I guess it might be useful 🤷‍♂️

Do you think we can close this for now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants