Tagged: opendj
This topic has 5 replies, 3 voices, and was last updated 5 years, 9 months ago by Bill Nelson.
-
AuthorPosts
-
October 26, 2016 at 1:20 am #13892
Kabi Patt
ParticipantHi
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,
KabiOctober 26, 2016 at 2:33 am #13894Bill 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.
October 28, 2016 at 12:02 am #13966Kabi Patt
ParticipantThank 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,
KabiOctober 29, 2016 at 3:11 pm #13982Bill Nelson
ParticipantThat is awesome news, @kabi-pattgmail-com. Glad things worked out for you.
November 13, 2016 at 6:28 am #14237Aravindhkumarj
ParticipantHow to use this command, I’m not very sure the input to the command here?
November 13, 2016 at 1:08 pm #14241Bill Nelson
Participant@aravindhkumarj, type “man strace” on the command line and it will provide information on the parameters for this command.
-
AuthorPosts
You must be logged in to reply to this topic.