You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a new version of Tribler copies data files from a folder for a previous version (like, "7.11" -> "7.12"), the process of copying is not atomic. If Tribler is terminated during that process, the database file can be in a half-copied state.
If Tribler is launched after it was terminated during the file copying, the Tribler sees that the new state folder is already present and tries to use it. That results in the following error:
ErrorHandler.gui_error(): Traceback (mostrecentcalllast):
File"C:\dev\tribler\src\tribler\gui\upgrade_manager.py", line34, inrunself._upgrade_state_dir(
File"C:\dev\tribler\src\tribler\run_tribler_upgrader.py", line40, inupgrade_state_dirupgrader.run()
File"C:\dev\tribler\src\tribler\core\upgrade\upgrade.py", line95, inrunself.upgrade_pony_db_8to10()
File"C:\dev\tribler\src\tribler\core\upgrade\upgrade.py", line307, inupgrade_pony_db_8to10ifnotdatabase_path.exists() orget_db_version(database_path) >=10:
File"C:\dev\tribler\src\tribler\core\upgrade\db8_to_db10.py", line247, inget_db_versioncursor.execute('SELECT value FROM MiscData WHERE name == "db_version"')
sqlite3.DatabaseError: databasediskimageismalformed
To prevent this type of error, the process of copying files to a new state folder should be atomic - files should be copied to a folder with a temporal name, and then the folder should be renamed to the proper name after all files are copied successfully.
The text was updated successfully, but these errors were encountered:
When a new version of Tribler copies data files from a folder for a previous version (like, "7.11" -> "7.12"), the process of copying is not atomic. If Tribler is terminated during that process, the database file can be in a half-copied state.
If Tribler is launched after it was terminated during the file copying, the Tribler sees that the new state folder is already present and tries to use it. That results in the following error:
To prevent this type of error, the process of copying files to a new state folder should be atomic - files should be copied to a folder with a temporal name, and then the folder should be renamed to the proper name after all files are copied successfully.
The text was updated successfully, but these errors were encountered: