-
Notifications
You must be signed in to change notification settings - Fork 1
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
Error peewee.OperationalError: database is locked
on Flatpak profile
#18
Comments
Sorry to hear that. This has never occurred during testing, so I need some additional info to find the exact issue.
from firefox_bookmarks.connect import *
database = connect_to_places_db(criterion=ProfileCriterion.LARGEST) |
Thank you for your prompt reply! I must provide the full path where the Flatpak version is installed, cause it looks only in the default path
Unfortunately, with all the plugins disabled, the error persists. But I've managed to interact with the database via cli by setting the immutable flag. ❯ sqlite3 'file:/home/USER/.var/app/org.mozilla.firefox/.mozilla/firefox/PROFILE.default-release/places.sqlite?immutable=1' Perhaps it's possible to pass that flag here? If not, I'm already grateful for learning the search sql query from your examples. |
I think I can add a fallback to access the DB via file URI with the from firefox_bookmarks.connect import *
database = connect_to_places_db(look_under_path='/home/johndoe/.var/app/org.mozilla.firefox/.mozilla/firefox/johndoe.default-release') # substituting your username, of course I want to be sure that the issue is with the |
Yeah, with the suggested code it is the same. And I guess it is expected because vanilla cli sqlite3 results in the same database lock message at the first sql command. I can see that people workaround it by making a tmp copy of a database. |
Alright, I've reviewed the bug and decided on the following approach:
|
Sure, sounds nice. Since it works for you, but some people face my error, I guess it might be that some firefox packages are just compiled to use exclusive lock on db. Or maybe the underlying libraries play their role |
Hi! I get
peewee.OperationalError: database is locked
error if I try to access the database when my Firefox Flatpak is running. I use the following to connect to the databasefb.connect(look_under_path='/home/johndoe/.var/app/org.mozilla.firefox/.mozilla/firefox/johndoe.default-release')
. I don't think it's related to Flatpak, perhaps I'm missing something?The text was updated successfully, but these errors were encountered: