-
Notifications
You must be signed in to change notification settings - Fork 1.6k
paritydb breaks on upgrade to v0.9.18 #5168
Comments
Yes it is software bug, the database version in metadata is being upgraded while it should not have, I am looking at it. |
Re-synching is safe. Also manually setting the db_version in metadata to 5 seems to fix the issue. (the fact that it upgrade to 6 is probably from a parsing error and metadata getting rewritten, setting manually the rewritten metadata to 5 on the rebuild metadatat work then). |
Ok, that's it, https://github.com/paritytech/substrate/blob/1bd5d786fda99d5a0c27c339226789ac047ea4ae/client/db/src/utils.rs#L279 should not be allowed. @tugytur , sorry for the bug. |
@cheme thanks! Can confirm that changing db_version to 5 fixes it. I like to sync from scratch every time there are any changes to the db. |
I confirm that changing the db version from 6 to 5 on metadata file has fixed the issue |
@cheme But we were assigned as a Para Validator twice and earned 0 points. Inbound and outbound request failures (timeout) increased from ~0 to couple thousands request per seconds. rpc call In the meantime I finished synching db_version 6. |
Thanks for the feedback. |
@cheme last update for tonight. After roughly 20 minutes of running Edit: Maybe I jumped to a conclusion here. After the second restart this did not happen again. I'll not switch to rocksdb for now and hope we have more data by the morning. Edit2: It happened again. I've switched to rocksdb. I've kept the paritydb in case you would like to have a look at it. |
@tugytur , if you have log available, it can be interesting (even if I have little hope to see something, I am currently running node without much logged). |
I forgot, @tugytur what are your launch parameters? |
@cheme Logging is just the default enabled and there is just the default log messages. Nothing indicating an issue. Launch parameters:
|
Thanks a lot, I also got into some issue running on our simulation test net. Edit: issue observed with simnet are actually not that clear (need to run again). |
I have the same issue but on parity
There is no Any ideas how to fix this without resync? @cheme |
About this issue:
@gituser in your case this should be a different issue (using rocksdb), the error indicates that some state value (the runtime code) cannot be accessed. My first idea would be that the rocksdb got corrupted somehow, I don't have ideas of how to fix this without resync. |
@cheme |
Sure totally make sense, I am not saying this should be ignored. This is quite valuable information. |
@alko89 I ended up re-syncing from scratch. I'm on AMD though. |
paritytech/parity-db#68 fix a deadlock that may explain this issue. |
@cheme Assuming things ar all good now? Please let me know if not! |
Both our
paritydb-experimental
sync nodes for Kusama and Polkadot failed on the startup with the release v0.9.18.RUST_BACKTRACE=full
on both gave the same output.both on Kusama and Polkadot the DBs were synced from scratch with the release 0.9.17-rc4. Same for the rocksdb servers, but those had no issues updating. Sync servers have the following relevant arguments
--unsafe-pruning \ --pruning 1000 \
The bricked DBs are available here:
SHA256 URL:
S3 URI:
HTTP URL:
The working DB that breaks during upgrade are the ones currently available at https://parasnaps.io . These are the exact DBs that broke during upgrade from ~12hours ago.
The text was updated successfully, but these errors were encountered: