Cannot Start OHS Because "Address Already In Use" could not bind to address 0.0.0.0:<port> and/or [::]:<port>

(Doc ID 1615822.1)

Last updated on SEPTEMBER 18, 2017

Applies to:

Oracle HTTP Server - Version 11.1.1.0.0 and later
Information in this document applies to any platform.

Symptoms

OHS will not start - In the ohs error log file (usually ohs1.log) the following errors occur.  Note: The port may be different than this case and the Host IP will show up where <Host IP> is below:

[2014-01-18T21:05:27.1674-05:00] [OHS] [INCIDENT_ERROR:32] [OHS-9999] [worker.c] [host_id: sandpalm.caci.com] [host_addr: <Host IP>] [pid: 27759] [tid: 139987204495152] [user: oracle] [VirtualHost: main] (22)Invalid argument: make_sock: for address [::]:8000, apr_socket_opt_set: (IPV6_V6ONLY)

[2014-01-18T21:05:27.1674-05:00] [OHS] [INCIDENT_ERROR:32] [OHS-9999] [worker.c] [host_id: sandpalm.caci.com] [host_addr: <Host IP>] [pid: 27759] [tid: 139987204495152] [user: oracle] [VirtualHost: main] (98)Address already in use: make_sock: could not bind to address [::]:8000

[2014-01-18T21:05:27.1675-05:00] [OHS] [INCIDENT_ERROR:32] [OHS-9999] [worker.c] [host_id: sandpalm.caci.com] [host_addr: <Host IP>] [pid: 27759] [tid: 139987204495152] [user: oracle] [VirtualHost: main] (98)Address already in use: make_sock: could not bind to address 0.0.0.0:8000

[2014-01-18T21:05:27.1675-05:00] [OHS] [INCIDENT_ERROR:20] [OHS-9999] [worker.c] [host_id: sandpalm.caci.com] [host_addr: <Host IP>] [pid: 27759] [tid: 139987204495152] [user: oracle] [VirtualHost: main] no listening sockets available, shutting down

[2014-01-18T21:05:27.1675-05:00] [OHS] [ERROR:32] [OHS-9999] [core.c] [host_id: sandpalm.caci.com] [host_addr: <Host IP>] [pid: 27759] [tid: 139987204495152] [user: oracle] [VirtualHost: main] Unable to open logs

 
This can be intermittent issue.  Sometime OHS startup completes without issue.

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