[JIRA] [core] (JENKINS-10537) java.net.SocketTimeoutException: Read timed out

57 views
Skip to first unread message

betoneto.tbo@gmail.com (JIRA)

unread,
Jan 21, 2016, 8:00:05 AM1/21/16
to jenkinsc...@googlegroups.com
beto neto commented on Bug JENKINS-10537
 
Re: java.net.SocketTimeoutException: Read timed out

I'm getting in same problem.

I have a ant script that makes all my stuff (checkout, compile and run tests), because I have a custom Test Framework using java to run JUnits to test Delphi applications (emulating clicks and typing).
The ant task for junit run in fork mode.

The job starts checkout, compile, and when it starts the junits it lost his connection. The strange thing is that the test continues to run on the slave machine but the job build fails by the connection lose.

This is the job log:

run-jjwxp:
     [echo] C:\jenkins\jjwxp/tmp/bin/jjwxp/JJWXP.exe
   [groovy] Aguardando JJW XP...
   [groovy] JJW XP iniciado
    [junit] --------------------------------------------
    [junit] 2016-01-21 10:36:09.770, INICIANDO -> br.com.jjw.test.qualidade.ast.cadastro.TesteFrmASTCadastroOS#testeOC24084_observacaoSemColunas
    [junit] 	CONFIGURAÇÕES: C:\jenkins\jjwxp\tmp\src\JJW XP Test\testapi.properties
    [junit]  [DATABASE] Adicionado o usuário: TESTEOC23782, senha: 23782
    [junit]  [DATABASE] Adicionado o usuário: TESTEOC20000, senha: oc20000
    [junit]  [DATABASE] Adicionado o usuário: TESTEOC20249, senha: testeoc2
    [junit]  [DATABASE] Adicionado o usuário: NORMAL, senha: normal
    [junit] log4j:WARN No appenders could be found for logger (br.com.jjw.test.api.delphi.impl.DelphiTestSession).
    [junit] log4j:WARN Please initialize the log4j system properly.
    [junit] log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
    [junit]  [DATABASE] Adicionado o usuário: TESTEOC23450, senha: 23450
    [junit]  [DATABASE] Adicionado o usuário: TESTEOC19853, senha: testeoc1
    [junit] 	Restauração de parâmetros realizada em: 2153ms
    [junit] Alterado data do sistema: 01/01/2000
Slave went offline during the build
Build step 'Invocar Ant' marked build as failure
FATAL: channel is already closed
hudson.remoting.ChannelClosedException: channel is already closed
	at hudson.remoting.Channel.send(Channel.java:578)
	at hudson.remoting.Request.call(Request.java:130)
	at hudson.remoting.Channel.call(Channel.java:780)
	at hudson.Launcher$RemoteLauncher.kill(Launcher.java:953)
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:540)
	at hudson.model.Run.execute(Run.java:1738)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
	at hudson.model.ResourceController.execute(ResourceController.java:98)
	at hudson.model.Executor.run(Executor.java:410)
Caused by: java.io.EOFException
	at org.jenkinsci.remoting.nio.NioChannelHub$3.run(NioChannelHub.java:613)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
	at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:112)
	at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
	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:745)
ERROR: Step ‘Publicar relatório de testes do JUnit’ failed: no workspace for HEAD #36
ERROR: Step ‘Notificação de E-mail’ failed: no workspace for HEAD #36
Finished: FAILURE

And this is the slave.jar output:

Jan 21, 2016 10:35:51 AM hudson.remoting.jnlp.Main createEngine
INFORMAÃıES: Setting up slave: jenkins2
Jan 21, 2016 10:35:51 AM hudson.remoting.jnlp.Main$CuiListener <init>
INFORMAÃıES: Jenkins agent is running in headless mode.
Jan 21, 2016 10:35:51 AM hudson.remoting.jnlp.Main$CuiListener status
INFORMAÃıES: Locating server among [http://jenkins/]
Jan 21, 2016 10:35:51 AM hudson.remoting.jnlp.Main$CuiListener status
INFORMAÃıES: Handshaking
Jan 21, 2016 10:35:51 AM hudson.remoting.jnlp.Main$CuiListener status
INFORMAÃıES: Connecting to jenkins:4990
Jan 21, 2016 10:35:51 AM hudson.remoting.jnlp.Main$CuiListener status
INFORMAÃıES: Trying protocol: JNLP2-connect
Jan 21, 2016 10:35:51 AM hudson.remoting.jnlp.Main$CuiListener status
INFORMAÃıES: Connected
Jan 21, 2016 10:36:16 AM hudson.remoting.SynchronousCommandTransport$ReaderThread run
GRAVE: I/O error in channel channel
java.net.SocketTimeoutException: Read timed out
        at java.net.SocketInputStream.socketRead0(Native Method)
        at java.net.SocketInputStream.read(Unknown Source)
        at java.net.SocketInputStream.read(Unknown Source)
        at java.io.BufferedInputStream.fill(Unknown Source)
        at java.io.BufferedInputStream.read(Unknown Source)
        at hudson.remoting.FlightRecorderInputStream.read(FlightRecorderInputStream.java:82)
        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:48)

Jan 21, 2016 10:36:16 AM hudson.remoting.jnlp.Main$CuiListener status
INFORMAÃıES: Terminated
Jan 21, 2016 10:36:26 AM hudson.remoting.jnlp.Main$CuiListener status
INFORMAÃıES: Locating server among [http://jenkins/]
Jan 21, 2016 10:36:26 AM hudson.remoting.jnlp.Main$CuiListener status
INFORMAÃıES: Handshaking
Jan 21, 2016 10:36:26 AM hudson.remoting.jnlp.Main$CuiListener status
INFORMAÃıES: Connecting to jenkins:4990
Jan 21, 2016 10:36:26 AM hudson.remoting.jnlp.Main$CuiListener status
INFORMAÃıES: Trying protocol: JNLP2-connect
Jan 21, 2016 10:36:26 AM hudson.remoting.jnlp.Main$CuiListener status
INFORMAÃıES: Connected
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265)
Atlassian logo

betoneto.tbo@gmail.com (JIRA)

unread,
Jan 21, 2016, 8:39:05 AM1/21/16
to jenkinsc...@googlegroups.com
beto neto edited a comment on Bug JENKINS-10537
I'm getting in same problem.

I have a ant script that makes all my stuff (checkout, compile and run tests), because I have a custom Test Framework using java to run JUnits to test Delphi applications (emulating clicks and typing). 
The ant task for junit run in *fork mode*.

The job starts checkout, compile, and when it starts the junits it lost his connection. *The strange thing* is that the test continues to run on the slave machine but the job build fails by the connection lose.


This is the job log:
{code:java}
{code}


And this is the slave.jar output:

{code}
{code}

I'm using jenkins 1.645
Reply all
Reply to author
Forward
0 new messages