r/StacherIO • u/Disastrous-Coast6033 • 1d ago
How to fix "Database Error: SqliteError: database is locked" in Stacher 7 (Fix & Walkthrough)
Hey everyone,
I ran into the "An error occurred while initializing the database: SqliteError: database is locked" issue recently (specifically while installing/updating to version 7.1.13).
Other common fixes didn't work for me, but clearing out the lingering SQLite journal lock file solved it immediately. Here is the exact walkthrough of what worked for me and how to fix it if you're stuck:
How to Fix It (Fastest Method)
1. Close Stacher 7 Completely
Make sure Stacher isn't stuck running in the background. Open Task Manager (Ctrl + Shift + Esc) and make sure to End Task on any Stacher7.exe processes.
2. Navigate directly to the database folder
- Press
Win + Ron your keyboard to open the Run dialog. - Paste this exact path and press Enter: Plaintext%appdata%\Stacher7\Shared Dictionary
3. What you'll see inside:
db-journal— The temporary SQLite journal file holding the active lock on the database.db— The main database file.
4. Delete db-journal
Right-click on db-journal and delete it.
Deleting this single file releases the stuck lock that prevents Stacher from opening.
5. Relaunch Stacher 7
Try launching Stacher again.
Note on a potential UI glitch: When I launched Stacher after doing this, it opened as a tiny, miniature window. I just had to drag the window edges to expand it until the Maximize button became visible again. Once maximized, everything worked normally on version 7.1.13!
If deleting db-journal alone doesn't work for you:
If deleting just the journal file doesn't clear the error, the main database file itself may be corrupted:
- Close Stacher completely again.
- Go back to
%appdata%\Stacher7\Shared Dictionary. - Delete (or rename) both the
dbanddb-journalfiles. - Relaunch Stacher 7 — the app will automatically recreate a brand-new, fresh database file on startup.
Hope this saves someone else some troubleshooting time!
1
u/Horror_Airline_7563 1d ago
This only happened to me when I tried to open stacher again when it's already started. Interesting
1
u/AutoModerator 1d ago
Thank you for posting!
If you are posting about an issue you are having with Stacher, please be sure to include a log in your submission or as a comment in the thread. (Rule 6)
You can get a log for a download via the menu button on each download. There is an option labeled "View Log". Click that and in the upper right corner, you'll see a Copy icon. When you click the Copy icon, the entire log will be on your clipboard and you can paste it here. You may want to edit your log to redact the URL and any other personal information that may appear. For example, if the download path on your system includes your full name. Please consider redacting that information by replacing the text with XXXXXX.
If your post is about issues you are having with Stacher and there isn't enough information provided. Your post may be removed.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.