Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: "[init] database is locked" when starting app

  1. #1
    Join Date
    Nov 2011
    Beans
    365
    Distro
    Ubuntu 14.04 Trusty Tahr

    "[init] database is locked" when starting app

    I had a gpu-related crash while running darktable, and since I have not been able to run the program - trying to start form console, all I get is
    Code:
    [init] database is locked, probably another process is already using it
    I used synaptic to remove darktable and reinstall (to a newer version, actually), but I'm still getting this error message. Any ideas?
    Last edited by kurja; April 11th, 2013 at 06:09 PM.

  2. #2
    Join Date
    Nov 2011
    Beans
    365
    Distro
    Ubuntu 14.04 Trusty Tahr

    Question Re: "[init] database is locked" when starting app

    any ideas on how to remedy this issue?

  3. #3
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    5,995
    Distro
    Xubuntu 13.10 Saucy Salamander

    Re: "[init] database is locked" when starting app

    kurja; Hi !

    What pops to mind is that you have an instance of the package manager open and trying to start another package manager process.
    Like, that while synaptic is open, you are running apt-get or dpkg from the command line ?

    If you close everything out and reboot, what results from terminal commands:
    Code:
    sudo apt-get update
    sudo apt-get upgrade

    just try'n to help
    THE current(cy) in Documentation:
    https://help.ubuntu.com/community/PopularPages

    Happy ubutu'n !

  4. #4
    Join Date
    Nov 2011
    Beans
    365
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: "[init] database is locked" when starting app

    Hi, thanks for the reply.

    Perhaps I should have clarified that I'm getting the error when trying to start Darktable, not when trying to run update, if there was any confusion about that? Synaptic removed and installed the application without any visible hiccups.

    I see nothing unusual when running apt-get update and upgrade.

  5. #5
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    5,995
    Distro
    Xubuntu 13.10 Saucy Salamander

    Re: "[init] database is locked" when starting app

    kurja;
    Sorry, I too may have jumped to a conclusion,
    darktable; Well, Is there an instance of the application autostarting upon booting the system ?
    All I can think of presently, As you reinstalled darktable I would think the new install would have overwritten any residual config files from the older version .
    I am not at all familiar with darktable, but is there anything in a config file that would start the application ?
    maybe look at something like :
    Code:
    ps au | grep darktable
    see if it is running on the system.

    not much, but a thought
    THE current(cy) in Documentation:
    https://help.ubuntu.com/community/PopularPages

    Happy ubutu'n !

  6. #6
    Join Date
    Nov 2011
    Beans
    365
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: "[init] database is locked" when starting app

    Quote Originally Posted by Bashing-om View Post
    kurja;
    Sorry, I too may have jumped to a conclusion,
    darktable; Well, Is there an instance of the application autostarting upon booting the system ?
    All I can think of presently, As you reinstalled darktable I would think the new install would have overwritten any residual config files from the older version .
    I am not at all familiar with darktable, but is there anything in a config file that would start the application ?
    maybe look at something like :
    Code:
    ps au | grep darktable
    see if it is running on the system.

    not much, but a thought
    that gives me
    Code:
    3232  0.0  0.0   5612   832 pts/0    S+   21:18   0:00 grep --color=auto darktable
    I've no idea what that might mean though :^/

  7. #7
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    5,995
    Distro
    Xubuntu 13.10 Saucy Salamander

    Re: "[init] database is locked" when starting app

    kurja;

    The output only shows the invocation of looking for an instance of darktable running. No indication that the application it's self is running.

    I am at a loss now as to how to see what all starts when darktable is started. I do not have it installed on my system so not able to look at the config files. As an alternative try this:
    Start darktable and then run the "ps" command again, see if there is more than the two expected returns (??}
    Code:
    ps au | grep darktable
    Begs the question "what is locking up what database" ??

    questions generate answers
    THE current(cy) in Documentation:
    https://help.ubuntu.com/community/PopularPages

    Happy ubutu'n !

  8. #8
    Join Date
    Nov 2011
    Beans
    365
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: "[init] database is locked" when starting app

    Ok, trying to start darktable I get the same "database is locked", running ps au etc generates the same response as it did before.

    I did post about this at darktable.org/redmine hoping to get advice on what might be afoot, but no responses there so far.

    This is bad because I need a processor for my images and certainly am not looking forward to reinstalling everything from scratch

  9. #9
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    5,995
    Distro
    Xubuntu 13.10 Saucy Salamander

    Re: "[init] database is locked" when starting app

    kurja;
    I am reaching here, but let's see if any indications are in /tmp or /var:
    Terminal code:
    Code:
         
    find /tmp -type f -iname darktable -print
    And assuming the ap is starting up in the name as "darktable".
    If no return from the "/tmp" directory, try substituting "/var" for "/tmp".

    Not starting at all is at least more info than we had.

    still think'n
    THE current(cy) in Documentation:
    https://help.ubuntu.com/community/PopularPages

    Happy ubutu'n !

  10. #10
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    5,995
    Distro
    Xubuntu 13.10 Saucy Salamander

    Re: "[init] database is locked" when starting app

    kurja;

    Another thought, is this on a NFS-mount ... or directly from the local machine ?
    THE current(cy) in Documentation:
    https://help.ubuntu.com/community/PopularPages

    Happy ubutu'n !

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •