My Oracle Support Banner

OUD 11g/12c - During Export OUD Server Becomes Unavailable with "Error closing the Replication Server database :(JE 7.0.7) Environment must be closed" (Doc ID 2846408.1)

Last updated on FEBRUARY 08, 2022

Applies to:

Oracle Unified Directory - Version 11.1.2.3.0 and later
Information in this document applies to any platform.

Symptoms

When attempting to perform an export-ldif  like

./export-ldif -h <HOSTNAME> -p <ADMIN_PORT> -D "cn=<DS_ADMIN>" -j /tmp/pwd.txt -X -c -O --includeBranch "<dc=<BASEDN>,dc=<BASEDN>" --backendID <BACKEND_ID> --ldifFile <PATH_TO_EXTERNAL_STORAGE>/backup'date "+%F-%H"'.ldif.gz

the following error may occur in the logs: 

[2020-05-10T11:41:10.674+02:00] [OUD] [ERROR] [OUD--1] [SYNC] [host: <HOSTNAME>] [nwaddr: <IP>] [tid: <TID>] [userId: <OSUSER>] [ecid: <ECID>] Error closing the Replication Server database :(JE 7.0.7) Environment must be closed, caused by: com.sleepycat.je.ThreadInterruptedException: Environment invalid because of previous exception: (JE 7.0.7) <INSTANCE_PATH>/OUD/changelogDb Unexpected interrupt while waiting for write or fsync THREAD_INTERRUPTED: InterruptedException may cause incorrect internal state, unable to continue. Environment is invalid and must be closed. (ThreadInterruptedException.java:135 EnvironmentImpl.java:1720 Environment.java:2486 Database.java:2332 Database.java:648 Database.java:617 Database.java:535 ReplicationDbEnv.java:679 ReplicationServer.java:934 ReplicationDB.java:1346 DbHandler.java:667 DbHandler.java:72 DbHandler.java:515 Thread.java:748); caused by Environment invalid because of previous exception: (JE 7.0.7) <INSTANCE_PATH>/OUD/changelogDb Unexpected interrupt while waiting for write or fsync THREAD_INTERRUPTED: InterruptedException may cause incorrect internal state, unable to continue. Environment is invalid and must be closed. (FSyncManager.java:493 FSyncManager.java:292 LogManager.java:370 Txn.java:1035 Txn.java:795 Transaction.java:609 Transaction.java:568 ReplicationDB.java:309 DbHandler.java:728 DbHandler.java:468 Thread.java:748); caused by InterruptedException (Object.java:-2 FSyncManager.java:491 FSyncManager.java:292 LogManager.java:370 Txn.java:1035 Txn.java:795 Transaction.java:609 Transaction.java:568 ReplicationDB.java:309 DbHandler.java:728 DbHandler.java:468 Thread.java:748)

 Issue was observed in replicated environments, however it may be reproducing in non-replicated environments too.

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


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