[Shameless plug]
http://developer-blog.cloudbees.com/2013/10/ssh-slaves-reloaded.html
[/Shameless plug]

Anyway, in 1.3 vs 1.2 I didn't change the ssh connection logic, similarly
there is no changes outside of credentials since 0.27.

We'd really need to know more about the ssh server that is being connected
to... also it may be a keep-alive failure... not sure how much I can
improve that with the trilead impl.


On 7 October 2013 11:57, Henri Gomez <henri.go...@gmail.com> wrote:

> Hi Steven
>
> With Jenkins 1.529 (slave 1.2, ssh creds 1.4), I had more and more often
> failures between Jenkins and its SSH slaves:
>
> "
> FATAL: hudson.remoting.RequestAbortedException: java.io.IOException:
> Unexpected termination of the channel
> hudson.remoting.RequestAbortedException:
> hudson.remoting.RequestAbortedException: java.io.IOException: Unexpected
> termination of the channel
> at
> hudson.remoting.RequestAbortedException.wrapForRethrow(RequestAbortedException.java:41)
> at
> hudson.remoting.RequestAbortedException.wrapForRethrow(RequestAbortedException.java:34)
> at hudson.remoting.Request.call(Request.java:174)
> at hudson.remoting.Channel.call(Channel.java:714)
> at hudson.FilePath.act(FilePath.java:898)
> at hudson.FilePath.act(FilePath.java:882)
> at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:850)
> at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:788)
> at hudson.model.AbstractProject.checkout(AbstractProject.java:1408)
> at
> hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:676)
> at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
> at
> hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:581)
> at hudson.model.Run.execute(Run.java:1603)
> at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:506)
> at hudson.model.ResourceController.execute(ResourceController.java:88)
> at hudson.model.Executor.run(Executor.java:247)
> Caused by: hudson.remoting.RequestAbortedException: java.io.IOException:
> Unexpected termination of the channel
> at hudson.remoting.Request.abort(Request.java:299)
> at hudson.remoting.Channel.terminate(Channel.java:774)
> at
> hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:69)
> Caused by: 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.DataInputStream.readInt(DataInputStream.java:375)
> at
> java.io.ObjectInputStream$BlockDataInputStream.readInt(ObjectInputStream.java:2798)
> at java.io.ObjectInputStream.readInt(ObjectInputStream.java:948)
> at java.util.ArrayList.readObject(ArrayList.java:588)
> at sun.reflect.GeneratedMethodAccessor41.invoke(Unknown Source)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> "
>
> or
>
> "
> FATAL: hudson.remoting.RequestAbortedException: java.io.IOException:
> Sorry, this connection is closed. hudson.remoting.RequestAbortedException:
> hudson.remoting.RequestAbortedException: java.io.IOException: Sorry, this
> connection is closed. at
> hudson.remoting.RequestAbortedException.wrapForRethrow(RequestAbortedException.java:41)
> at
> hudson.remoting.RequestAbortedException.wrapForRethrow(RequestAbortedException.java:34)
> at hudson.remoting.Request.call(Request.java:174) at
> hudson.remoting.Channel.call(Channel.java:714) at
> hudson.FilePath.act(FilePath.java:898) at
> hudson.FilePath.act(FilePath.java:882) at
> hudson.scm.SubversionSCM.checkout(SubversionSCM.java:850) at
> hudson.scm.SubversionSCM.checkout(SubversionSCM.java:788) at
> hudson.model.AbstractProject.checkout(AbstractProject.java:1408) at
> hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:676)
> at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) at
> hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:581)
> at hudson.model.Run.execute(Run.java:1603) at
> hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:506) at
> hudson.model.ResourceController.execute(ResourceController.java:88) at
> hudson.model.Executor.run(Executor.java:247) Caused by:
> hudson.remoting.RequestAbortedException: java.io.IOException: Sorry, this
> connection is closed. at hudson.remoting.Request.abort(Request.java:299) at
> hudson.remoting.Channel.terminate(Channel.java:774) at
> hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:69)
> Caused by: java.io.IOException: Sorry, this connection is closed. at
> com.trilead.ssh2.transport.TransportManager.sendMessage(TransportManager.java:642)
> at com.trilead.ssh2.channel.Channel.freeupWindow(Channel.java:378) at
> com.trilead.ssh2.channel.ChannelManager.getChannelData(ChannelManager.java:953)
> at
> com.trilead.ssh2.channel.ChannelInputStream.read(ChannelInputStream.java:58)
> at
> hudson.remoting.FlightRecorderInputStream.read(FlightRecorderInputStream.java:85)
> at
> java.io.ObjectInputStream$PeekInputStream.read(ObjectInputStream.java:2288)
> at
> java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2301)
> at
> java.io.ObjectInputStream$BlockDataInputStream.readUTFBody(ObjectInputStream.java:3041)
> at
> java.io.ObjectInputStream$BlockDataInputStream.readUTF(ObjectInputStream.java:2842)
> at java.io.ObjectInputStream.readUTF(ObjectInputStream.java:1049) at
> java.io.ObjectStreamClass.readNonProxy(ObjectStreamClass.java:647) at
> java.io.ObjectInputStream.readClassDescriptor(ObjectInputStream.java:807)
> at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1578)
> at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1494) at
> java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1599) at
> java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1494) at
> java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1599) at
> java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1494) at
> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1748)
> at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1327) at
> java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1969) at
> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1893) at
> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1775)
> at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1327) at
> java.io.ObjectInputStream.readObject(ObjectInputStream.java:349) at
> hudson.remoting.Command.readFrom(Command.java:92) at
> hudson.remoting.ClassicCommandTransport.read(ClassicCommandTransport.java:71)
> at
> hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48)
> Caused by: java.io.IOException: Assertion error: sendMessage may never be
> invoked by the receiver thread! at
> com.trilead.ssh2.transport.TransportManager.sendMessage(TransportManager.java:634)
> at com.trilead.ssh2.channel.Channel.freeupWindow(Channel.java:378) at
> com.trilead.ssh2.channel.Channel$Output.write(Channel.java:97) at
> com.trilead.ssh2.channel.ChannelManager.msgChannelExtendedData(ChannelManager.java:858)
> at
> com.trilead.ssh2.channel.ChannelManager.handleMessage(ChannelManager.java:1517)
> at
> com.trilead.ssh2.transport.TransportManager.receiveLoop(TransportManager.java:780)
> at
> com.trilead.ssh2.transport.TransportManager$1.run(TransportManager.java:475)
> at java.lang.Thread.run(Thread.java:662)
> "
>
> Could it be related ?
>
> Did 1.3/1.5.1 could help a bit ?
>
> Thanks for your advices
>
>
> 2013/10/4 Stephen Connolly <stephen.alan.conno...@gmail.com>
> >
> > I found a number of bugs with the upgrade logic for handling
> pre-credentials integration to post-credentials integration.
> >
> > Version 1.3 of the SSH Slaves plugin should be *much* better at
> upgrading, and should identify and consolidate duplicate keys correctly (it
> was previously failing to pick up matches that differed in whitespace, etc)
> >
> > This version needs credentials 1.8.3 and ssh-credentials 1.5.1 (but
> should be "ok" with any of the credentials 1.7+ and ssh-credentials 1.4+ or
> to put it another way, if you forget to upgrade them your instance should
> not blow up, however you are *strongly* recommended to upgrade them anyway,
> e.g. ssh-credentials has some logic to help repair previously borked
> upgrade attempts)
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-dev+unsubscr...@googlegroups.com.
>
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to