My Oracle Support Banner

ODSEE - Database Corruption With Error - " libdb: file xxx_id2entry.db3 has LSN ... past end of log at ..." and "ERROR - Backend Database - conn=-1 op=-1 msgId=-1 - start: Failed to start databases, err=22 Invalid argument" (Doc ID 1584864.1)

Last updated on JANUARY 27, 2019

Applies to:

Oracle Directory Server Enterprise Edition - Version 11.1.1.5.0 and later
Information in this document applies to any platform.

Symptoms

------------------------------------------
Loss of functionality
------------------------------------------

11g DS fails to restart after unscheduled restart.

------------------------------------------
The sequence of events
------------------------------------------

During system patching exercise, the server was rebooted without stopping DS instances. The transaction log in the /tmp directory was wiped out due to reboot.

------------------------------------------------------------------------------------
Specific error messages (error number with syntax)
------------------------------------------------------------------------------------

Please check the errors when trying to start instance -

Waiting for Directory Server instance '/opt/ldap/odsee11g/instances/xxx-xxx' to start...
Directory Server instance '/opt/ldap/odsee11g/instances/xxx-xxx' has detected a disorderly shutdown or a change in cache size
Recovery phase is starting, this may take a while...
Waiting for Directory Server instance '/opt/ldap/odsee11g/instances/xxx-xxx' to start...
Waiting for Directory Server instance '/opt/ldap/odsee11g/instances/xxx-xxx' to start...
Waiting for Directory Server instance '/opt/ldap/odsee11g/instances/xxx-xxx' to start...
Failed to start Directory Server instance '/opt/ldap/odsee11g/instances/xxx-xxx'
ns-slapd wrote the following lines in the error log (/opt/ldap/odsee11g/instances/xxx-xxx/logs/errors):
##[11/Sep/2013:21:55:07 +0000] - Sun-Directory-Server/11.1.1.5.0 B2011.0517.2158 (64-bit) starting up
##[11/Sep/2013:21:55:08 +0000] - WARNING - Backend Database - conn=-1 op=-1 msgId=-1 - Detected Disorderly Shutdown last time Directory Server was running, recovering database.
##[11/Sep/2013:21:55:45 +0000] - Database recovery is 100% complete.
##[11/Sep/2013:21:55:47 +0000] - DEBUG - conn=-1 op=-1 msgId=-1 - libdb: file xxx.com_id2entry.db3 has LSN 15728/1859964, past end of log at 1/28
##[11/Sep/2013:21:55:47 +0000] - DEBUG - conn=-1 op=-1 msgId=-1 - libdb: Commonly caused by moving a database from one database environment
##[11/Sep/2013:21:55:47 +0000] - DEBUG - conn=-1 op=-1 msgId=-1 - libdb: to another without clearing the database LSNs, or by removing all of
##[11/Sep/2013:21:55:47 +0000] - DEBUG - conn=-1 op=-1 msgId=-1 - libdb: the log files from a database environment
##[11/Sep/2013:21:55:47 +0000] - DEBUG - conn=-1 op=-1 msgId=-1 - libdb: /opt/ldap/odsee11g/instances/xxx-xxx/db/xxx/xxx_id2entry.db3: unexpected file type or format
##[11/Sep/2013:21:55:47 +0000] - WARNING - Backend Database - conn=-1 op=-1 msgId=-1 - db->open("xxx.com_id2entry.db3") failed Invalid argument (22)
##[11/Sep/2013:21:55:47 +0000] - ERROR - Backend Database - conn=-1 op=-1 msgId=-1 - start: Failed to start databases, err=22 Invalid argument
##[11/Sep/2013:21:55:47 +0000] - ERROR - plugin_dependency_startall - conn=-1 op=-1 msgId=-1 - Configuration error Failed to start database plugin ldbm database
##[11/Sep/2013:21:55:47 +0000] - ERROR - Resource Limit - conn=-1 op=-1 msgId=-1 - nsLookThroughLimit: parameter error (slapi_reslimit_register() already registered)
##[11/Sep/2013:21:55:47 +0000] - ERROR - Backend Database - conn=-1 op=-1 msgId=-1 - start: Resource limit registration failed
##[11/Sep/2013:21:55:47 +0000] - ERROR - plugin_dependency_startall - conn=-1 op=-1 msgId=-1 - Configuration error Failed to start database plugin ldbm database
##[11/Sep/2013:21:55:47 +0000] - ERROR - plugin_dependency_startall - conn=-1 op=-1 msgId=-1 - Configuration error Error: Failed to resolve plugin dependencies
##[11/Sep/2013:21:55:47 +0000] - ERROR - plugin_dependency_startall - conn=-1 op=-1 msgId=-1 - Configuration error Failed to start accesscontrol plugin ACL Plugin
##[11/Sep/2013:21:55:47 +0000] - ERROR - plugin_dependency_startall - conn=-1 op=-1 msgId=-1 - Configuration error Failed to start preoperation plugin ACL preoperation
##[11/Sep/2013:21:55:47 +0000] - ERROR - plugin_dependency_startall - conn=-1 op=-1 msgId=-1 - Configuration error Failed to start postoperation plugin Class of Service
##[11/Sep/2013:21:55:47 +0000] - ERROR - plugin_dependency_startall - conn=-1 op=-1 msgId=-1 - Configuration error Failed to start object plugin gle
##[11/Sep/2013:21:55:47 +0000] - ERROR - plugin_dependency_startall - conn=-1 op=-1 msgId=-1 - Configuration error Failed to start database plugin ldbm database

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.