-
Task
-
Resolution: Unresolved
-
Blocker
-
None
java.net.BindException: Address already in use (Bind failed)
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:387)
at java.net.ServerSocket.bind(ServerSocket.java:390)
at java.net.ServerSocket.<init>(ServerSocket.java:252)
at java.net.ServerSocket.<init>(ServerSocket.java:143)
at com.youdevise.hudson.slavestatus.SocketHTTPListener.waitForConnection(SlaveListener.java:129)
at com.youdevise.hudson.slavestatus.SlaveListener$1.run(SlaveListener.java:63)
at com.youdevise.hudson.slavestatus.Daemon.go(Daemon.java:16)
at com.youdevise.hudson.slavestatus.SlaveListener.call(SlaveListener.java:83)
at hudson.remoting.UserRequest.perform(UserRequest.java:211)
at hudson.remoting.UserRequest.perform(UserRequest.java:54)
at hudson.remoting.Request$2.run(Request.java:369)
at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:117)
at java.lang.Thread.run(Thread.java:750)
Oct 04, 2023 2:11:38 PM hudson.remoting.jnlp.Main$CuiListener status
INFO: Terminated
Oct 04, 2023 2:11:38 PM hudson.remoting.Request$2 run
INFO: Failed to send back a reply to the request hudson.remoting.Request$2@6fab7ad6: hudson.remoting.ChannelClosedException: Channel "hudson.remoting.Channel@4d411142:JNLP4-connect connection to bl4ul414/10.82.165.81:16339": channel is already closed
I was getting the above error while connecting my slave to the master. I was connecting through jnlp. FYI both the master and slave are using same java versions.
Hi there,
As a reminder, the term "slave" to refer to an agent has been deprecated since 2016. Please refer to https://www.jenkins.io/blog/2020/06/18/terminology-update/ for more details. We request you update your issue.
The error message you're encountering, java.net.BindException: Address already in use (Bind failed), typically indicates that the port you are trying to bind to is already in use by another process. In this case, it appears to be affecting your Jenkins agent.
Here are some steps you can take to diagnose and resolve this issue:
For example, on Linux, you can run:
netstat -tuln | grep 16339
If the issue persists after trying these steps, please provide more details about your Jenkins setup, including any recent changes or configurations, which might help in diagnosing the problem further.