-
Bug
-
Resolution: Won't Fix
-
Major
-
Jenkins 2.360, jsch 0.1.55.2 , Mac OS X Monterey
I have different build projects which automate builds for IOS and Android Mobile Applications.... For IOS we do an SSH to a MAC and run all the commands and scripts there so we can have access to the Keychain and required libs for Apple.
We had to upgrade our MAC to Monterey and our Jenkins Builds are failing at the Step of doing a Remote SFTP Download to bring back the binaries to Jenkins UI.
FYI Jenkins is running inside a container
If I run the same Build Process from Jenkin to a Mac OSX Catalina Machine everything works fine
I saw this post which let me to believe that the problem happened before and was fixed and now its back again
https://issues.jenkins.io/browse/JENKINS-55645
The Error is:
14:13:07 ##########################################################################
14:13:07 execute on server -- M1_SERVERS_GROUP~~M1_MACBOOK_PRO~~192.168.20.150
14:13:07 create ssh session failed with ip=[192.168.20.150],port=[22],username=[pidouminou],password=[*******]
14:13:07 com.jcraft.jsch.JSchException: Algorithm negotiation fail
14:13:07 at com.jcraft.jsch.Session.receive_kexinit(Session.java:552)
14:13:07 at com.jcraft.jsch.Session.connect(Session.java:299)
14:13:07 at com.jcraft.jsch.Session.connect(Session.java:162)
14:13:07 at jenkins.plugins.ssh2easy.gssh.client.DefaultSshClient.createSession(DefaultSshClient.java:75)
14:13:07 at jenkins.plugins.ssh2easy.gssh.client.DefaultSshClient.downloadFile(DefaultSshClient.java:141)
14:13:07 at jenkins.plugins.ssh2easy.gssh.GsshFtpDownloadBuilder.perform(GsshFtpDownloadBuilder.java:77)
14:13:07 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
14:13:07 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:816)
14:13:07 at hudson.model.Build$BuildExecution.build(Build.java:199)
14:13:07 at hudson.model.Build$BuildExecution.doRun(Build.java:164)
14:13:07 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:524)
14:13:07 at hudson.model.Run.execute(Run.java:1899)
14:13:07 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44)
14:13:07 at hudson.model.ResourceController.execute(ResourceController.java:107)
14:13:07 at hudson.model.Executor.run(Executor.java:449)
14:13:07 [GSSH - SFTP] Exception:[GSSH - SFTP] Exception Algorithm negotiation fail
14:13:07 jenkins.plugins.ssh2easy.gssh.GsshPluginException: [GSSH - SFTP] Exception Algorithm negotiation fail
14:13:07 at jenkins.plugins.ssh2easy.gssh.client.DefaultSshClient.createSession(DefaultSshClient.java:84)
14:13:07 at jenkins.plugins.ssh2easy.gssh.client.DefaultSshClient.downloadFile(DefaultSshClient.java:141)
14:13:07 at jenkins.plugins.ssh2easy.gssh.GsshFtpDownloadBuilder.perform(GsshFtpDownloadBuilder.java:77)
14:13:07 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
14:13:07 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:816)
14:13:07 at hudson.model.Build$BuildExecution.build(Build.java:199)
14:13:07 at hudson.model.Build$BuildExecution.doRun(Build.java:164)
14:13:07 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:524)
14:13:07 at hudson.model.Run.execute(Run.java:1899)
14:13:07 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44)
14:13:07 at hudson.model.ResourceController.execute(ResourceController.java:107)
14:13:07 at hudson.model.Executor.run(Executor.java:449)
14:13:07 Caused by: com.jcraft.jsch.JSchException: Algorithm negotiation fail
14:13:07 at com.jcraft.jsch.Session.receive_kexinit(Session.java:552)
14:13:07 at com.jcraft.jsch.Session.connect(Session.java:299)
14:13:07 at com.jcraft.jsch.Session.connect(Session.java:162)
14:13:07 at jenkins.plugins.ssh2easy.gssh.client.DefaultSshClient.createSession(DefaultSshClient.java:75)
14:13:07 ... 11 more
14:13:07 Build step 'Remote SFTP Download' marked build as failure
- relates to
-
JENKINS-71273 Gerrit Trigger fails to connect Gerrit 2.14 - com.jcraft.jsch.JSchException: verify: false
-
- Open
-
-
JENKINS-56031 SSH plugin fails intermittently because of issue with JSch
-
- Open
-
[JENKINS-69150] jsch plugin prevents Remote SFTP Plugin From Working on MacOS Monterey
Description |
Original:
I have different build projects which automate builds for IOS and Android Mobile Applications.... For IOS we do an SSH to a MAC and run all the commands and scripts there so we can have access to the Keychain and required libs for Apple.
We had to upgrade our MAC to Monterey and our Jenkins Builds are failing et the Step of doing a Remote SFTP Download to bring back the binaries to Jenkins UI. If I run the same Build Process from Jenkin to a Mac OSX Catalina Machine everything works fine The Error is: {code:java} 14:13:07 ########################################################################## 14:13:07 execute on server -- M1_SERVERS_GROUP~~M1_MACBOOK_PRO~~192.168.20.150 14:13:07 create ssh session failed with ip=[192.168.20.150],port=[22],username=[pidouminou],password=[*******] 14:13:07 com.jcraft.jsch.JSchException: Algorithm negotiation fail 14:13:07 at com.jcraft.jsch.Session.receive_kexinit(Session.java:552) 14:13:07 at com.jcraft.jsch.Session.connect(Session.java:299) 14:13:07 at com.jcraft.jsch.Session.connect(Session.java:162) 14:13:07 at jenkins.plugins.ssh2easy.gssh.client.DefaultSshClient.createSession(DefaultSshClient.java:75) 14:13:07 at jenkins.plugins.ssh2easy.gssh.client.DefaultSshClient.downloadFile(DefaultSshClient.java:141) 14:13:07 at jenkins.plugins.ssh2easy.gssh.GsshFtpDownloadBuilder.perform(GsshFtpDownloadBuilder.java:77) 14:13:07 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) 14:13:07 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:816) 14:13:07 at hudson.model.Build$BuildExecution.build(Build.java:199) 14:13:07 at hudson.model.Build$BuildExecution.doRun(Build.java:164) 14:13:07 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:524) 14:13:07 at hudson.model.Run.execute(Run.java:1899) 14:13:07 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44) 14:13:07 at hudson.model.ResourceController.execute(ResourceController.java:107) 14:13:07 at hudson.model.Executor.run(Executor.java:449) 14:13:07 [GSSH - SFTP] Exception:[GSSH - SFTP] Exception Algorithm negotiation fail 14:13:07 jenkins.plugins.ssh2easy.gssh.GsshPluginException: [GSSH - SFTP] Exception Algorithm negotiation fail 14:13:07 at jenkins.plugins.ssh2easy.gssh.client.DefaultSshClient.createSession(DefaultSshClient.java:84) 14:13:07 at jenkins.plugins.ssh2easy.gssh.client.DefaultSshClient.downloadFile(DefaultSshClient.java:141) 14:13:07 at jenkins.plugins.ssh2easy.gssh.GsshFtpDownloadBuilder.perform(GsshFtpDownloadBuilder.java:77) 14:13:07 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) 14:13:07 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:816) 14:13:07 at hudson.model.Build$BuildExecution.build(Build.java:199) 14:13:07 at hudson.model.Build$BuildExecution.doRun(Build.java:164) 14:13:07 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:524) 14:13:07 at hudson.model.Run.execute(Run.java:1899) 14:13:07 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44) 14:13:07 at hudson.model.ResourceController.execute(ResourceController.java:107) 14:13:07 at hudson.model.Executor.run(Executor.java:449) 14:13:07 Caused by: com.jcraft.jsch.JSchException: Algorithm negotiation fail 14:13:07 at com.jcraft.jsch.Session.receive_kexinit(Session.java:552) 14:13:07 at com.jcraft.jsch.Session.connect(Session.java:299) 14:13:07 at com.jcraft.jsch.Session.connect(Session.java:162) 14:13:07 at jenkins.plugins.ssh2easy.gssh.client.DefaultSshClient.createSession(DefaultSshClient.java:75) 14:13:07 ... 11 more 14:13:07 Build step 'Remote SFTP Download' marked build as failure{code} |
New:
I have different build projects which automate builds for IOS and Android Mobile Applications.... For IOS we do an SSH to a MAC and run all the commands and scripts there so we can have access to the Keychain and required libs for Apple.
We had to upgrade our MAC to Monterey and our Jenkins Builds are failing at the Step of doing a Remote SFTP Download to bring back the binaries to Jenkins UI. FYI Jenkins is running inside a container If I run the same Build Process from Jenkin to a Mac OSX Catalina Machine everything works fine I saw this post which let me to believe that the problem happened before and was fixed and now its back again https://issues.jenkins.io/browse/JENKINS-55645 The Error is: {code:java} 14:13:07 ########################################################################## 14:13:07 execute on server -- M1_SERVERS_GROUP~~M1_MACBOOK_PRO~~192.168.20.150 14:13:07 create ssh session failed with ip=[192.168.20.150],port=[22],username=[pidouminou],password=[*******] 14:13:07 com.jcraft.jsch.JSchException: Algorithm negotiation fail 14:13:07 at com.jcraft.jsch.Session.receive_kexinit(Session.java:552) 14:13:07 at com.jcraft.jsch.Session.connect(Session.java:299) 14:13:07 at com.jcraft.jsch.Session.connect(Session.java:162) 14:13:07 at jenkins.plugins.ssh2easy.gssh.client.DefaultSshClient.createSession(DefaultSshClient.java:75) 14:13:07 at jenkins.plugins.ssh2easy.gssh.client.DefaultSshClient.downloadFile(DefaultSshClient.java:141) 14:13:07 at jenkins.plugins.ssh2easy.gssh.GsshFtpDownloadBuilder.perform(GsshFtpDownloadBuilder.java:77) 14:13:07 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) 14:13:07 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:816) 14:13:07 at hudson.model.Build$BuildExecution.build(Build.java:199) 14:13:07 at hudson.model.Build$BuildExecution.doRun(Build.java:164) 14:13:07 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:524) 14:13:07 at hudson.model.Run.execute(Run.java:1899) 14:13:07 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44) 14:13:07 at hudson.model.ResourceController.execute(ResourceController.java:107) 14:13:07 at hudson.model.Executor.run(Executor.java:449) 14:13:07 [GSSH - SFTP] Exception:[GSSH - SFTP] Exception Algorithm negotiation fail 14:13:07 jenkins.plugins.ssh2easy.gssh.GsshPluginException: [GSSH - SFTP] Exception Algorithm negotiation fail 14:13:07 at jenkins.plugins.ssh2easy.gssh.client.DefaultSshClient.createSession(DefaultSshClient.java:84) 14:13:07 at jenkins.plugins.ssh2easy.gssh.client.DefaultSshClient.downloadFile(DefaultSshClient.java:141) 14:13:07 at jenkins.plugins.ssh2easy.gssh.GsshFtpDownloadBuilder.perform(GsshFtpDownloadBuilder.java:77) 14:13:07 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) 14:13:07 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:816) 14:13:07 at hudson.model.Build$BuildExecution.build(Build.java:199) 14:13:07 at hudson.model.Build$BuildExecution.doRun(Build.java:164) 14:13:07 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:524) 14:13:07 at hudson.model.Run.execute(Run.java:1899) 14:13:07 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44) 14:13:07 at hudson.model.ResourceController.execute(ResourceController.java:107) 14:13:07 at hudson.model.Executor.run(Executor.java:449) 14:13:07 Caused by: com.jcraft.jsch.JSchException: Algorithm negotiation fail 14:13:07 at com.jcraft.jsch.Session.receive_kexinit(Session.java:552) 14:13:07 at com.jcraft.jsch.Session.connect(Session.java:299) 14:13:07 at com.jcraft.jsch.Session.connect(Session.java:162) 14:13:07 at jenkins.plugins.ssh2easy.gssh.client.DefaultSshClient.createSession(DefaultSshClient.java:75) 14:13:07 ... 11 more 14:13:07 Build step 'Remote SFTP Download' marked build as failure{code} |
Link | New: This issue relates to JENKINS-56031 [ JENKINS-56031 ] |
Link | New: This issue relates to JENKINS-71273 [ JENKINS-71273 ] |
Resolution | New: Won't Fix [ 2 ] | |
Status | Original: Open [ 1 ] | New: Closed [ 6 ] |
Please consider this PR that should fix the issue.
https://github.com/jenkinsci/jsch-plugin/pull/33