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

[SQLITE_BUSY] The database file is locked error since signal-cli 0.13.0 #1483

Open
Lukom opened this issue Mar 2, 2024 · 0 comments
Open

Comments

@Lukom
Copy link

Lukom commented Mar 2, 2024

I've started receiving [SQLITE_BUSY] The database file is locked error recently after update to signal-cli 0.13.0 and it fails on 0.13.1 as well. To reproduce just run this:

JAVA_HOME=/usr/local/Cellar/openjdk/21.0.2/libexec/openjdk.jdk/Contents/Home /Users/username/Downloads/signal-cli-0.13.1/bin/signal-cli -a +380631234567 --output json daemon --socket

and after couple of minutes it happens (there should be also some messages flying around for this to happen). It shows such error in output:

java.lang.RuntimeException: Failed read from session store
...
Caused by: org.sqlite.SQLiteException: [SQLITE_BUSY] The database file is locked (database is locked)
...

full output is here: https://gist.github.com/Lukom/71fbd2f643b32a12a253beee5b1b452a

It happens on my macbook and on Ubuntu 22 server as well, both openjdk-21. On Ubuntu server I have a lot of traffic inside signal and this error is triggered every 2 minutes. I'm sure I have enough space on devices, and also there are no any tricky manipulations with session database - everything was working fine before 0.13.0.

I've found similar closed issues:
SQLITE_BUSY The database file is locked (database is locked)
SQLite locks when messages are sent concurrently
but suggested fix of adding --disable-send-log isn't helping.

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

1 participant