October 26, 2016 at 1:20 am #13892Kabi PattParticipant
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.
KabiOctober 26, 2016 at 2:33 am #13894
@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
This may tell you from OS’ perspective why you are seeing this error.October 28, 2016 at 12:02 am #13966Kabi PattParticipant
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.
KabiOctober 29, 2016 at 3:11 pm #13982November 13, 2016 at 6:28 am #14237AravindhkumarjParticipant
How to use this command, I’m not very sure the input to the command here?November 13, 2016 at 1:08 pm #14241
You must be logged in to reply to this topic.