Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-1572

SCP upload fails with ERROR: Failed to upload files

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: scp-plugin
    • Labels:
      None
    • Environment:
      Platform: PC, OS: Linux
    • Similar Issues:

      Description

      Uploading files using the SCP plugin (version 1.3) sometimes fails with strange
      exceptions (visible in the console output of the job, nothing to see in the
      server's log).

      ---------------------------------------------
      ERROR: Failed to upload files

      at com.jcraft.jsch.ChannelSftp.stat(Unknown Source)
      at be.certipost.hudson.plugin.SCPSite.upload(SCPSite.java:142)
      at
      be.certipost.hudson.plugin.SCPRepositoryPublisher.perform(SCPRepositoryPublisher.java:106)
      at
      hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:33)
      at
      hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:273)
      at
      hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:261)
      at hudson.model.Build$RunnerImpl.post2(Build.java:136)
      at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:246)
      at hudson.model.Run.run(Run.java:677)
      at hudson.model.Build.run(Build.java:101)
      at hudson.model.ResourceController.execute(ResourceController.java:70)
      at hudson.model.Executor.run(Executor.java:65)
      ---------------------------------------------
      ERROR: Failed to upload files
      Success
      at com.jcraft.jsch.ChannelSftp.throwStatusError(Unknown Source)
      at com.jcraft.jsch.ChannelSftp.stat(Unknown Source)
      at be.certipost.hudson.plugin.SCPSite.upload(SCPSite.java:142)
      at
      be.certipost.hudson.plugin.SCPRepositoryPublisher.perform(SCPRepositoryPublisher.java:106)
      at
      hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:33)
      at
      hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:273)
      at
      hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:261)
      at hudson.model.Build$RunnerImpl.post2(Build.java:136)
      at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:246)
      at hudson.model.Run.run(Run.java:677)
      at hudson.model.Build.run(Build.java:101)
      at hudson.model.ResourceController.execute(ResourceController.java:70)
      at hudson.model.Executor.run(Executor.java:65)
      ---------------------------------------------

      The exceptions happen from time to time - leaving the build as "UNSTABLE".
      Usually a rebuild fixes it.

        Attachments

          Activity

          Hide
          ramazanyich2 ramazanyich2 added a comment -

          please try it with latest version. If problem remains please provide stacktrace

          Show
          ramazanyich2 ramazanyich2 added a comment - please try it with latest version. If problem remains please provide stacktrace
          Hide
          telemetry telemetry added a comment - - edited

          We are having the same issue with SCP plugin 1.6 and Hudson v 1.355.

          Here is the output from the console :

          dpkg-deb: building package `telemetry-psql-cli' in `tmp-packaging.deb'.
          Debian: dist/Release/GNU-Linux-x86/package/telemetry-psql-cli_4.5.5.253_debian5.0-amd64.deb
          Archiving artifacts
          Sending e-mails to:
          [SCP] Connecting to development-repo
          ERROR: Failed to upload files
          com.jcraft.jsch.JSchException: session is down
          at com.jcraft.jsch.Channel.connect(Channel.java:172)
          at com.jcraft.jsch.Channel.connect(Channel.java:132)
          at be.certipost.hudson.plugin.SCPSite.createSession(SCPSite.java:154)
          at be.certipost.hudson.plugin.SCPRepositoryPublisher.perform(SCPRepositoryPublisher.java:106)
          at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
          at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:584)
          at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:564)
          at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:550)
          at hudson.model.Build$RunnerImpl.post2(Build.java:158)
          at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:528)
          at hudson.model.Run.run(Run.java:1267)
          at hudson.matrix.MatrixRun.run(MatrixRun.java:130)
          at hudson.model.ResourceController.execute(ResourceController.java:88)
          at hudson.model.Executor.run(Executor.java:122)
          Finished: UNSTABLE

          This turns all jobs into unstable.

          Show
          telemetry telemetry added a comment - - edited We are having the same issue with SCP plugin 1.6 and Hudson v 1.355. Here is the output from the console : dpkg-deb: building package `telemetry-psql-cli' in `tmp-packaging.deb'. Debian: dist/Release/GNU-Linux-x86/package/telemetry-psql-cli_4.5.5.253_debian5.0-amd64.deb Archiving artifacts Sending e-mails to: [SCP] Connecting to development-repo ERROR: Failed to upload files com.jcraft.jsch.JSchException: session is down at com.jcraft.jsch.Channel.connect(Channel.java:172) at com.jcraft.jsch.Channel.connect(Channel.java:132) at be.certipost.hudson.plugin.SCPSite.createSession(SCPSite.java:154) at be.certipost.hudson.plugin.SCPRepositoryPublisher.perform(SCPRepositoryPublisher.java:106) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:584) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:564) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:550) at hudson.model.Build$RunnerImpl.post2(Build.java:158) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:528) at hudson.model.Run.run(Run.java:1267) at hudson.matrix.MatrixRun.run(MatrixRun.java:130) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:122) Finished: UNSTABLE This turns all jobs into unstable.

            People

            • Assignee:
              Unassigned
              Reporter:
              kgoeser kgoeser
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: