Application (apache storm
) cannot start throwing the below exception
2022-04-12 04:56:13.997 o.a.s.d.u.UIServer main [ERROR] Exception in UlServer
java.io.I0Exception: Failed to bind to 0.0.0.0/0.0.0.0:8888
at org.eclipsejettyserver.ServerConnector.openAcceptChannel(ServerConnectorjava346) ~[jetty-server-9.4.14.v20181114jan9.4.14.v20181114]
at org.eclipsejetty.server.ServerConnector.open(ServerConnectorjava:308) ~[jetty-server-9.4.14.v20181114.jar:9.4.14.v20181114]
at org.eclipsejetty.server.AbstractNetworkConnector.doStart(AbstractNetworkConnectorjava:80) ~[jetty-server-9.4.14.v20181114jar:9.4.14.v20181114]
at org.eclipsejetty.server.ServerConnector.doStart(ServerConnectorjava:236) ~[jetty-server-9.4.14.v20181114jar.9.4.14-v20181114]
at org.eclipsejetty.util.component.AbstractUfeCycle.start(AbstractlifeCyclejava:68) ~[jetty-util-9.4.14.v20181114jan9.4.14.v20181114]
at org.eclipsejetty.server.Server.doStart(Serverjava:394) ~[jetty-server-9.4.14.v20181114.jar9.4.14.v20181114)
at org.eclipsejetty.util.component.AbstractLifeCycle.start(AbstractlifeCyclejava:68) ~[jetty-util-9.4.14.v20181114jar.9.4.14.v20181114]
at org.apache.storm.daemon.ui.U1Server.main(U1Serverjaval 79) [storm-webapp-2.2.0jar:2.2.0]
Caused by: java.net-BindException: Address already in use
at sun.nio.ch.Net.bindO(Native Method) ~[?:?]
at sumnio.ch.Net.bind(Netjava:455) ~[?:?]
at sun.nio.ch.Netbind(Netjava:447) ~[?:?]
at sun.nio.chServerSocketChannelImpl.bind(ServerSocketChannellmpljava:227) ~[?:?]
at sumnio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptorjava:80) ~[?:?]
at org.eclipsejetty.server.ServerConnector.openAcceptChannel(ServerConnectorjava:342) ~[jetty-server-9.4.14.v20181114jan9.4.14.v20181114]
... 7 more
The port is free though, I used multiple tools (telnet
, nc
, netstat
etc) to ensure this.
Also the same behaviour was spotted on another server with another app, but JMV
-based as well
OS: RHEL 7.9
Java: 11.0.12