1

My Darktable application is not working. The software just does not start and sometimes it shows the error:

darktable error locking database ~/darktable/data.db
the database lock file contains a pid that seems to be alive in your system

Actually i removed the files "library.db.lock" and ".db.lock" but system created them again.

Do you have any idea how to fix that?

1 Answer 1

1

1st identify the process it believes is still active. Do a

cat ~/.config/darktable/library.db.lock

it will show the process it seems to see as active. Then do a

ps -ef | grep {process}

or have a look in

/proc/{process}

and see if there is a process running with that id. If there is the lock is correct and you need to track down the process and see what is keeping it active.

The lock file is not removed when the database is not closed in a clean way (like a server crash, power failure. But it could also be a bug). You then need to remove the lock with ...

rm ~/.config/darktable/library.db.lock

but it will instantly get recreated it there is indeed a process active so you should not skip part 1 of the answer before removing the lock.

If the process does not exist and you can create a log where the database was cleanly shutdown but with the lock file not removed you should file a bug report.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .