mirror of
https://github.com/lldap/lldap.git
synced 2026-04-25 16:25:55 +03:00
[GH-ISSUE #688] Error "Database is locked" during installation with Docker #244
Labels
No labels
backend
blocked
bug
cleanup
dependencies
docker
documentation
duplicate
enhancement
enhancement
frontend
github_actions
good first issue
help wanted
help wanted
integration
invalid
ldap
pull-request
question
rust
rust
tests
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/lldap-lldap#244
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @zkvvoob on GitHub (Sep 16, 2023).
Original GitHub issue: https://github.com/lldap/lldap/issues/688
Hello,
I've just tried to run LLDAP using the sample Docker compose file and the only things I've really changed are the Base DN and the local directory. Every time I try to start the container, it exits with the following log messages:
The container is set with UID=1000 and GID=1000, which are the correct ones for my own user, who also owns the mounted directory. In it is the
lldap_config.tomlfile and ausers.dbfile has also appeared, along withusers.db-journal.Running on Debian 12, Docker 24.
Can someone please help me figure out what's wrong with my setup?
Thanks!
@nitnelave commented on GitHub (Sep 16, 2023):
Hi! "Database is locked" means that there's already another process accessing it. My guess is that you have 2 LLDAP containers running, both using the same DB file. Unless you have another service using this very specific DB file, but I doubt that :)
@zkvvoob commented on GitHub (Sep 16, 2023):
This is a fresh Debian VM, the only other Docker container running on it is Portainer, nothing else.
@nitnelave commented on GitHub (Sep 16, 2023):
Is the /data folder mounted? Could another process be accessing it from outside the VM? What if you delete the DB?
@zkvvoob commented on GitHub (Sep 16, 2023):
I've tried deleting the db; I've also tried deleting the whole lldap_data folder and creating it manually – the effect is the same.
The mount comes from a TrueNAS VM, if that matters. Could be something there is accessing it...
@nitnelave commented on GitHub (Sep 16, 2023):
You could try
lsofto see if any other process has the file open.And maybe try putting in a local-only folder to see if the mount is the issue?
@zkvvoob commented on GitHub (Sep 16, 2023):
Thank you! I resorted to Postgres and LLDAP is running just fine now.
:latesttag and permissions #641