borgbase / vorta

Desktop Backup Client for Borg Backup
https://vorta.borgbase.com
GNU General Public License v3.0
2.02k stars 134 forks source link

File "/usr/lib/python3.12/site-packages/peewee.py", line 3291, in execute_sql cursor.execute(sql, params or ()) sqlite3.DatabaseError: file is not a database #2149

Open wigiwee opened 1 day ago

wigiwee commented 1 day ago

Description

I've been using vorta for a while, I haven't opened or used it for a while, i have it configured for few repositories, now when i opened it, it threw this pop up, couldn't do anything, can't even create new repository. I was/wasn't able to reproduce the issue.

Steps to reproduce the behavior: if i click any button on the app, i get crash report pop up, can't use it anymore

Environment

OS: Linux Release: 6.6.62-1-lts Version: #1 SMP PREEMPT_DYNAMIC Sun, 17 Nov 2024 16:35:16 +0000 Date and Time: 2024-11-24 20:45:42 Borg Version: 1.4.0 Vorta Version: 0.10.0 Traceback (most recent call last): File "/usr/lib/python3.12/site-packages/peewee.py", line 3291, in execute_sql cursor.execute(sql, params or ()) sqlite3.DatabaseError: file is not a database

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/lib/python3.12/site-packages/vorta/application.py", line 112, in create_backup_action profile = BackupProfileModel.get(id=profile_id) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/peewee.py", line 6805, in get return sq.get() ^^^^^^^^ File "/usr/lib/python3.12/site-packages/peewee.py", line 7253, in get return clone.execute(database)[0] ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/peewee.py", line 2011, in inner return method(self, database, *args, *kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/peewee.py", line 2082, in execute return self._execute(database) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/peewee.py", line 2255, in _execute cursor = database.execute(self) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/peewee.py", line 3299, in execute return self.execute_sql(sql, params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/peewee.py", line 3289, in execute_sql with __exception_wrapper: File "/usr/lib/python3.12/site-packages/peewee.py", line 3059, in exit__ reraise(new_type, new_type(exc_value, exc_args), traceback) File "/usr/lib/python3.12/site-packages/peewee.py", line 192, in reraise raise value.with_traceback(tb) File "/usr/lib/python3.12/site-packages/peewee.py", line 3291, in execute_sql cursor.execute(sql, params or ()) peewee.DatabaseError: file is not a database

m3nu commented 1 day ago

sqlite3.DatabaseError: file is not a database

This would point to something bad happening to your SQLite settings database. You can find it in ~/.config/Vorta/settings.db or similar on Linux.