Open DJ Not starting :- could not acquire an exclusive lock on file server.lock

Tagged: 

This topic has 5 replies, 3 voices, and was last updated 5 years, 9 months ago by Bill Nelson.

  • Author
    Posts
  • #13892
     Kabi Patt
    Participant

    Hi
    I did a fresh installation of OpenDJ on RHEL. Running start-ds command is giving me following error. I am running start-ds command as the same user used for installing OpenDJ.

    The Directory Server could not acquire an exclusive lock on file /apps/forgerock/opendj/locks/server.lock: The attempt to obtain an exclusive lock on file /apps/forgerock/opendj/locks/server.lock was rejected because the attempt to create the lock file failed: IOException(No such file or directory). This generally means that another instance of this server is already running.

    Please help.
    Thanks,
    Kabi

    #13894
     Bill Nelson
    Participant

    @kabi-pattgmail-com, there are a few reasons why you might see this error. Attempting to start a DJ instance that is already running is one such possibility, but it can also be seen if you attempt to write to a folder that you do not have permissions. For instance, assume that you installed OpenDJ using the user1 account (which caused all the files to be owned by user1) and then tried to run the command as user2 (who does not have permissions to write to files/folders owned by user1). It has been awhile, but I believe that I have also seen this when the server did not clean up the pid file properly during a shutdown process.

    One “fun” way to determine what is causing the error is to use the strace command.

    strace -fto dbstart.out /blah/blah/dbstart

    https://en.wikipedia.org/wiki/Strace

    This may tell you from OS’ perspective why you are seeing this error.

    #13966
     Kabi Patt
    Participant

    Thank you Bill,
    That strace command was very helpful. I found that the configuration was not complete. I ran the setup again and the issue got resolved.

    Thanks,
    Kabi

    #13982
     Bill Nelson
    Participant

    That is awesome news, @kabi-pattgmail-com. Glad things worked out for you.

    #14237
     Aravindhkumarj
    Participant

    How to use this command, I’m not very sure the input to the command here?

    #14241
     Bill Nelson
    Participant

    @aravindhkumarj, type “man strace” on the command line and it will provide information on the parameters for this command.

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.

©2022 ForgeRock - we provide an identity and access platform to secure every online relationship for the enterprise market, educational sector and even entire countries. Click to view our privacy policy and terms of use.

Log in with your credentials

Forgot your details?