My Oracle Support Banner

E-OS: / E-ES: Getting error "java.net.BindException: Address already in use" When Trying to Start the OpenSearch Server (Doc ID 3051140.1)

Last updated on OCTOBER 02, 2024

Applies to:

PeopleSoft Enterprise PT PeopleTools - Version 8.60 and later
Information in this document applies to any platform.

Symptoms

When attempting to start OpenSearch on port 9300, the following error occurs.

[ERROR][o.o.b.OpenSearchUncaughtExceptionHandler] [OpenSearch hostname] uncaught exception in thread [main]
    org.opensearch.bootstrap.StartupException: BindHttpException[Failed to bind to <ip address>:9300]; nested: BindException[Address already in use];
            at org.opensearch.bootstrap.OpenSearch.init(OpenSearch.java:184) ~[opensearch-2.3.0.jar:2.3.0]
            (...)
    Caused by: org.opensearch.http.BindHttpException: Failed to bind to <ip address>:9300
            at org.opensearch.http.AbstractHttpServerTransport.bindAddress(AbstractHttpServerTransport.java:208) ~[opensearch-2.3.0.jar:2.3.0]
            (...)
            at org.opensearch.bootstrap.OpenSearch.init(OpenSearch.java:180) ~[opensearch-2.3.0.jar:2.3.0]
            ... 6 more
    Caused by: java.net.BindException: Address already in use
            at sun.nio.ch.Net.bind0(Native Method) ~[?:?]
            (...)
            at java.lang.Thread.run(Thread.java:834) [?:?]
    uncaught exception in thread [main]
    [2024-09-27T08:08:25,910][INFO ][o.o.g.GatewayService     ] [OpenSearch hostname] recovered [0] indices into cluster_state
    BindHttpException[Failed to bind to <ip address>:9300]; nested: BindException[Address already in use];
    Likely root cause: java.net.BindException: Address already in use
            at java.base/sun.nio.ch.Net.bind0(Native Method)
            (...)
            at java.base/java.lang.Thread.run(Thread.java:834)
    (...)
    [2024-09-27T08:08:26,395][INFO ][o.o.n.Node               ] [OpenSearch hostname] stopped
    [2024-09-27T08:08:26,395][INFO ][o.o.n.Node               ] [OpenSearch hostname] closing ...
    [2024-09-27T08:08:26,439][INFO ][o.o.n.Node               ] [OpenSearch hostname] closed


The issue was reproducible in the customer site with the following steps:
1. Update <OS_HOME>/config/opensearch.yml file to inform http.port: 9300
2. Attempt to start the OpenSearch server.
3. Observe the errors in the OpenSearch Cluster log file (<OS_HOME>/logs/<ClusterName>.log).

Changes

 

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
Changes
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.