My Oracle Support Banner

OVD Instance Restart Fails with Error "java.net.BindException: The socket name is already in use" (Doc ID 2151368.1)

Last updated on NOVEMBER 25, 2019

Applies to:

Oracle Virtual Directory - Version 11.1.1.1.0 and later
Information in this document applies to any platform.

Symptoms

OVD 11g
Unable to start OVD service after it was shutdown
OVD diagnostic log shows the error "java.net.BindException: The socket name is already in use"

 

The stack that shows the shutdown scenario and the startup errors

[2016-06-14T15:53:59.038+08:00] [octetstring] [NOTIFICATION] [OVD-20052] [com.octetstring.vde.VDEServer] [tid: <TID>] [ecid: <ECID>] Oracle Virtual Directory Server is shutting down.
[2016-06-14T15:53:59.103+08:00] [octetstring] [NOTIFICATION] [OVD-20202] [com.octetstring.vde.util.JettyLogger][tid: <TID>] [ecid: <ECID>] Message: Stopping Acceptor [SSL: ServerSocket[addr=<IP_ADDRESS>,port=xxx,localport=<OVD_ADMIN_PORT>]] xxxxxxxxxx
[2016-06-14T15:53:59.150+08:00] [octetstring] [NOTIFICATION] [OVD-20202] [com.octetstring.vde.util.JettyLogger] [tid: <TID>] [ecid: <ECID>] Message: Stopped SocketListener on 0.0.0.0:<OVD_ADMIN_PORT> xxxxxxxxxxx
[2016-06-14T15:53:59.150+08:00] [octetstring] [NOTIFICATION] [OVD-20202] [com.octetstring.vde.util.JettyLogger] [tid: <TID>] [ecid: <ECID>] Message: Stopped WebApplicationContext[/dsmlv2,Octet String DSMLv2 Administrator Gateway] xxxxxxxxxxxxx
[2016-06-14T15:53:59.151+08:00] [octetstring] [NOTIFICATION] [OVD-20202] [com.octetstring.vde.util.JettyLogger][tid: <TID>] [ecid: <ECID>] Message: Stopped WebApplicationContext[/,Apache-Axis] xxxxxxxxx
[2016-06-14T15:53:59.151+08:00] [octetstring] [NOTIFICATION] [OVD-20202] [com.octetstring.vde.util.JettyLogger] [tid: <TID>] [ecid: <ECID>] Message: Stopped org.mortbay.jetty.Server@xxxxxxxxx
[2016-06-14T15:53:59.151+08:00] [octetstring] [WARNING] [] [com.octetstring.vde.Connection] [tid: <TID>] [ecid: <ECID>] Could not send disconnect notice:
[2016-06-14T15:53:59.152+08:00] [octetstring] [WARNING] [] [com.octetstring.vde.Connection] [tid: <TID>] [ecid: <ECID>] Could not send disconnect notice:
[2016-06-14T15:53:59.152+08:00] [octetstring] [WARNING] [] [com.octetstring.vde.Connection][tid: <TID>] [ecid: <ECID>] Could not send disconnect notice:
[2016-06-14T15:53:59.152+08:00] [octetstring] [WARNING] [] [com.octetstring.vde.Connection] [tid: <TID>] [ecid: <ECID>] Could not send disconnect notice:
[2016-06-14T15:53:59.152+08:00] [octetstring] [WARNING] [] [com.octetstring.vde.Connection] [tid: <TID>] [ecid: <ECID>] Could not send disconnect notice:
[2016-06-14T15:53:59.152+08:00] [octetstring] [WARNING] [] [com.octetstring.vde.Connection][tid: <TID>] [ecid: <ECID>] Could not send disconnect notice:
[2016-06-14T15:53:59.182+08:00] [octetstring] [NOTIFICATION] [OVD-20075] [com.octetstring.vde.VDEServer] [tid: <TID>] [ecid: <ECID>] Oracle Virtual Directory Server is stopped.
[2016-06-14T16:22:16.208+08:00] [octetstring] [NOTIFICATION] [OVD-20176] [com.octetstring.vde.VDEServer][tid: <TID>] [ecid: <ECID>] Oracle Virtual Directory 11.1.1.7.0.
[2016-06-14T16:22:16.320+08:00] [octetstring] [NOTIFICATION] [OVD-20177] [com.octetstring.vde.VDEServer] [tid: <TID>] [ecid: <ECID>] Copyright (c) 2000,2011 Oracle. All Rights Reserved.
[2016-06-14T16:22:17.190+08:00] [octetstring] [NOTIFICATION] [OVD-20001] [com.octetstring.vde.VDEServer] [tid: <TID>] [ecid: <ECID>] Oracle Virtual Directory Server starting up.

........................

........................

[2016-06-14T16:22:23.880+08:00] [octetstring] [NOTIFICATION] [OVD-20048] [com.octetstring.vde.DoSManager] [tid: <TID>] [ecid: <ECID>] Denial of Service monitor DISABLED.
[2016-06-14T16:22:24.110+08:00] [octetstring] [NOTIFICATION] [] [com.octetstring.vde.frontend.LDAP] [tid: <TID>] [ecid: <ECID>] Listening on Port=<SSL_PORT> Mode=Blocking
[2016-06-14T16:22:24.112+08:00] [octetstring] [NOTIFICATION] [OVD-20203] [com.octetstring.vde.frontend.LDAP][tid: <TID>] [ecid: <ECID>] Port allocated for LDAP SSL Endpoint:LDAP.
[2016-06-14T16:22:24.154+08:00] [octetstring] [NOTIFICATION] [OVD-20202] [com.octetstring.vde.util.JettyLogger] [tid: <TID>] [ecid: <ECID>] Message: JsseListener.needClientAuth=false xxxxxxxxxx
[2016-06-14T16:22:24.158+08:00] [octetstring] [NOTIFICATION] [OVD-20203] [com.octetstring.vde.frontend.SocketListener][tid: <TID>] [ecid: <ECID>]Port allocated for Admin Gateway:ADMIN.
[2016-06-14T16:22:24.163+08:00] [octetstring] [NOTIFICATION] [OVD-20202] [com.octetstring.vde.util.JettyLogger][tid: <TID>] [ecid: <ECID>] Message: Starting Jetty/4.2.27 xxxxxxxxxxxxx
[2016-06-14T16:22:24.191+08:00] [octetstring] [ERROR] [OVD-60216] [com.octetstring.vde.VDEServer] [tid: <TID>] [ecid: <ECID>] Cannot start Oracle Virtual Directory server: The socket name is already in use..[[
java.net.BindException: The socket name is already in use.
at sun.nio.ch.Net.bind(Native Method)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:156)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:71)
at com.octetstring.vde.frontend.LDAP.doAllocatePort(LDAP.java:238)
at com.octetstring.vde.frontend.LDAP.startListener(LDAP.java:497)
at com.octetstring.vde.frontend.ListenerHandler.addListener(ListenerHandler.java:100)
at com.octetstring.vde.frontend.ListenerHandler.init(ListenerHandler.java:91)
at com.octetstring.vde.VDEServer.startServer(VDEServer.java:183)

 

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.