top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Error facing during Jenkin compilation?

+2 votes
412 views

FATAL: java.io.IOException: Unexpected termination of the channel
hudson.remoting.RequestAbortedException: java.io.IOException: Unexpected termination of the channel

posted May 30, 2015 by Kali Mishra

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

Jenkins remoting may fail to maintain connection between master and slave, and in such case can report a cryptic stacktrace in build console / jenkins log. This page gives some guidance on collecting adequate information to help diagnose the problem.

Failure mode on the master: On master, the details of the connection loss is captured into the slave log file, and not the build log. So you'll have to go find archived slave launch logs under $JENKINS_HOME/logs/slaves/*/slave.log*, which records 10 more recent connection logs to that slave. This information is also captured in the support bundle from Support Core Plugin under /nodes/slave/*/launchLog/*. If you look at the bottom of them, you can see how the last 10 connections to the slave has ended.

Failure mode on the client: Collect slave node jenkins-*.out.log and jenkins-*.err.log. This is where stdout and stderr from a JNLP slaves go. See what error is reported in there. Could be "java.net.SocketTimeoutException: Read timed out", as well as OutOfMemoryException, HotSpot JVM crash dump, etc.

So first disable and then disconnect the slave server once and again add and enable it.

For More details: https://issues.jenkins-ci.org/browse/JENKINS-6817

answer Dec 7, 2015 by Amit Kumar Pandey
Similar Questions
0 votes

We are frequently getting the below error when trying to downloading svn data from jenkins. Issue will get resolved when we restart jenkins slave node.
Any idea what is the root cause?

org.tmatesoft.svn.core.SVNException [1]: svn: E175002: OPTIONS /svn/repo/trunk failed    
Caused by: java.io.IOException: 
Remote call on channel failed  at hudson.remoting.Channel.call(Channel.java:760)  at 
hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:173)  
... 36 more Caused by: java.lang.NoClassDefFoundError: hudson/remoting/RemoteClassLoader$RemoteIClassLoader  at   
hudson.remoting.RemoteClassLoader.export(RemoteClassLoader.java:657)  at hudson.remoting.UserRequest.
(UserRequest.java:70)  at hudson.remoting.Channel.call(Channel.java:750)  ... 37 more     
+2 votes

Is there any option available to include header file while compiling?

For Ex:
i don't want to write "#include<stdio.h>" in my .c file. but while compiling i want to include it.
(like, $: cc 1.c -option stdio.h)
can it be done?

...