詹金斯的窗户奴隶继续断开连接,并在每分钟重复连接后重复一次

时间:2017-02-14 17:33:56

标签: jenkins jenkins-plugins disconnect

我使用CentOS7作为我的主人(Jenkins版本2.46)并且有许多奴隶用不同的操作系统连接到它。我发现了一个奇怪的行为,我的三个Windows_7奴隶 - 他们每隔几个小时就会离线,并在几分钟后重新上线。出现此错误:

Connection was broken: java.net.SocketException: Connection reset
    at java.net.SocketInputStream.read(SocketInputStream.java:210)
    at java.net.SocketInputStream.read(SocketInputStream.java:141)
    at java.io.FilterInputStream.read(FilterInputStream.java:133)
    at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
    at java.io.BufferedInputStream.read(BufferedInputStream.java:265)
    at hudson.remoting.FlightRecorderInputStream.read(FlightRecorderInputStream.java:86)
    at hudson.remoting.ChunkedInputStream.readHeader(ChunkedInputStream.java:72)
    at hudson.remoting.ChunkedInputStream.readUntilBreak(ChunkedInputStream.java:103)
    at hudson.remoting.ChunkedCommandTransport.readBlock(ChunkedCommandTransport.java:39)
    at hudson.remoting.AbstractSynchronousByteArrayCommandTransport.read(AbstractSynchronousByteArrayCommandTransport.java:34)
    at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:59)

一分钟后,它恢复正常

executing pre-launch scripts ...
[2017-02-14 17:00:57] [windows-slaves] Connecting to 10.10.126.130
Checking if Java exists
java -version returned 1.7.0.
[2017-02-14 17:01:00] [windows-slaves] Installing the Jenkins slave service
[2017-02-14 17:01:00] [windows-slaves] Copying jenkins-slave.exe
[2017-02-14 17:01:00] [windows-slaves] Copying slave.jar
[2017-02-14 17:01:00] [windows-slaves] Copying jenkins-slave.xml
[2017-02-14 17:01:00] [windows-slaves] Registering the service
[2017-02-14 17:01:00] [windows-slaves] Starting the service
[2017-02-14 17:01:00] [windows-slaves] Waiting for the service to become ready
[2017-02-14 17:01:05] [windows-slaves] Connecting to port 49,253
<===[JENKINS REMOTING CAPACITY]===>Slave.jar version: 3.4.1
This is a Windows agent
just before slave CCG-WIN7-VS2008 gets online ...
executing prepare script ...
setting up slave CCG-WIN7-VS2008 ...
slave setup done.
Scheduled overwrite of jenkins-slave.exe on the next service startup
Agent successfully connected and online

将这些从DHCP从DHCP转移到静态IP后,我开始遇到此问题。并且只有Windows奴隶有这个问题,所有其他操作系统都正常工作。 他们建立项目所以没有问题,但断开连接和连接的电子邮件的持续垃圾邮件有点烦人。

0 个答案:

没有答案