The archiving artifacts didn't work before jenkins 1.486 due to https://issues.jenkins-ci.org/browse/JENKINS-13202 I believe. The exception was the same.
But since ~1.486 the build just hangs on artifacts archiving, and only the following can be found in logs:
===========
INFO: test-ia64 #6 main build action completed: SUCCESS
Oct 31, 2012 2:10:04 PM hudson.remoting.SynchronousCommandTransport$ReaderThread run
SEVERE: I/O error in channel ca-build26
java.io.IOException: Unexpected termination of the channel
at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:50)
Caused by: java.io.EOFException
at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2553)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1296)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
at hudson.remoting.Command.readFrom(Command.java:90)
at hudson.remoting.ClassicCommandTransport.read(ClassicCommandTransport.java:59)
at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48)
==================
The build is marked as successful after manually build abortion, and an exception can be seen in the console.
The job is simple: 'echo TEST > ${WORKSPACE}/1.txt', and archive 1.txt then.
thead dump from master and slave is attached
- depends on
-
JENKINS-14351 Outdated JRuby libs
-
- Resolved
-
- is duplicated by
-
JENKINS-20986 Unexpected termination of slave channel during "Archive the artifacts"
-
- Resolved
-
- is related to
-
JENKINS-7641 Slaves hang when archiving artifacts
-
- Closed
-
-
JENKINS-24521 Update jna from 3.3.0-jenkins to 4.1.0 (or newer)
-
- Resolved
-
-
JENKINS-13614 archiving artefacts from remote MacOS X, IBM AIX slave fails
-
- Resolved
-
-
JENKINS-24521 Update jna from 3.3.0-jenkins to 4.1.0 (or newer)
-
- Resolved
-
[JENKINS-15682] archive artifacts hangs on ia64 slave due to JNA initialization error
Link |
New:
This issue is related to |
Priority | Original: Major [ 3 ] | New: Blocker [ 1 ] |
Labels | New: hpitanium |
Labels | Original: hpitanium | New: hpitanium slave |
Labels | Original: hpitanium slave | New: hpitanium remoting slave |
Component/s | Original: ssh-slaves [ 15578 ] | |
Summary | Original: archive artifacts hangs on ia64 slave | New: archive artifacts hangs on ia64 slave due to JNA initialization error |
Looks like the problem occurs with connection to the slave.
The archive artifacts hang because the connection between slave and master is terminated soon after slave restart:
=====
Failed to load native POSIX impl; falling back on Java impl. Stacktrace follows.
java.lang.NoClassDefFoundError: Could not initialize class com.sun.jna.Native
at org.jruby.ext.posix.POSIXFactory.loadLibC(POSIXFactory.java:96)
at org.jruby.ext.posix.POSIXFactory.loadLinuxPOSIX(POSIXFactory.java:65)
at org.jruby.ext.posix.POSIXFactory.getPOSIX(POSIXFactory.java:24)
at hudson.os.PosixAPI.<clinit>(PosixAPI.java:41)
at hudson.Util.resolveSymlink(Util.java:1074)
at hudson.util.DirScanner$Glob.scan(DirScanner.java:121)
at hudson.FilePath.writeToTar(FilePath.java:1827)
at hudson.FilePath.access$1000(FilePath.java:166)
at hudson.FilePath$36.invoke(FilePath.java:1768)
at hudson.FilePath$36.invoke(FilePath.java:1765)
at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2236)
at hudson.remoting.UserRequest.perform(UserRequest.java:118)
at hudson.remoting.UserRequest.perform(UserRequest.java:48)
at hudson.remoting.Request$2.run(Request.java:326)
at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Nov 26, 2012 4:20:28 AM hudson.remoting.SynchronousCommandTransport$ReaderThread run
SEVERE: I/O error in channel channel
java.io.StreamCorruptedException: invalid type code: 3B
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at hudson.remoting.Command.readFrom(Command.java:90)
at hudson.remoting.ClassicCommandTransport.read(ClassicCommandTransport.java:59)
at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48)
channel stopped
ERROR: Connection terminated
==========