jenkins.plugins.publish_over.BapPublisherException: Failed to connect session for config [xyz (target host)]. Message [verify: false]

Jenkins JIRA | ismail demirel | 3 years ago
  1. 0

    Hi, we are using PublishOverSSHPlugin in a lot of jenkins jobs and they fail occasionally with the error *verify: false* {noformat} SSH: Connecting from host [foo] SSH: Connecting with configuration [xyz (target host)] ... ERROR: Exception when publishing, exception message [Failed to connect session for config [xyz (target host)]. Message [verify: false]] Build step 'Send files or execute commands over SSH' changed build result to FAILURE Build step 'Send files or execute commands over SSH' marked build as failure {noformat} i found the the following strack traces in jenkins.log for this issue {noformat} Sep 30, 2013 12:01:19 AM jenkins.plugins.publish_over_ssh.BapSshHostConfiguration connect Warning: Failed to connect session for config [xyz (target host)]. Message [verify: false] com.jcraft.jsch.JSchException: verify: false at com.jcraft.jsch.Session.connect(Session.java:305) at jenkins.plugins.publish_over_ssh.BapSshHostConfiguration.connect(BapSshHostConfiguration.java:221) at jenkins.plugins.publish_over_ssh.BapSshHostConfiguration.createClient(BapSshHostConfiguration.java:135) at jenkins.plugins.publish_over_ssh.BapSshHostConfiguration.createClient(BapSshHostConfiguration.java:112) at jenkins.plugins.publish_over_ssh.BapSshHostConfiguration.createClient(BapSshHostConfiguration.java:51) at jenkins.plugins.publish_over.BapPublisher$Performer.perform(BapPublisher.java:229) at jenkins.plugins.publish_over.BapPublisher$Performer.access$000(BapPublisher.java:205) at jenkins.plugins.publish_over.BapPublisher.perform(BapPublisher.java:158) at jenkins.plugins.publish_over.BPCallablePublisher.invoke(BPCallablePublisher.java:64) at jenkins.plugins.publish_over.BPCallablePublisher.invoke(BPCallablePublisher.java:37) at hudson.FilePath.act(FilePath.java:906) at hudson.FilePath.act(FilePath.java:879) at jenkins.plugins.publish_over.BPInstanceConfig.perform(BPInstanceConfig.java:138) at jenkins.plugins.publish_over.BPPlugin.perform(BPPlugin.java:111) at jenkins.plugins.publish_over_ssh.BapSshBuilderPlugin.perform(BapSshBuilderPlugin.java:64) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804) at hudson.model.Build$BuildExecution.build(Build.java:199) at hudson.model.Build$BuildExecution.doRun(Build.java:160) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:586) at hudson.model.Run.execute(Run.java:1593) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:247) Sep 30, 2013 12:01:19 AM jenkins.plugins.publish_over.BPCallablePublisher invoke Warning: Exception when publishing, exception message [Failed to connect session for config [xyz (target host)]. Message [verify: false]] jenkins.plugins.publish_over.BapPublisherException: Failed to connect session for config [xyz (target host)]. Message [verify: false] at jenkins.plugins.publish_over_ssh.BapSshHostConfiguration.connect(BapSshHostConfiguration.java:225) at jenkins.plugins.publish_over_ssh.BapSshHostConfiguration.createClient(BapSshHostConfiguration.java:135) at jenkins.plugins.publish_over_ssh.BapSshHostConfiguration.createClient(BapSshHostConfiguration.java:112) at jenkins.plugins.publish_over_ssh.BapSshHostConfiguration.createClient(BapSshHostConfiguration.java:51) at jenkins.plugins.publish_over.BapPublisher$Performer.perform(BapPublisher.java:229) at jenkins.plugins.publish_over.BapPublisher$Performer.access$000(BapPublisher.java:205) at jenkins.plugins.publish_over.BapPublisher.perform(BapPublisher.java:158) at jenkins.plugins.publish_over.BPCallablePublisher.invoke(BPCallablePublisher.java:64) at jenkins.plugins.publish_over.BPCallablePublisher.invoke(BPCallablePublisher.java:37) at hudson.FilePath.act(FilePath.java:906) at hudson.FilePath.act(FilePath.java:879) at jenkins.plugins.publish_over.BPInstanceConfig.perform(BPInstanceConfig.java:138) at jenkins.plugins.publish_over.BPPlugin.perform(BPPlugin.java:111) at jenkins.plugins.publish_over_ssh.BapSshBuilderPlugin.perform(BapSshBuilderPlugin.java:64) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804) at hudson.model.Build$BuildExecution.build(Build.java:199) at hudson.model.Build$BuildExecution.doRun(Build.java:160) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:586) at hudson.model.Run.execute(Run.java:1593) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:247) Sep 30, 2013 12:01:19 AM jenkins.plugins.publish_over.BPInstanceConfig perform Warning: An exception was caught when invoking perform jenkins.plugins.publish_over.BapPublisherException: Exception when publishing, exception message [Failed to connect session for config [xyz (target host)]. Message [verify: false]] at jenkins.plugins.publish_over.BPCallablePublisher.invoke(BPCallablePublisher.java:68) at jenkins.plugins.publish_over.BPCallablePublisher.invoke(BPCallablePublisher.java:37) at hudson.FilePath.act(FilePath.java:906) at hudson.FilePath.act(FilePath.java:879) at jenkins.plugins.publish_over.BPInstanceConfig.perform(BPInstanceConfig.java:138) at jenkins.plugins.publish_over.BPPlugin.perform(BPPlugin.java:111) at jenkins.plugins.publish_over_ssh.BapSshBuilderPlugin.perform(BapSshBuilderPlugin.java:64) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804) at hudson.model.Build$BuildExecution.build(Build.java:199) at hudson.model.Build$BuildExecution.doRun(Build.java:160) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:586) at hudson.model.Run.execute(Run.java:1593) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:247) Caused by: jenkins.plugins.publish_over.BapPublisherException: Failed to connect session for config [xyz (target host)]. Message [verify: false] at jenkins.plugins.publish_over_ssh.BapSshHostConfiguration.connect(BapSshHostConfiguration.java:225) at jenkins.plugins.publish_over_ssh.BapSshHostConfiguration.createClient(BapSshHostConfiguration.java:135) at jenkins.plugins.publish_over_ssh.BapSshHostConfiguration.createClient(BapSshHostConfiguration.java:112) at jenkins.plugins.publish_over_ssh.BapSshHostConfiguration.createClient(BapSshHostConfiguration.java:51) at jenkins.plugins.publish_over.BapPublisher$Performer.perform(BapPublisher.java:229) at jenkins.plugins.publish_over.BapPublisher$Performer.access$000(BapPublisher.java:205) at jenkins.plugins.publish_over.BapPublisher.perform(BapPublisher.java:158) at jenkins.plugins.publish_over.BPCallablePublisher.invoke(BPCallablePublisher.java:64) ... 15 more {noformat} Since jsch-0.1.50 this issue is fixed ( see the changelog of jsch http://www.jcraft.com/jsch/ChangeLog ). Currently, PublicOverSSHPlugin uses jsch-0.1.45.

    Jenkins JIRA | 3 years ago | ismail demirel
    jenkins.plugins.publish_over.BapPublisherException: Failed to connect session for config [xyz (target host)]. Message [verify: false]
  2. 0

    Hi, we are using PublishOverSSHPlugin in a lot of jenkins jobs and they fail occasionally with the error *verify: false* {noformat} SSH: Connecting from host [foo] SSH: Connecting with configuration [xyz (target host)] ... ERROR: Exception when publishing, exception message [Failed to connect session for config [xyz (target host)]. Message [verify: false]] Build step 'Send files or execute commands over SSH' changed build result to FAILURE Build step 'Send files or execute commands over SSH' marked build as failure {noformat} i found the the following strack traces in jenkins.log for this issue {noformat} Sep 30, 2013 12:01:19 AM jenkins.plugins.publish_over_ssh.BapSshHostConfiguration connect Warning: Failed to connect session for config [xyz (target host)]. Message [verify: false] com.jcraft.jsch.JSchException: verify: false at com.jcraft.jsch.Session.connect(Session.java:305) at jenkins.plugins.publish_over_ssh.BapSshHostConfiguration.connect(BapSshHostConfiguration.java:221) at jenkins.plugins.publish_over_ssh.BapSshHostConfiguration.createClient(BapSshHostConfiguration.java:135) at jenkins.plugins.publish_over_ssh.BapSshHostConfiguration.createClient(BapSshHostConfiguration.java:112) at jenkins.plugins.publish_over_ssh.BapSshHostConfiguration.createClient(BapSshHostConfiguration.java:51) at jenkins.plugins.publish_over.BapPublisher$Performer.perform(BapPublisher.java:229) at jenkins.plugins.publish_over.BapPublisher$Performer.access$000(BapPublisher.java:205) at jenkins.plugins.publish_over.BapPublisher.perform(BapPublisher.java:158) at jenkins.plugins.publish_over.BPCallablePublisher.invoke(BPCallablePublisher.java:64) at jenkins.plugins.publish_over.BPCallablePublisher.invoke(BPCallablePublisher.java:37) at hudson.FilePath.act(FilePath.java:906) at hudson.FilePath.act(FilePath.java:879) at jenkins.plugins.publish_over.BPInstanceConfig.perform(BPInstanceConfig.java:138) at jenkins.plugins.publish_over.BPPlugin.perform(BPPlugin.java:111) at jenkins.plugins.publish_over_ssh.BapSshBuilderPlugin.perform(BapSshBuilderPlugin.java:64) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804) at hudson.model.Build$BuildExecution.build(Build.java:199) at hudson.model.Build$BuildExecution.doRun(Build.java:160) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:586) at hudson.model.Run.execute(Run.java:1593) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:247) Sep 30, 2013 12:01:19 AM jenkins.plugins.publish_over.BPCallablePublisher invoke Warning: Exception when publishing, exception message [Failed to connect session for config [xyz (target host)]. Message [verify: false]] jenkins.plugins.publish_over.BapPublisherException: Failed to connect session for config [xyz (target host)]. Message [verify: false] at jenkins.plugins.publish_over_ssh.BapSshHostConfiguration.connect(BapSshHostConfiguration.java:225) at jenkins.plugins.publish_over_ssh.BapSshHostConfiguration.createClient(BapSshHostConfiguration.java:135) at jenkins.plugins.publish_over_ssh.BapSshHostConfiguration.createClient(BapSshHostConfiguration.java:112) at jenkins.plugins.publish_over_ssh.BapSshHostConfiguration.createClient(BapSshHostConfiguration.java:51) at jenkins.plugins.publish_over.BapPublisher$Performer.perform(BapPublisher.java:229) at jenkins.plugins.publish_over.BapPublisher$Performer.access$000(BapPublisher.java:205) at jenkins.plugins.publish_over.BapPublisher.perform(BapPublisher.java:158) at jenkins.plugins.publish_over.BPCallablePublisher.invoke(BPCallablePublisher.java:64) at jenkins.plugins.publish_over.BPCallablePublisher.invoke(BPCallablePublisher.java:37) at hudson.FilePath.act(FilePath.java:906) at hudson.FilePath.act(FilePath.java:879) at jenkins.plugins.publish_over.BPInstanceConfig.perform(BPInstanceConfig.java:138) at jenkins.plugins.publish_over.BPPlugin.perform(BPPlugin.java:111) at jenkins.plugins.publish_over_ssh.BapSshBuilderPlugin.perform(BapSshBuilderPlugin.java:64) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804) at hudson.model.Build$BuildExecution.build(Build.java:199) at hudson.model.Build$BuildExecution.doRun(Build.java:160) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:586) at hudson.model.Run.execute(Run.java:1593) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:247) Sep 30, 2013 12:01:19 AM jenkins.plugins.publish_over.BPInstanceConfig perform Warning: An exception was caught when invoking perform jenkins.plugins.publish_over.BapPublisherException: Exception when publishing, exception message [Failed to connect session for config [xyz (target host)]. Message [verify: false]] at jenkins.plugins.publish_over.BPCallablePublisher.invoke(BPCallablePublisher.java:68) at jenkins.plugins.publish_over.BPCallablePublisher.invoke(BPCallablePublisher.java:37) at hudson.FilePath.act(FilePath.java:906) at hudson.FilePath.act(FilePath.java:879) at jenkins.plugins.publish_over.BPInstanceConfig.perform(BPInstanceConfig.java:138) at jenkins.plugins.publish_over.BPPlugin.perform(BPPlugin.java:111) at jenkins.plugins.publish_over_ssh.BapSshBuilderPlugin.perform(BapSshBuilderPlugin.java:64) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804) at hudson.model.Build$BuildExecution.build(Build.java:199) at hudson.model.Build$BuildExecution.doRun(Build.java:160) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:586) at hudson.model.Run.execute(Run.java:1593) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:247) Caused by: jenkins.plugins.publish_over.BapPublisherException: Failed to connect session for config [xyz (target host)]. Message [verify: false] at jenkins.plugins.publish_over_ssh.BapSshHostConfiguration.connect(BapSshHostConfiguration.java:225) at jenkins.plugins.publish_over_ssh.BapSshHostConfiguration.createClient(BapSshHostConfiguration.java:135) at jenkins.plugins.publish_over_ssh.BapSshHostConfiguration.createClient(BapSshHostConfiguration.java:112) at jenkins.plugins.publish_over_ssh.BapSshHostConfiguration.createClient(BapSshHostConfiguration.java:51) at jenkins.plugins.publish_over.BapPublisher$Performer.perform(BapPublisher.java:229) at jenkins.plugins.publish_over.BapPublisher$Performer.access$000(BapPublisher.java:205) at jenkins.plugins.publish_over.BapPublisher.perform(BapPublisher.java:158) at jenkins.plugins.publish_over.BPCallablePublisher.invoke(BPCallablePublisher.java:64) ... 15 more {noformat} Since jsch-0.1.50 this issue is fixed ( see the changelog of jsch http://www.jcraft.com/jsch/ChangeLog ). Currently, PublicOverSSHPlugin uses jsch-0.1.45.

    Jenkins JIRA | 3 years ago | ismail demirel
    jenkins.plugins.publish_over.BapPublisherException: Failed to connect session for config [xyz (target host)]. Message [verify: false]
  3. 0

    Issue with Publish Over ssh : ssh fails to connect

    Google Groups | 3 years ago | Jagan Kalluri
    jenkins.plugins.publish_over.BapPublisherException: Failed to connect session for config [xxxxxxx@xxxxxxxxxxx]. Message [Auth fail]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Full stack trace: {code:java} [java.net.SocketException: Network is unreachable]] jenkins.plugins.publish_over.BapPublisherException: Failed to connect session for config [serv]. Message [java.net.SocketException: Network is unreachable] at jenkins.plugins.publish_over_ssh.BapSshHostConfiguration.connect(BapSshHostConfiguration.java:228) at jenkins.plugins.publish_over_ssh.BapSshHostConfiguration.createClient(BapSshHostConfiguration.java:138) at jenkins.plugins.publish_over_ssh.BapSshHostConfiguration.createClient(BapSshHostConfiguration.java:115) at jenkins.plugins.publish_over_ssh.BapSshHostConfiguration.createClient(BapSshHostConfiguration.java:51) at jenkins.plugins.publish_over.BapPublisher$Performer.perform(BapPublisher.java:229) at jenkins.plugins.publish_over.BapPublisher$Performer.access$000(BapPublisher.java:205) at jenkins.plugins.publish_over.BapPublisher.perform(BapPublisher.java:158) at jenkins.plugins.publish_over.BPCallablePublisher.invoke(BPCallablePublisher.java:64) at jenkins.plugins.publish_over.BPCallablePublisher.invoke(BPCallablePublisher.java:37) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2688) at hudson.remoting.UserRequest.perform(UserRequest.java:121) at hudson.remoting.UserRequest.perform(UserRequest.java:49) at hudson.remoting.Request$2.run(Request.java:325) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68) at java.util.concurrent.FutureTask.run(FutureTask.java:273) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1176) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) at java.lang.Thread.run(Thread.java:795) {code}

    Jenkins JIRA | 1 year ago | Kirill Merkushev
    jenkins.plugins.publish_over.BapPublisherException: Failed to connect session for config [serv]. Message [java.net.SocketException: Network is unreachable]
  6. 0

    Full stack trace: {code:java} [java.net.SocketException: Network is unreachable]] jenkins.plugins.publish_over.BapPublisherException: Failed to connect session for config [serv]. Message [java.net.SocketException: Network is unreachable] at jenkins.plugins.publish_over_ssh.BapSshHostConfiguration.connect(BapSshHostConfiguration.java:228) at jenkins.plugins.publish_over_ssh.BapSshHostConfiguration.createClient(BapSshHostConfiguration.java:138) at jenkins.plugins.publish_over_ssh.BapSshHostConfiguration.createClient(BapSshHostConfiguration.java:115) at jenkins.plugins.publish_over_ssh.BapSshHostConfiguration.createClient(BapSshHostConfiguration.java:51) at jenkins.plugins.publish_over.BapPublisher$Performer.perform(BapPublisher.java:229) at jenkins.plugins.publish_over.BapPublisher$Performer.access$000(BapPublisher.java:205) at jenkins.plugins.publish_over.BapPublisher.perform(BapPublisher.java:158) at jenkins.plugins.publish_over.BPCallablePublisher.invoke(BPCallablePublisher.java:64) at jenkins.plugins.publish_over.BPCallablePublisher.invoke(BPCallablePublisher.java:37) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2688) at hudson.remoting.UserRequest.perform(UserRequest.java:121) at hudson.remoting.UserRequest.perform(UserRequest.java:49) at hudson.remoting.Request$2.run(Request.java:325) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68) at java.util.concurrent.FutureTask.run(FutureTask.java:273) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1176) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) at java.lang.Thread.run(Thread.java:795) {code}

    Jenkins JIRA | 1 year ago | Kirill Merkushev
    jenkins.plugins.publish_over.BapPublisherException: Failed to connect session for config [serv]. Message [java.net.SocketException: Network is unreachable]

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. jenkins.plugins.publish_over.BapPublisherException

      Failed to connect session for config [xyz (target host)]. Message [verify: false]

      at jenkins.plugins.publish_over_ssh.BapSshHostConfiguration.connect()
    2. jenkins.plugins.publish_over_ssh
      BapSshHostConfiguration.createClient
      1. jenkins.plugins.publish_over_ssh.BapSshHostConfiguration.connect(BapSshHostConfiguration.java:225)
      2. jenkins.plugins.publish_over_ssh.BapSshHostConfiguration.createClient(BapSshHostConfiguration.java:135)
      3. jenkins.plugins.publish_over_ssh.BapSshHostConfiguration.createClient(BapSshHostConfiguration.java:112)
      4. jenkins.plugins.publish_over_ssh.BapSshHostConfiguration.createClient(BapSshHostConfiguration.java:51)
      4 frames
    3. jenkins.plugins.publish_over
      BPCallablePublisher.invoke
      1. jenkins.plugins.publish_over.BapPublisher$Performer.perform(BapPublisher.java:229)
      2. jenkins.plugins.publish_over.BapPublisher$Performer.access$000(BapPublisher.java:205)
      3. jenkins.plugins.publish_over.BapPublisher.perform(BapPublisher.java:158)
      4. jenkins.plugins.publish_over.BPCallablePublisher.invoke(BPCallablePublisher.java:64)
      5. jenkins.plugins.publish_over.BPCallablePublisher.invoke(BPCallablePublisher.java:37)
      5 frames
    4. Hudson
      FilePath.act
      1. hudson.FilePath.act(FilePath.java:906)
      2. hudson.FilePath.act(FilePath.java:879)
      2 frames
    5. jenkins.plugins.publish_over
      BPPlugin.perform
      1. jenkins.plugins.publish_over.BPInstanceConfig.perform(BPInstanceConfig.java:138)
      2. jenkins.plugins.publish_over.BPPlugin.perform(BPPlugin.java:111)
      2 frames
    6. jenkins.plugins.publish_over_ssh
      BapSshBuilderPlugin.perform
      1. jenkins.plugins.publish_over_ssh.BapSshBuilderPlugin.perform(BapSshBuilderPlugin.java:64)
      1 frame
    7. Hudson
      Executor.run
      1. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804)
      3. hudson.model.Build$BuildExecution.build(Build.java:199)
      4. hudson.model.Build$BuildExecution.doRun(Build.java:160)
      5. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:586)
      6. hudson.model.Run.execute(Run.java:1593)
      7. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      8. hudson.model.ResourceController.execute(ResourceController.java:88)
      9. hudson.model.Executor.run(Executor.java:247)
      9 frames