First Attempt(s) To OVD 10g LDAP Adapter Fails With LDAP Error 2 : No Remote Servers Available / Vde.log Error: "connection closed" / Following Attempts Work (Doc ID 460467.1)

Last updated on SEPTEMBER 15, 2016

Applies to:

Oracle Virtual Directory - Version 10.1.4 to 10.1.4.3 [Release 10gR3]
Information in this document applies to any platform.

Symptoms

Oracle Virtual Directory  10.1.4.0.1 with LDAP adapters configured, i.e., to Active Directory backend servers.

Intermittently not able to connect via LDAP to OVD.  First attempt (or first few attempts) fails; next retries then work.

 

The following was reported for OVD on Windows 2003:

Able to connect multiple times, but if let it sit idle and then try again, the
following symptoms occur:
- First time connecting, get an access denied message
- Second attempt, unable to see the directory listing
- Third attempt then works ok

Example vde log shows error:

[2007-09-17 22:39:08,617] ERROR - BackendJNDI: [#SP GC LDAP] Unable to create connection to ldap://<hostname:port> as cn=<username>,ou=users,dc=mycompany,dc=com [WorkThread# 126]
[2007-09-17 22:39:08,633] ERROR - BackendJNDI: Connection Error:
javax.naming.CommunicationException [Root exception is java.io.IOException: connection closed] [WorkThread# 126]
[2007-09-17 22:40:21,711] INFO - ServerMgr: Sent tail of log/vde.log (line count=20 of 20) to admin client. [PoolThread-1]
[2007-09-17 22:46:06,148] WARN - ConnectionHandle: Remote Server Failure: connection closed [WorkThread# 128]
[2007-09-17 22:46:19,211] INFO - ServerMgr: Sent tail of log/vde.log (line count=20 of 20) to admin client. [PoolThread-4]
[2007-09-17 22:47:01,195] WARN - ConnectionHandle: Remote Server Failure: connection closed [WorkThread# 121]
 

Applied OVD 10.1.4.2.0 patchset (Patch 5983640, a must-have patchset from OVD Dev), but problem persists:
- First attempt shows no entries
- Logout and login again; and on second try, it showed the correct entries.

Vde log shows:

2007-09-20 14:32:32,120] WARN - ConnectionHandle: Remote Server Failure:connection closed [WorkThread# 164]
[2007-09-20 14:32:32,120] ERROR - BackendJNDI: Remote server unreachable and marked inactive: <host:port> [WorkThread# 164]
[2007-09-20 14:32:32,120] WARN - ConnectionHandle: Remote Server Failure:connection closed [WorkThread# 164]
[2007-09-20 14:32:32,120] WARN - ConnectionHandle: Remote Server Failure:connection closed [WorkThread# 164]
[2007-09-20 14:32:32,120] WARN - ConnectionHandle: Remote Server Failure:connection closed [WorkThread# 164]
[2007-09-20 14:32:32,120] WARN - ConnectionHandle: Remote Server Failure:connection closed [WorkThread# 164]
[2007-09-20 14:32:32,120] WARN - ConnectionHandle: Remote Server Failure:connection closed [WorkThread# 164]
[2007-09-20 14:32:32,120] WARN - ConnectionHandle: Remote Server Failure:connection closed [WorkThread# 164]
[2007-09-20 14:32:41,198] INFO - ServerMgr: Sent tail of log/vde.log (line count=30 of 30) to admin client. [PoolThread-1]
[2007-09-20 14:32:49,433] INFO - HeartBeatThread: [#US LDAP Adapter] Remote server recovered and marked active: <hostname:port> [Heart Beat Thread]

 

The following was reported for OVD 10.1.4.2.0 on Linux:

Every morning VDE Server (VDS) is restarted and stays idle for some time.  The very first transaction fails with Error 2 LDAP code: 
Process LDAP Search Result
Search ERROR : General exception encountered... : [LDAP: error code 2 - LDAP Error 2 : No Remote Servers Available]888 URL : <hostname.mycompany.com>2499***:ou=People,dc=mycompany,dc=com 
 

After transaction is resubmited, the results are returned and everything looks normal.

Steps/Symptoms as replicated by OVD Dev:
Connect OVD LDAP adapter to Active Directory (maybe able to replicate with another LDAP server if supports idle timeout but verified with AD). Verify search works. Then wait 30 minutes (or whatever the idle connection timeout is for the directory). Then retry search. OVD returns with:

ldap_search: additional info: LDAP Error 2 : No Remote Servers Available.

 
Repeating the search and then the search works.

Nothing is logged to vde.log.exception but this is logged into vde.log: 

[2007-07-23 10:04:19,390] WARN - ConnectionHandle: Remote Server Failure:connection closed [WorkThread# 6] 
[2007-07-23 10:04:24,609] WARN - ConnectionHandle: Remote Server Failure:connection closed [WorkThread# 3]

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms