-
Notifications
You must be signed in to change notification settings - Fork 990
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
Panic when connecting to peer #2388
Comments
I had this also. Maybe good to know workaround is to delete the chaindata. |
This would occur if the chain had a database (lmdb) error when fetching its current head as the node is connecting to a new peer. I can't reproduce this easily, so a few questions:
|
I guess we hit the limit of LMDB readers, default is 126 seems to be low if the node has 150+ peers. |
It might be linked to the number of peers, my node has 164 at the moment ( |
|
TIL LMDB ties a reader to a thread by default, so each peer consumes one reader for its lifetime. It's strange we can get more than ~ 120 peers, I've disabled this behavior, testing. Another option is to increase max number of readers, perhaps we need both. |
This shows up in logs when running 8fc489a, it doesn't panic the whole server, only one thread apparently.
The text was updated successfully, but these errors were encountered: