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

Failed to find one of the right cookies. Core dumped #2110

Open
hashmap opened this issue Dec 9, 2018 · 16 comments
Open

Failed to find one of the right cookies. Core dumped #2110

hashmap opened this issue Dec 9, 2018 · 16 comments
Labels

Comments

@hashmap
Copy link
Contributor

hashmap commented Dec 9, 2018

Grin was running when my server was rebooted. After that any attempt to start grin failed with the message above. Removal of chain_data helped.

@hashmap
Copy link
Contributor Author

hashmap commented Dec 11, 2018

I found it's croaring https://github.com/RoaringBitmap/CRoaring/blob/master/src/roaring_array.c#L767

@antiochp
Copy link
Member

We corrupted one of the pmmr_leaf.bin or pmmr_prun.bin files somehow?
We were writing to one of those when the server rebooted?

Oof.

@sesam
Copy link
Contributor

sesam commented Dec 11, 2018 via email

@antiochp
Copy link
Member

My fix won't help with a server reboot, only on "clean" shutdown via the grin node itself.

@sesam
Copy link
Contributor

sesam commented Dec 15, 2018

ok.
is core dumping risking spilling secrets to disk?
should we catch this, show a warning, then either shut-down gracefully, or somehow retry?

@hashmap
Copy link
Contributor Author

hashmap commented Dec 16, 2018

Saw another report in gitter. I predict it may be a problem when we get enough nodes.

@lehnberg lehnberg added the bug label Dec 18, 2018
@ignopeverell
Copy link
Contributor

Good prediction. One issue I think is that on other storages (LMDB, MMRs), we have a way to get back to a previous snapshot (the chain head) so if a write didn't really work out we can easily find a workable checkpoint. It doesn't seem as easy with croaring but might not be too hard to add?

@antiochp
Copy link
Member

Just so there is no confusion here - there is zero persistence in the croaring library, all of this is on us, we literally just write the bytes to a file. I believe we use a temp file to make things reasonably atomic but we have not put a lot of thought into doing this really robustly.

@hashmap
Copy link
Contributor Author

hashmap commented Jan 31, 2019

Memory-mapped file could help, unfortunately it's not yet supported by croaring (but supported by java and go versions) RoaringBitmap/CRoaring#74

@TheJimmyH
Copy link

Was there ever a resolution to this? I just ran an Nvidia graphics driver update on my PC. Somewhere during the update, it crashed my Virtual Box machine, which was running my node. Now, I am unable to restart my node..

Is there a workaround to get this back up and running, or should I destroy this machine, make a new one, and import the old wallet?

@hashmap
Copy link
Contributor Author

hashmap commented Feb 4, 2019

@Jimmy24651 sure, the workaround is in the issue text, rm -rf ~/.grin/main/chain_data (replace main with floo for floonet)

@0xmichalis
Copy link
Contributor

@hashmap is this an issue anymore?

@hashmap
Copy link
Contributor Author

hashmap commented May 17, 2019

@Kargakis I think it's still an issue, a server could be stopped abruptly by power outage or the process be killed by kill -9 etc

@niahmiah
Copy link

Issue still exists on grin 2.0.0

@madmarks
Copy link

madmarks commented Sep 8, 2019

I have a node installed on my mining rig because of solo mining and after every third power outage I have to do rm -rf ~/.grin/main/chain_data and download the whole blockchain again. Very annoying bug.

@BLOCKCHAINSMOKER
Copy link

BLOCKCHAINSMOKER commented Jan 20, 2020

Issue still exists on grin 3.0. The power went out on my computer and I recieved the following error when I tried to restart grin 'I failed to find one of the right cookies. Found 3497651248
Segmentation fault (core dumped)' Is there a fix for this? I tried 'rm -rf ~/.grin/main/chain_data' and i still get the same error.

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

No branches or pull requests

10 participants