java.io.IOException: Error during sending command

Google Groups | bertrand...@cor-net.org (JIRA) | 3 months ago
  1. 0

    [JIRA] (JENKINS-20808) Escaping of single quotes in commit message fails

    Google Groups | 3 months ago | bertrand...@cor-net.org (JIRA)
    java.io.IOException: Error during sending command
  2. 0

    [JIRA] (JENKINS-39132) No comments to gerrit for Change Merged trigger

    Google Groups | 2 months ago | Eng...@gmail.com (JIRA)
    java.io.IOException: Error during sending command
  3. 0

    Sometimes adding comments "Build Started" by gerrit-trigger-plugin from specific Jenkins server *more than 2 jobs running* to Gerrit server, fails. In case Jenkins has 2 jobs and these are triggered by uploaded patchset on gerrit, either "Build Started ... (1/2)" or "Build Started ... (2/2)" cannot be upload occasionally . Here is the stacktrace, issue happens in gerrit-events package : {code:java} java.io.IOException: Error during sending command at com.sonymobile.tools.gerrit.gerritevents.workers.cmd.AbstractSendCommandJob.sendCommand2(AbstractSendCommandJob.java:118) at com.sonymobile.tools.gerrit.gerritevents.workers.cmd.AbstractSendCommandJob.sendCommand(AbstractSendCommandJob.java:79) at com.sonyericsson.hudson.plugins.gerrit.trigger.gerritnotifier.GerritNotifier.buildStarted(GerritNotifier.java:88) at com.sonyericsson.hudson.plugins.gerrit.trigger.gerritnotifier.job.ssh.BuildStartedCommandJob.run(BuildStartedCommandJob.java:80) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Caused by: com.sonymobile.tools.gerrit.gerritevents.ssh.SshException: error: Cannot post review one or more reviews failed; review output above (1) at com.sonymobile.tools.gerrit.gerritevents.ssh.SshConnectionImpl.executeCommand(SshConnectionImpl.java:254) at com.sonymobile.tools.gerrit.gerritevents.workers.cmd.AbstractSendCommandJob.sendCommand2(AbstractSendCommandJob.java:116) ... 8 more {code} In my investigation, It seems that *simultaneous attempt* of review gerrit's ssh commnd causes error: "_cannot post review_ _one or more reviews failed; review output above_", these messages are defined/returned from Gerrit. https://code.google.com/p/gerrit/issues/detail?id=3730 Issue may be in Gerrit side, but in the meantime, adding review comments of Gerrit ssh command to Gerrit server should take care for error (such as retrying) for Jenkins side. environment: gerrit-events :2.7.1 gerrit-trigger:2.14.0

    Jenkins JIRA | 11 months ago | Ryoichi Taniguchi
    java.io.IOException: Error during sending command
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Sometimes adding comments "Build Started" by gerrit-trigger-plugin from specific Jenkins server *more than 2 jobs running* to Gerrit server, fails. In case Jenkins has 2 jobs and these are triggered by uploaded patchset on gerrit, either "Build Started ... (1/2)" or "Build Started ... (2/2)" cannot be upload occasionally . Here is the stacktrace, issue happens in gerrit-events package : {code:java} java.io.IOException: Error during sending command at com.sonymobile.tools.gerrit.gerritevents.workers.cmd.AbstractSendCommandJob.sendCommand2(AbstractSendCommandJob.java:118) at com.sonymobile.tools.gerrit.gerritevents.workers.cmd.AbstractSendCommandJob.sendCommand(AbstractSendCommandJob.java:79) at com.sonyericsson.hudson.plugins.gerrit.trigger.gerritnotifier.GerritNotifier.buildStarted(GerritNotifier.java:88) at com.sonyericsson.hudson.plugins.gerrit.trigger.gerritnotifier.job.ssh.BuildStartedCommandJob.run(BuildStartedCommandJob.java:80) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Caused by: com.sonymobile.tools.gerrit.gerritevents.ssh.SshException: error: Cannot post review one or more reviews failed; review output above (1) at com.sonymobile.tools.gerrit.gerritevents.ssh.SshConnectionImpl.executeCommand(SshConnectionImpl.java:254) at com.sonymobile.tools.gerrit.gerritevents.workers.cmd.AbstractSendCommandJob.sendCommand2(AbstractSendCommandJob.java:116) ... 8 more {code} In my investigation, It seems that *simultaneous attempt* of review gerrit's ssh commnd causes error: "_cannot post review_ _one or more reviews failed; review output above_", these messages are defined/returned from Gerrit. https://code.google.com/p/gerrit/issues/detail?id=3730 Issue may be in Gerrit side, but in the meantime, adding review comments of Gerrit ssh command to Gerrit server should take care for error (such as retrying) for Jenkins side. environment: gerrit-events :2.7.1 gerrit-trigger:2.14.0

    Jenkins JIRA | 11 months ago | Ryoichi Taniguchi
    java.io.IOException: Error during sending command
  6. 0

    [JIRA] [gerrit-trigger-plugin] (JENKINS-32291) Add "Build Started" comments attempt needs retry-able

    Google Groups | 11 months ago | ryoichi.x.taniguchi@sonymobile.com (JIRA)
    java.io.IOException: Error during sending command

    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. com.sonymobile.tools.gerrit.gerritevents.ssh.SshException

      fatal: "!" is not a valid patch set (1)

      at com.sonymobile.tools.gerrit.gerritevents.ssh.SshConnectionImpl.executeCommand()
    2. com.sonymobile.tools
      AbstractSendCommandJob.sendCommand
      1. com.sonymobile.tools.gerrit.gerritevents.ssh.SshConnectionImpl.executeCommand(SshConnectionImpl.java:254)
      2. com.sonymobile.tools.gerrit.gerritevents.workers.cmd.AbstractSendCommandJob.sendCommand2(AbstractSendCommandJob.java:116)
      3. com.sonymobile.tools.gerrit.gerritevents.workers.cmd.AbstractSendCommandJob.sendCommand(AbstractSendCommandJob.java:79)
      3 frames
    3. com.sonyericsson.hudson
      BuildCompletedCommandJob.run
      1. com.sonyericsson.hudson.plugins.gerrit.trigger.gerritnotifier.GerritNotifier.buildCompleted(GerritNotifier.java:118)
      2. com.sonyericsson.hudson.plugins.gerrit.trigger.gerritnotifier.job.ssh.BuildCompletedCommandJob.run(BuildCompletedCommandJob.java:71)
      2 frames
    4. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:262)
      3. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      5. java.lang.Thread.run(Thread.java:745)
      5 frames