It's a sqlite database. One way past this locking issue is to
clone it via dump, and then move the old file out of way. I keep
backups of my library like this:

$ cat ~/bin/

DTNEWLIB=${DTLIB}-`/usr/bin/date +%Y%m%d_%H%M`



if [ $? -eq 0 ]; then
        $ECHO "Dumped $DTLIB to $DTNEWLIB"
        $ECHO "FAILED to dump $DTLIB to $DTNEWLIB"
        exit $RESULT

On occasion I have needed that backup file, so I just copy it
to the correct filename and startup.


On 11/08/17 09:58 am, Patrick Shanahan wrote:
* David Vincent-Jones <> [08-10-17 19:54]:
A fresh install of the new Opensuse 42.3 and I get a new dt error when I
try to import files from my camera.

"darktable - error locking database
an error has occurred while trying to open the database from
the database lock file contains a pid that seems to be alive on your

The pid # changes if I close dt and retry

If I ignore the problem, continue and 'click on cameras' the error
message disappears and the import window opens.

I notice that the problem of selecting images to download still needs
the multi-tab workaround on this os version. That 'workaround' scenario
is not needed with the Tumbleweed Opensuse version

Am working with the up to date git.

maybe you didn't close darktable properly and left a lock file

stop darktable
ls -la .config/darktable |grep lock

rm -f .config/darktable/*.lock

try again

running Tw, don't know about a "multi-tab" work-a-round.

James C. McPherson
Solaris kernel software engineer, system admin and troubleshooter
Find me on LinkedIn @

darktable developer mailing list
to unsubscribe send a mail to

Reply via email to