java.lang.Exception: The server rejected the connection: 192.168.161.8 is already connected to this master. Rejecting this connection.

Jenkins JIRA | gaffey he | 2 years ago
  1. 0

    I am running Jenkins 1.613. i see the slaves log: 四月 15, 2015 10:15:02 上午 com.youdevise.hudson.slavestatus.SlaveListener call 信息: Slave-status listener starting 四月 15, 2015 10:15:02 上午 com.youdevise.hudson.slavestatus.SocketHTTPListener waitForConnection 信息: Slave-status listener ready on port 3141 四月 15, 2015 1:41:01 下午 hudson.remoting.jnlp.Main createEngine 信息: Setting up slave: 192.168.161.8 四月 15, 2015 1:41:01 下午 hudson.remoting.jnlp.Main$CuiListener <init> 信息: Jenkins agent is running in headless mode. 四月 15, 2015 1:41:01 下午 hudson.remoting.jnlp.Main$CuiListener status 信息: Locating server among [http://192.168.95.37:8080/jenkins/] 四月 15, 2015 1:41:01 下午 hudson.remoting.jnlp.Main$CuiListener status 信息: Connecting to 192.168.95.37:19994 四月 15, 2015 1:41:01 下午 hudson.remoting.jnlp.Main$CuiListener status 信息: Handshaking 四月 15, 2015 1:41:01 下午 hudson.remoting.jnlp.Main$CuiListener error 严重: The server rejected the connection: 192.168.161.8 is already connected to this master. Rejecting this connection. java.lang.Exception: The server rejected the connection: 192.168.161.8 is already connected to this master. Rejecting this connection. at hudson.remoting.Engine.onConnectionRejected(Engine.java:306) at hudson.remoting.Engine.run(Engine.java:276)

    Jenkins JIRA | 2 years ago | gaffey he
    java.lang.Exception: The server rejected the connection: 192.168.161.8 is already connected to this master. Rejecting this connection.
  2. 0

    I am running Jenkins 1.613. i see the slaves log: 四月 15, 2015 10:15:02 上午 com.youdevise.hudson.slavestatus.SlaveListener call 信息: Slave-status listener starting 四月 15, 2015 10:15:02 上午 com.youdevise.hudson.slavestatus.SocketHTTPListener waitForConnection 信息: Slave-status listener ready on port 3141 四月 15, 2015 1:41:01 下午 hudson.remoting.jnlp.Main createEngine 信息: Setting up slave: 192.168.161.8 四月 15, 2015 1:41:01 下午 hudson.remoting.jnlp.Main$CuiListener <init> 信息: Jenkins agent is running in headless mode. 四月 15, 2015 1:41:01 下午 hudson.remoting.jnlp.Main$CuiListener status 信息: Locating server among [http://192.168.95.37:8080/jenkins/] 四月 15, 2015 1:41:01 下午 hudson.remoting.jnlp.Main$CuiListener status 信息: Connecting to 192.168.95.37:19994 四月 15, 2015 1:41:01 下午 hudson.remoting.jnlp.Main$CuiListener status 信息: Handshaking 四月 15, 2015 1:41:01 下午 hudson.remoting.jnlp.Main$CuiListener error 严重: The server rejected the connection: 192.168.161.8 is already connected to this master. Rejecting this connection. java.lang.Exception: The server rejected the connection: 192.168.161.8 is already connected to this master. Rejecting this connection. at hudson.remoting.Engine.onConnectionRejected(Engine.java:306) at hudson.remoting.Engine.run(Engine.java:276)

    Jenkins JIRA | 2 years ago | gaffey he
    java.lang.Exception: The server rejected the connection: 192.168.161.8 is already connected to this master. Rejecting this connection.
  3. 0

    Jenkins slave bailouts (process exit)

    GitHub | 1 year ago | jbergstroem
    java.lang.Exception: The server rejected the connection: iojs-digitalocean-centos5-32-1 is already connected to this master. Rejecting this connection.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [JIRA] [core] (JENKINS-33287) Jnlp slave agent die after timeout from slave side

    Google Groups | 9 months ago | ogondza@gmail.com (JIRA)
    java.lang.Exception: The server rejected the connection: dev127-virt2 is already connected to this master. Rejecting this connection.
  6. 0

    Hi, Sometimes, after a master restart, some of our windows slaves are unable to reconnect. On the slave side in the log file we see this being repeated endlessly after restart: {noformat} Aug 06, 2015 10:07:34 AM hudson.remoting.jnlp.Main$CuiListener error SEVERE: The server rejected the connection: WIN7SLAVE1 is already connected to this master. Rejecting this connection. java.lang.Exception: The server rejected the connection: WIN7SLAVE1 is already connected to this master. Rejecting this connection. at hudson.remoting.Engine.onConnectionRejected(Engine.java:306) at hudson.remoting.Engine.run(Engine.java:276) Aug 06, 2015 10:07:35 AM hudson.remoting.jnlp.Main createEngine INFO: Setting up slave: WIN7SLAVE1 Aug 06, 2015 10:07:35 AM hudson.remoting.jnlp.Main$CuiListener <init> INFO: Jenkins agent is running in headless mode. Aug 06, 2015 10:07:35 AM hudson.remoting.jnlp.Main$CuiListener status INFO: Locating server among [http://ci-master/jenkins/, http://ci-master:5080/jenkins/] Aug 06, 2015 10:07:35 AM hudson.remoting.jnlp.Main$CuiListener status INFO: Connecting to ci-master:56749 Aug 06, 2015 10:07:35 AM hudson.remoting.jnlp.Main$CuiListener status INFO: Handshaking Aug 06, 2015 10:07:35 AM hudson.remoting.jnlp.Main$CuiListener error SEVERE: The server rejected the connection: WIN7SLAVE1 is already connected to this master. Rejecting this connection. java.lang.Exception: The server rejected the connection: WIN7SLAVE1 is already connected to this master. Rejecting this connection. at hudson.remoting.Engine.onConnectionRejected(Engine.java:306) at hudson.remoting.Engine.run(Engine.java:276) Aug 06, 2015 10:07:35 AM hudson.remoting.jnlp.Main createEngine INFO: Setting up slave: WIN7SLAVE1 Aug 06, 2015 10:07:35 AM hudson.remoting.jnlp.Main$CuiListener <init> INFO: Jenkins agent is running in headless mode. Aug 06, 2015 10:07:35 AM hudson.remoting.jnlp.Main$CuiListener status INFO: Locating server among [http://ci-master/jenkins/, http://ci-master:5080/jenkins/] Aug 06, 2015 10:07:35 AM hudson.remoting.jnlp.Main$CuiListener status INFO: Connecting to ci-master:56749 Aug 06, 2015 10:07:35 AM hudson.remoting.jnlp.Main$CuiListener status INFO: Handshaking Aug 06, 2015 10:07:35 AM hudson.remoting.jnlp.Main$CuiListener error SEVERE: The server rejected the connection: WIN7SLAVE1 is already connected to this master. Rejecting this connection. java.lang.Exception: The server rejected the connection: WIN7SLAVE1 is already connected to this master. Rejecting this connection. at hudson.remoting.Engine.onConnectionRejected(Engine.java:306) at hudson.remoting.Engine.run(Engine.java:276) {noformat} In the slave log on the jenkins side we see this: {noformat} JNLP agent connected from /158.166.68.73 <===[JENKINS REMOTING CAPACITY]===>Slave.jar version: 2.49 This is a Windows slave Slave.jar version: 2.49 This is a Windows slave Connection terminated Connection terminated ERROR: Failed to install restarter hudson.remoting.RequestAbortedException: hudson.remoting.Channel$OrderlyShutdown at hudson.remoting.Request.abort(Request.java:295) at hudson.remoting.Channel.terminate(Channel.java:814) at hudson.remoting.Channel$CloseCommand.execute(Channel.java:1029) at hudson.remoting.Channel$2.handle(Channel.java:483) at hudson.remoting.AbstractByteArrayCommandTransport$1.handle(AbstractByteArrayCommandTransport.java:61) at org.jenkinsci.remoting.nio.NioChannelHub$2.run(NioChannelHub.java:597) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:111) at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724) at ......remote call to D02DI1419932AGR(Native Method) at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1356) at hudson.remoting.Request.call(Request.java:171) at hudson.remoting.Channel.call(Channel.java:751) at jenkins.slaves.restarter.JnlpSlaveRestarterInstaller.install(JnlpSlaveRestarterInstaller.java:52) at jenkins.slaves.restarter.JnlpSlaveRestarterInstaller.access$000(JnlpSlaveRestarterInstaller.java:33) at jenkins.slaves.restarter.JnlpSlaveRestarterInstaller$1.call(JnlpSlaveRestarterInstaller.java:39) at jenkins.slaves.restarter.JnlpSlaveRestarterInstaller$1.call(JnlpSlaveRestarterInstaller.java:36) at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724) Caused by: hudson.remoting.Channel$OrderlyShutdown at hudson.remoting.Channel$CloseCommand.execute(Channel.java:1029) at hudson.remoting.Channel$2.handle(Channel.java:483) at hudson.remoting.AbstractByteArrayCommandTransport$1.handle(AbstractByteArrayCommandTransport.java:61) at org.jenkinsci.remoting.nio.NioChannelHub$2.run(NioChannelHub.java:597) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:111) at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) ... 5 more Caused by: Command close created at at hudson.remoting.Command.<init>(Command.java:56) at hudson.remoting.Channel$CloseCommand.<init>(Channel.java:1023) at hudson.remoting.Channel$CloseCommand.<init>(Channel.java:1021) at hudson.remoting.Channel.close(Channel.java:1104) at hudson.remoting.Channel.close(Channel.java:1087) at hudson.remoting.Channel$CloseCommand.execute(Channel.java:1028) at hudson.remoting.Channel$2.handle(Channel.java:483) at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:60) JNLP agent connected from /158.166.68.73 <===[JENKINS REMOTING CAPACITY]===>Slave.jar version: 2.49 This is a Windows slave Slave.jar version: 2.49 This is a Windows slave Connection terminated Connection terminated ERROR: Failed to install restarter hudson.remoting.RequestAbortedException: hudson.remoting.Channel$OrderlyShutdown at hudson.remoting.Request.abort(Request.java:295) at hudson.remoting.Channel.terminate(Channel.java:814) at hudson.remoting.Channel$CloseCommand.execute(Channel.java:1029) at hudson.remoting.Channel$2.handle(Channel.java:483) at hudson.remoting.AbstractByteArrayCommandTransport$1.handle(AbstractByteArrayCommandTransport.java:61) at org.jenkinsci.remoting.nio.NioChannelHub$2.run(NioChannelHub.java:597) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:111) at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724) at ......remote call to D02DI1419932AGR(Native Method) at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1356) at hudson.remoting.Request.call(Request.java:171) at hudson.remoting.Channel.call(Channel.java:751) at jenkins.slaves.restarter.JnlpSlaveRestarterInstaller.install(JnlpSlaveRestarterInstaller.java:52) at jenkins.slaves.restarter.JnlpSlaveRestarterInstaller.access$000(JnlpSlaveRestarterInstaller.java:33) at jenkins.slaves.restarter.JnlpSlaveRestarterInstaller$1.call(JnlpSlaveRestarterInstaller.java:39) at jenkins.slaves.restarter.JnlpSlaveRestarterInstaller$1.call(JnlpSlaveRestarterInstaller.java:36) at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724) Caused by: hudson.remoting.Channel$OrderlyShutdown at hudson.remoting.Channel$CloseCommand.execute(Channel.java:1029) at hudson.remoting.Channel$2.handle(Channel.java:483) at hudson.remoting.AbstractByteArrayCommandTransport$1.handle(AbstractByteArrayCommandTransport.java:61) at org.jenkinsci.remoting.nio.NioChannelHub$2.run(NioChannelHub.java:597) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:111) at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) ... 5 more Caused by: Command close created at at hudson.remoting.Command.<init>(Command.java:56) at hudson.remoting.Channel$CloseCommand.<init>(Channel.java:1023) at hudson.remoting.Channel$CloseCommand.<init>(Channel.java:1021) at hudson.remoting.Channel.close(Channel.java:1104) at hudson.remoting.Channel.close(Channel.java:1087) at hudson.remoting.Channel$CloseCommand.execute(Channel.java:1028) at hudson.remoting.Channel$2.handle(Channel.java:483) at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:60) {noformat} Restarting the windows service on the slave fixes the problem, but is annoying as you can understand.

    Jenkins JIRA | 1 year ago | Jorg Heymans
    java.lang.Exception: The server rejected the connection: WIN7SLAVE1 is already connected to this master. Rejecting this connection.

    4 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.Exception

      The server rejected the connection: 192.168.161.8 is already connected to this master. Rejecting this connection.

      at hudson.remoting.Engine.onConnectionRejected()
    2. Hudson :: Remoting Layer
      Engine.run
      1. hudson.remoting.Engine.onConnectionRejected(Engine.java:306)
      2. hudson.remoting.Engine.run(Engine.java:276)
      2 frames