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

Node can end up with an empty discovery table #1540

Open
oneeman opened this issue May 10, 2021 · 0 comments
Open

Node can end up with an empty discovery table #1540

oneeman opened this issue May 10, 2021 · 0 comments

Comments

@oneeman
Copy link
Contributor

oneeman commented May 10, 2021

Expected Behavior

A node's discovery table should include the bootnode when it starts up, and should not subsequently become empty.

Current Behavior

We have seen cases where a node fails to connect to peers and its discovery table (inspected using admin.discoverTableInfo) was empty. In particular, we saw this on a private testnet when the bootnode passed in using the --bootnode flag had an incorrect enode (did not match the enode actually being used on the bootnode).

A validator also reported being unable to connect to peers on startup, and the logs showed messages such as:

INFO [05-08|17:16:11.344] Looking for peers                        peercount=0 tried=0 static=0

This sounds like it may be due to this same problem, though we do not know for sure whether the discovery table was empty. The validator reports that restarting the node did not fix it, but removing the docker container and creating a new one did

This has happened in the past, but should have been fixed by #1194. However, since this is still being seen sometimes in v1.3.x, it seems there is still a way for this problem to happen.

Steps to Reproduce Behavior

No known repro steps yet.

System information

Seen with v1.3.x

@carterqw2 carterqw2 added triage Issue needs triaging and removed blockchain labels Feb 9, 2023
@carterqw2 carterqw2 added triage Issue needs triaging and removed triage Issue needs triaging labels Feb 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants