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

OperationalError: unable to open database file #551

Open
sentry-io bot opened this issue Apr 13, 2023 · 2 comments
Open

OperationalError: unable to open database file #551

sentry-io bot opened this issue Apr 13, 2023 · 2 comments

Comments

@sentry-io
Copy link

sentry-io bot commented Apr 13, 2023

Sentry Issue: ANKIHUB_ADDON-MH

OperationalError: unable to open database file
(8 additional frame(s) were not displayed)
...
  File "1322529746\gui\db_check\ah_db_check.py", line 15, in check_ankihub_db
    ah_dids_missing_from_config = decks_missing_from_config()
  File "1322529746\gui\db_check\ah_db_check.py", line 91, in decks_missing_from_config
    ah_dids_from_ankihub_db = ankihub_db.ankihub_deck_ids()
  File "1322529746\db\db.py", line 440, in ankihub_deck_ids
    for did in self.list("SELECT DISTINCT ankihub_deck_id FROM notes")
  File "1322529746\db\db.py", line 87, in list
    return self.connection().list(*args, **kwargs)
  File "1322529746\db\db.py", line 146, in connection
    return DBConnection(conn=sqlite3.connect(ankihub_db.database_path))
@RisingOrange
Copy link
Collaborator

It seems like many of these errors are caused by people deleting the ankihub add-on and continuing to use Anki without restarting.
You can see that by searching for deleteAddon in the breadcrumbs of the sentry events.

@abdnh
Copy link
Contributor

abdnh commented Sep 2, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants