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

Interrupting "opera check evm" breaks Carmen database #74

Open
thaarok opened this issue Dec 11, 2023 · 0 comments
Open

Interrupting "opera check evm" breaks Carmen database #74

thaarok opened this issue Dec 11, 2023 · 0 comments

Comments

@thaarok
Copy link
Collaborator

thaarok commented Dec 11, 2023

Interrupting "opera check evm" tool in the middle of verifyLastState function (where the state db is opened) breaks the archive state, as described in Fantom-foundation/Carmen#679

$ opera check evm --datadir /var/opera/mainnet-carmen-archive-37M-experiment/ --statedb.impl carmen-s5 --archive.impl s5
WARN [12-10|21:19:40.690] Please add '--cache 64358' flag to allocate more cache for Opera. Total memory is 128717 MB. 
INFO [12-10|21:19:40.690] Maximum peer count                       total=50
INFO [12-10|21:19:40.690] Smartcard socket not found, disabling    err="stat /run/pcscd/pcscd.comm: no such file or directory"
archive writing thread started
archive flush done
^C
$ opera check evm --datadir /var/opera/mainnet-carmen-archive-37M-experiment/ --statedb.impl carmen-s5 --archive.impl s5
WARN [12-10|21:19:55.569] Please add '--cache 64358' flag to allocate more cache for Opera. Total memory is 128717 MB. 
INFO [12-10|21:19:55.569] Maximum peer count                       total=50
INFO [12-10|21:19:55.569] Smartcard socket not found, disabling    err="stat /run/pcscd/pcscd.comm: no such file or directory"
CRIT [12-10|21:19:57.600] Verification of the Fantom World State failed err="verification of the last block failed: failed to open carmen live state in /var/opera/mainnet-carmen-archive-37M-experiment/carmen: unexpected EOF"

We should make sure the Carmen database is closed correctly even on Ctrl+C during any phase of the verification.

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