-
Notifications
You must be signed in to change notification settings - Fork 141
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
How to fix: vorta doesn't open after upgrade; either silently fails or error about peewee.py, uncaught exception, database disk image is malformed #1895
Comments
This error doesn't look normal:
|
I'm experiencing the same error. Details:
I could fix it by copying the backup:
|
@m3nu well idk what any of it means tbh. agree it isn't normal because vorta doesn't start in the circumstance. but it's fixed! I checked the log and it all looks fine since i restored backup as described. @CheariX the output is totally different though? not that i can make much meaning out of it. copying your command on the old db file: sqlite3 ~/.local/share/Vorta/settings.db-original "PRAGMA integrity_check;"
Error: stepping, database disk image is malformed (11) and again on the current, functional file: sqlite3 ~/.local/share/Vorta/settings.db "PRAGMA integrity_check;"
ok now that I think about backing up my backup utility... [Edit: removed to discussions due to being a ponderous digression from topic #1897] |
Chiming in to say I also experienced this as well! Let me know if I can share anything to help track down the issue |
A new feature that takes a DB backup before upgrades was merged recently. That's all I can think of. I never saw any damaged SQLite file personally in any app. |
This is the PR in question. I just copies the file, but won't touch the original. Not sure this is to blame. #1848 |
Reading OP it seems more like that this PR actually allowed for an easy recovery after corrupting th db. Since the backup of database (schema) version 20 works. One of the following migrations might have caused the problem: vorta/src/vorta/store/migrations.py Lines 231 to 251 in d8cce25
However after restoring the backup the migrations should be run again and obviously the issue didn't persist. This is a mystery I don't have an explanation for. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue was closed because it has been stalled for 7 days with no activity. |
Description
Looks like Vorta was upgraded this weekend from the AUR:
vorta 0.8.12-3 -> 0.9.1-1
according to my record. After this, Vorta does not open but just throws an error.Am pretty sure this is duplicate of #1851, #1364 and others. Am mainly posting to share clear instructions about how to solve to assist other users. Was confusing to piece it together from various issues.
How I fixed this
Hopefully someone who understands more of what is going on can verify if this is good general advice.
It never hurts to make a copy of everything first in case you need to walk back.
~/.var/app/com.borgbase.Vorta/data/Vorta/
~/.local/share/Vorta
(as does my distro, manjaro)settings.db
settings_v20_2024-01-13-195827.db
(it is a backup of the local config database). Rename it tosettings.db
.Result: Now I can start Vorta with no loss of settings. Working as previously. :) Did not have to reconfigure everything as was suggested in some of the threads.
Reproduction
OS
manjaro linux 66.10-1 + xfce 4.18
Version of Vorta
Vorta 0.9.1 (aur/vorta 0.9.1-2)
What did you install Vorta with?
Other
Version of Borg
Borg 1.2.7 (extra/borg 1.2.7-1)
Logs
The text was updated successfully, but these errors were encountered: