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

org.apache.sshd.common.SshException: Already closed

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • cli
    • None
    • * OpenSSH_6.9p1, LibreSSL 2.1.7 (OS X 10.11) on my side
      * Jenkins 1.635, Linux, OpenJDK 7

      Hi,

      I use SSH connection to Jenkins CLI. `build`, `list-jobs`, `get-job`, `get-view`, `version`, `who-am-i` – all those work OK. But at the end of each `console` command I'm getting an exception. Everything works, but I believe, something's going wrong so I should report this.

      ssh jenkins console Ansible
      [...]
      Finished: SUCCESS
      org.apache.sshd.common.SshException: Already closed
      at org.apache.sshd.common.channel.ChannelOutputStream.flush(ChannelOutputStream.java:98)
      at org.jenkinsci.main.modules.sshd.AsynchronousCommand$1.run(AsynchronousCommand.java:106)
      at java.lang.Thread.run(Thread.java:745)

          [JENKINS-31194] org.apache.sshd.common.SshException: Already closed

          Ronald Petty added a comment - - edited

          I am not sure if this is the same, but similar, `list-jobs` works; but console does not return a result.  Interesting enough, SSH does return a result.

          Jenkins 2.62

           

          user@ubuntu:~$ java -jar WEB-INF/jenkins-cli.jar -s http://localhost:8888 list-jobs --username admin --password admin
          mavenproj1
          testproj1
          
          user@ubuntu:~$ java -jar WEB-INF/jenkins-cli.jar -s http://localhost:8888 console mavenproj1 1 --username admin --password admin
           
          ERROR: No such job 'mavenproj1'
          
          user@ubuntu:~$ ssh -p 2222 admin@localhost console mavenproj1 1
          Started by user 
          
          dministrator
          Building in workspace /home/user/.jenkins/workspace/mavenproj1
          Parsing POMs
          ERROR: No such file /home/user/.jenkins/workspace/mavenproj1/pom.xml
          Perhaps you need to specify the correct POM file path in the project configuration?
          ha:////4AzQ+zr+mWetsK0EVfVL+IqG9v7A3ObbaFesj0IsgHnVAAAAVx+LCAAAAAAAAP9b85aBtbiIQSmjNKU4P08vOT+vOD8nVc8DzHWtSE4tKMnMz/PLL0mV3NWzufebKBsTA0NFEYMUmgZnCA1SyAABjCCFBQC2xNaiYAAAAA==Finished: FAILURE
          org.apache.sshd.common.SshException: Already closed
           at org.apache.sshd.common.channel.ChannelOutputStream.flush(ChannelOutputStream.java:110)
           at org.jenkinsci.main.modules.sshd.AsynchronousCommand$1.run(AsynchronousCommand.java:114)
           at java.lang.Thread.run(Thread.java:748)
          user@ubuntu:~$
          

          Console+SSH does cut off the 'a' in 'administrator'.
           

          Ronald Petty added a comment - - edited I am not sure if this is the same, but similar, `list-jobs` works; but console does not return a result.  Interesting enough, SSH does return a result. Jenkins 2.62   user@ubuntu:~$ java -jar WEB-INF/jenkins-cli.jar -s http: //localhost:8888 list-jobs --username admin --password admin mavenproj1 testproj1 user@ubuntu:~$ java -jar WEB-INF/jenkins-cli.jar -s http: //localhost:8888 console mavenproj1 1 --username admin --password admin   ERROR: No such job 'mavenproj1' user@ubuntu:~$ ssh -p 2222 admin@localhost console mavenproj1 1 Started by user dministrator Building in workspace /home/user/.jenkins/workspace/mavenproj1 Parsing POMs ERROR: No such file /home/user/.jenkins/workspace/mavenproj1/pom.xml Perhaps you need to specify the correct POM file path in the project configuration? ha: ////4AzQ+zr+mWetsK0EVfVL+IqG9v7A3ObbaFesj0IsgHnVAAAAVx+LCAAAAAAAAP9b85aBtbiIQSmjNKU4P08vOT+vOD8nVc8DzHWtSE4tKMnMz/PLL0mV3NWzufebKBsTA0NFEYMUmgZnCA1SyAABjCCFBQC2xNaiYAAAAA==Finished: FAILURE org.apache.sshd.common.SshException: Already closed at org.apache.sshd.common.channel.ChannelOutputStream.flush(ChannelOutputStream.java:110) at org.jenkinsci.main.modules.sshd.AsynchronousCommand$1.run(AsynchronousCommand.java:114) at java.lang. Thread .run( Thread .java:748) user@ubuntu:~$ Console+SSH does cut off the 'a' in 'administrator'.  

          Three years later , this is an issue. What is the status here?

          Christoph Henrici added a comment - Three years later , this is an issue. What is the status here?

            Unassigned Unassigned
            vkorytov Vasily Korytov
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: