Skip to content
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

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 this issue Nov 24, 2024 · 1 comment
Labels
type:support A question about using vorta

Comments

@wigiwee
Copy link

wigiwee commented Nov 24, 2024

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: Arch Linux
  • Vorta version: 0.10.0
  • Installed from: Pacman v7.0
  • Borg version: 1.4.0

Logs

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

@wigiwee wigiwee changed the title Vorta quit unexpectedly 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 Nov 24, 2024
@m3nu
Copy link
Contributor

m3nu commented Nov 24, 2024

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.

@m3nu m3nu added the type:support A question about using vorta label Nov 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:support A question about using vorta
Projects
None yet
Development

No branches or pull requests

2 participants