[JIRA] Commented: (JENKINS-4658) Cannot launch mac slave via ssh

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[JIRA] Commented: (JENKINS-4658) Cannot launch mac slave via ssh

JIRA noreply@jenkins-ci.org

    [ http://issues.jenkins-ci.org/browse/JENKINS-4658?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=145808#comment-145808 ]

evernat commented on JENKINS-4658:
----------------------------------

google search uncovered this article which describes the problem:

http://www.snailbook.com/faq/sftp-corruption.auto.html

Bottom line: if a startup file on the remote system (.bashrc, .profile,
/etc/csh.cshrc, .login, etc.) has any statements that output text messages
on login (to be read by humans) then that output will corrupt the SFTP/SSH
session since it will be interpreted as a file-transfer protocol packet.

Resolution is to make sure that none of your startup files display text
for non-interactive shells. One way to test for an interactive shell
is:

case $- in
*i*) # do things for interactive shell
;;
*) # do things for non-interactive shell
;;
esac


Did you have a solution on this issue?

> Cannot launch mac slave via ssh
> -------------------------------
>
>                 Key: JENKINS-4658
>                 URL: http://issues.jenkins-ci.org/browse/JENKINS-4658
>             Project: Jenkins
>          Issue Type: Bug
>          Components: master-slave
>    Affects Versions: current
>         Environment: Platform: All, OS: All
>            Reporter: lidiam
>            Assignee: Kohsuke Kawaguchi
>
> Starting with version 1.327 of hudson, it fails to start mac slave via ssh with
> the following error:
> [10/09/09 12:33:30] [SSH] Checking java version of java
> [10/09/09 12:33:30] [SSH] java -version returned 1.6.0_07.
> [10/09/09 12:33:30] [SSH] Starting sftp client.
> java.io.IOException: Illegal sftp packet len: 1634494817
>     at com.trilead.ssh2.SFTPv3Client.receiveMessage(SFTPv3Client.java:246)
>     at com.trilead.ssh2.SFTPv3Client.init(SFTPv3Client.java:865)
>     at com.trilead.ssh2.SFTPv3Client.<init>(SFTPv3Client.java:109)
>     at com.trilead.ssh2.SFTPv3Client.<init>(SFTPv3Client.java:120)
>     at hudson.plugins.sshslaves.SSHLauncher.copySlaveJar(SSHLauncher.java:263)
>     at hudson.plugins.sshslaves.SSHLauncher.launch(SSHLauncher.java:178)
>     at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:178)
>     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
>     at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>     at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>     at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>     at java.lang.Thread.run(Thread.java:619)
> [10/09/09 12:33:30] [SSH] Connection closed
> The ssh used on mac is:
> riverside:~ hudson$ ssh -version
> OpenSSH_5.1p1, OpenSSL 0.9.7l 28 Sep 2006
> Mac:
> riverside:~ hudson$ uname -a
> Darwin riverside.SFBay.Sun.COM 9.7.0 Darwin Kernel Version 9.7.0: Tue Mar 31
> 22:52:17 PDT 2009; root:xnu-1228.12.14~1/RELEASE_I386 i386
> This slave startup worked prior to hudson version 1.327.

--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira