This article has been archived and is no longer maintained by ForgeRock.
The following error is shown in the errors log when the OpenDJ server fails to restart and shuts itself down again:[11/Apr/2015:16:33:19 +0000] category=CORE severity=NOTICE msgID=458891 msg=The Directory Server has sent an alert notification generated by class org.opends.server.core.DirectoryServer (alert type org.opends.server.DirectoryServerShutdown, alert ID 458893): The Directory Server has started the shutdown process. The shutdown was initiated by an instance of class org.opends.server.core.DirectoryServer and the reason provided for the shutdown was An error occurred while trying to start the Directory Server: CryptoManager failed to publish the instance-key-pair public-key-certificate entry in ADS: Failed to add entry "ds-cfg-key-id=731D73895DEF42AD8A7A5AC1C0005062,cn=instance keys,cn=admin data" (id=262812) [11/Apr/2015:16:33:19 +0000] category=BACKEND severity=NOTICE msgID=9896306 msg=The backend userRoot is now taken offline [11/Apr/2015:16:33:19 +0000] category=CORE severity=NOTICE msgID=458955 msg=The Directory Server is now stopped
The admin-backend.ldif file (located in the /path/to/opendj/config directory) is either missing, corrupt or empty (zero length). The most common cause for this is the server running out of disk space.
This issue can be resolved by upgrading to OpenDJ 2.6.3 or later; you can download this from BackStage.
Alternatively, you can overwrite the admin-backend.ldif file with a copy of the admin-backend.ldif.old file (also in the /path/to/opendj/config directory) providing the old file is valid.
If the old file is invalid, for example, it is also zero length, you can copy the admin-backend.ldif file from another replicated server or a backup. If this is not an option, you can create a generic admin-backend.ldif file containing the following:dn: cn=admin data objectClass: top objectClass: ds-cfg-branch cn: admin data dn: cn=instance keys,cn=admin data objectClass: top objectClass: ds-cfg-branch cn: instance keys dn: cn=secret keys,cn=admin data objectClass: top objectClass: ds-cfg-branch cn: secret keys dn: cn=Server Groups,cn=admin data objectClass: top objectClass: ds-cfg-branch cn: Server Groups
If you have to use this generic admin-backend.ldif file, you should disable replication on all servers and then set it up again once you have restarted the OpenDJ server.