Skip to content

Conversation

@GeoffreyFrogeye
Copy link
Contributor

The openOrCreateReadWrite function is called in checkConnect already, resulting in the database being opened twice in exclusive mode, causing SQLite to complain the database is locked.

Closes #3422

This bit of code was added in 2015, which was probably working fine before the DB was moved to exclusive mode in 2019. The above issue was created 2 years later. That being said, not being familiar with the code, I am not certain that what I removed is not used for other purposes. So I invite you to take this into consideration while reviewing.

Copy link
Member

@nilsding nilsding left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for your contribution!

The openOrCreateReadWrite function is called in checkConnect already,
resulting in the database being opened twice in exclusive mode,
causing SQLite to complain the database is locked.

Closes nextcloud#3422

Signed-off-by: Geoffrey “Frogeye” Preud'homme <geoffrey@frogeye.fr>
@nilsding nilsding force-pushed the unsyncedfolders-lock branch from c1234d1 to 7e46cc0 Compare February 2, 2026 07:44
@github-actions
Copy link

github-actions bot commented Feb 2, 2026

Artifact containing the AppImage: nextcloud-appimage-pr-9410.zip

Digest: sha256:e5f7a3c90af710392d31ca5f423f100166015ff6fb88cfb17aa372498600b333

To test this change/fix you can download the above artifact file, unzip it, and run it.

Please make sure to quit your existing Nextcloud app and backup your data.

@mgallien mgallien enabled auto-merge February 2, 2026 08:11
@mgallien mgallien merged commit 7bf77e8 into nextcloud:master Feb 2, 2026
19 of 21 checks passed
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

Successfully merging this pull request may close these issues.

nextcloud SQL error Database is locked when using selective sync list

3 participants