-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[Bug] Blockchain db overwritten when -wal and -shm files are present. Verified on windows with chia v2.1.1 #16631
Comments
my understanding is that the I'm not sure what we can do about this. Perhaps we can include empty |
I know in the past (likely prior to 1.8.2 if memory serves) the Including empty files in the snapshot might work but I was thinking that this likely identifies an issue with how those files are being handled during shutdown and startup; however, I am not proficient enough with sqlite to know where to start digging. |
Arvid also suggests including a 0 length shm and wal file in the interim. We'll need time to address the fix. Brandt can u see if there was a regression in the Mac behavior and when? |
Hey, I have been testing but have yet to reproduce this issue on Mac (unable to test on linux for another week or so). To help users with this, I have submitted a pr to our docs faq that adds a note about the wal and shm files (should have that merged within the hour): |
This issue has not been updated in 14 days and is now flagged as stale. If this issue is still affecting you and in need of further review, please comment on it with an update to keep it from auto closing in 7 days. |
This issue was automatically closed because it has been flagged as stale, and subsequently passed 7 days with no further activity from the submitter or watchers. |
What happened?
When starting chia on a windows client without removing the -shm and -wal files, the blockchain db is overwritten to the state that was present when the -shm and -wal files were created. In addition the chia client will remain on the Starting Services screen when this occurs.
This effects all windows users who need to upgrade their db for version 2.1+ and have already updated their config file.
Workaround - windows users will need to manually remove the -shm and -wal files when using the blockchain db snapshot.
Steps to reproduce (confirmed bug on Windows 11, confirmed this bug is NOT present on Mac Ventura 13.4.1):
Version
2.1.1
What platform are you using?
Windows
What ui mode are you using?
GUI
Relevant log output
No response
The text was updated successfully, but these errors were encountered: