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

CLI, Agent -websockets DeploymentException: Handshake response not received on jdk-11

    XMLWordPrintable

    Details

    • Similar Issues:
    • Released As:
      2.317

      Description

      Testing CLI, agent connections with the new '-websocket' functionality added by
      JEP-222.

       

      Jetty access log shows:

      172.18.0.3 - - [25/Feb/2020:01:48:06 +0000] "GET /cli/ws HTTP/1.1" 101 0 "-" "-" 
      

      CLI output:

      javax.websocket.DeploymentException: Handshake response not received.
      	at org.glassfish.tyrus.client.ClientManager$3$1.run(ClientManager.java:694)
      	at org.glassfish.tyrus.client.ClientManager$3.run(ClientManager.java:712)
      ...
      	at org.glassfish.tyrus.client.ClientManager$SameThreadExecutorService.execute(ClientManager.java:866)
      	at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:118)
      	at org.glassfish.tyrus.client.ClientManager.connectToServer(ClientManager.java:511)
      	at org.glassfish.tyrus.client.ClientManager.connectToServer(ClientManager.java:355)
      	at hudson.cli.CLI.webSocketConnection(CLI.java:323)
      	at hudson.cli.CLI._main(CLI.java:301)
      	at hudson.cli.CLI.main(CLI.java:95)
      

      When I attach a debugger to the Jenkins server it seems to get stuck here:
      https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/hudson/cli/CLIAction.java#L255

        Attachments

          Issue Links

            Activity

            build_admiral Fred Vogt created issue -
            build_admiral Fred Vogt made changes -
            Field Original Value New Value
            Description Testing CLI, agent connections with the new '-websocket' functionality added by JEP-222.

            Jetty access log shows:
            {code}
            172.18.0.3 - - [25/Feb/2020:01:48:06 +0000] "GET /cli/ws HTTP/1.1" 101 0 "-" "-"
            {code}

            CLI output:
            {code}
            javax.websocket.DeploymentException: Handshake response not received.
            at org.glassfish.tyrus.client.ClientManager$3$1.run(ClientManager.java:694)
            at org.glassfish.tyrus.client.ClientManager$3.run(ClientManager.java:712)
            ...
            at org.glassfish.tyrus.client.ClientManager$SameThreadExecutorService.execute(ClientManager.java:866)
            at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:118)
            at org.glassfish.tyrus.client.ClientManager.connectToServer(ClientManager.java:511)
            at org.glassfish.tyrus.client.ClientManager.connectToServer(ClientManager.java:355)
            at hudson.cli.CLI.webSocketConnection(CLI.java:323)
            at hudson.cli.CLI._main(CLI.java:301)
            at hudson.cli.CLI.main(CLI.java:95)
            {code}

            When I attach a debugger to the Jenkins server it seems to get stuck here:
            https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/hudson/cli/CLIAction.java#L255
            Testing CLI, agent connections with the new '-websocket' functionality added by [JEP-222|[https://github.com/jenkinsci/jep/blob/master/jep/222/README.adoc]].

            Jetty access log shows:
            {code:java}
            172.18.0.3 - - [25/Feb/2020:01:48:06 +0000] "GET /cli/ws HTTP/1.1" 101 0 "-" "-"
            {code}
            CLI output:
            {code:java}
            javax.websocket.DeploymentException: Handshake response not received.
            at org.glassfish.tyrus.client.ClientManager$3$1.run(ClientManager.java:694)
            at org.glassfish.tyrus.client.ClientManager$3.run(ClientManager.java:712)
            ...
            at org.glassfish.tyrus.client.ClientManager$SameThreadExecutorService.execute(ClientManager.java:866)
            at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:118)
            at org.glassfish.tyrus.client.ClientManager.connectToServer(ClientManager.java:511)
            at org.glassfish.tyrus.client.ClientManager.connectToServer(ClientManager.java:355)
            at hudson.cli.CLI.webSocketConnection(CLI.java:323)
            at hudson.cli.CLI._main(CLI.java:301)
            at hudson.cli.CLI.main(CLI.java:95)
            {code}
            When I attach a debugger to the Jenkins server it seems to get stuck here:
             [https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/hudson/cli/CLIAction.java#L255]
            build_admiral Fred Vogt made changes -
            Description Testing CLI, agent connections with the new '-websocket' functionality added by [JEP-222|[https://github.com/jenkinsci/jep/blob/master/jep/222/README.adoc]].

            Jetty access log shows:
            {code:java}
            172.18.0.3 - - [25/Feb/2020:01:48:06 +0000] "GET /cli/ws HTTP/1.1" 101 0 "-" "-"
            {code}
            CLI output:
            {code:java}
            javax.websocket.DeploymentException: Handshake response not received.
            at org.glassfish.tyrus.client.ClientManager$3$1.run(ClientManager.java:694)
            at org.glassfish.tyrus.client.ClientManager$3.run(ClientManager.java:712)
            ...
            at org.glassfish.tyrus.client.ClientManager$SameThreadExecutorService.execute(ClientManager.java:866)
            at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:118)
            at org.glassfish.tyrus.client.ClientManager.connectToServer(ClientManager.java:511)
            at org.glassfish.tyrus.client.ClientManager.connectToServer(ClientManager.java:355)
            at hudson.cli.CLI.webSocketConnection(CLI.java:323)
            at hudson.cli.CLI._main(CLI.java:301)
            at hudson.cli.CLI.main(CLI.java:95)
            {code}
            When I attach a debugger to the Jenkins server it seems to get stuck here:
             [https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/hudson/cli/CLIAction.java#L255]
            Testing CLI, agent connections with the new '-websocket' functionality added by
            [JEP-222|https://github.com/jenkinsci/jep/blob/master/jep/222/README.adoc].

             

            Jetty access log shows:
            {code:java}
            172.18.0.3 - - [25/Feb/2020:01:48:06 +0000] "GET /cli/ws HTTP/1.1" 101 0 "-" "-"
            {code}
            CLI output:
            {code:java}
            javax.websocket.DeploymentException: Handshake response not received.
            at org.glassfish.tyrus.client.ClientManager$3$1.run(ClientManager.java:694)
            at org.glassfish.tyrus.client.ClientManager$3.run(ClientManager.java:712)
            ...
            at org.glassfish.tyrus.client.ClientManager$SameThreadExecutorService.execute(ClientManager.java:866)
            at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:118)
            at org.glassfish.tyrus.client.ClientManager.connectToServer(ClientManager.java:511)
            at org.glassfish.tyrus.client.ClientManager.connectToServer(ClientManager.java:355)
            at hudson.cli.CLI.webSocketConnection(CLI.java:323)
            at hudson.cli.CLI._main(CLI.java:301)
            at hudson.cli.CLI.main(CLI.java:95)
            {code}
            When I attach a debugger to the Jenkins server it seems to get stuck here:
             [https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/hudson/cli/CLIAction.java#L255]
            build_admiral Fred Vogt made changes -
            Summary CLI, Agent -websockets hangs, then DeploymentException: Handshake response not received CLI, Agent -websockets DeploymentException: Handshake response not received
            oleg_nenashev Oleg Nenashev made changes -
            Assignee Jesse Glick [ jglick ]
            oleg_nenashev Oleg Nenashev made changes -
            Comment [ [https://github.com/jenkinsci/jenkins/pull/4526] - my draft. It is a bit different from what Jesse suggested ]
            build_admiral Fred Vogt made changes -
            Summary CLI, Agent -websockets DeploymentException: Handshake response not received CLI, Agent -websockets DeploymentException: Handshake response not received on jdk-11
            build_admiral Fred Vogt made changes -
            Labels java11-compatibility
            ethorsa ethorsa made changes -
            Link This issue relates to JENKINS-61253 [ JENKINS-61253 ]
            jglick Jesse Glick made changes -
            Assignee Jesse Glick [ jglick ]
            build_admiral Fred Vogt made changes -
            egutierrez Evaristo Gutierrez made changes -
            Labels java11-compatibility java11-compatibility triaged
            danielbeck Daniel Beck made changes -
            Labels java11-compatibility triaged java11-compatibility triaged websocket
            jglick Jesse Glick made changes -
            Link This issue is duplicated by JENKINS-63011 [ JENKINS-63011 ]
            jthompson Jeff Thompson made changes -
            Link This issue is duplicated by JENKINS-63313 [ JENKINS-63313 ]
            markewaite Mark Waite made changes -
            Released As 2.313
            markewaite Mark Waite made changes -
            Resolution Fixed [ 1 ]
            Status Open [ 1 ] Closed [ 6 ]
            jglick Jesse Glick made changes -
            Resolution Fixed [ 1 ]
            Status Closed [ 6 ] Reopened [ 4 ]
            jglick Jesse Glick made changes -
            Status Reopened [ 4 ] In Progress [ 3 ]
            jglick Jesse Glick made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            oddwill Odd Will made changes -
            Environment jdk11, Docker Jenkins 2.222 https
            oleg_nenashev Oleg Nenashev made changes -
            Component/s remoting [ 15489 ]
            oleg_nenashev Oleg Nenashev made changes -
            Labels java11-compatibility triaged websocket java11-compatibility remoting triaged websocket
            jglick Jesse Glick made changes -
            Released As 2.313 2.317
            Resolution Fixed [ 1 ]
            Status In Review [ 10005 ] Fixed but Unreleased [ 10203 ]
            markewaite Mark Waite made changes -
            Status Fixed but Unreleased [ 10203 ] Closed [ 6 ]

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              build_admiral Fred Vogt
              Votes:
              9 Vote for this issue
              Watchers:
              24 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: