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

Websocket agent connection fail

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • remoting
    • None

      Hi guys

      I'm trying to make a websocket agent connection to the master but it's not working.

      it appears this error:

      Does someone have any idea how can I fix it?

       

      PS C:\Users\DSAdmin\Downloads> java -jar agent.jar -jnlpUrl https://jenkins.darkslope.com/computer/SampleAgent/jenkins-agent.jnlp -secret bafc6d67add3a0cf864e68466e4d9b32979db84af005d1bb7e71d3d94bfbf502 -workDir "C:\Jenkins"
      Jan 05, 2022 7:25:40 PM org.jenkinsci.remoting.engine.WorkDirManager initializeWorkDir
      INFO: Using C:\Jenkins\remoting as a remoting work directory
      Jan 05, 2022 7:25:40 PM org.jenkinsci.remoting.engine.WorkDirManager setupLogging
      INFO: Both error and output logs will be printed to C:\Jenkins\remoting
      Jan 05, 2022 7:25:40 PM hudson.remoting.jnlp.Main createEngine
      INFO: Setting up agent: SampleAgent
      Jan 05, 2022 7:25:40 PM hudson.remoting.jnlp.Main$CuiListener <init>
      INFO: Jenkins agent is running in headless mode.
      Jan 05, 2022 7:25:40 PM hudson.remoting.Engine startEngine
      INFO: Using Remoting version: 4.10.1
      Jan 05, 2022 7:25:40 PM org.jenkinsci.remoting.engine.WorkDirManager initializeWorkDir
      INFO: Using C:\Jenkins\remoting as a remoting work directory
      Jan 05, 2022 7:26:10 PM hudson.remoting.jnlp.Main$CuiListener error
      SEVERE: Handshake response not received.
      io.jenkins.remoting.shaded.javax.websocket.DeploymentException: Handshake response not received.
       at io.jenkins.remoting.shaded.org.glassfish.tyrus.client.ClientManager$3$1.run(ClientManager.java:678)
       at io.jenkins.remoting.shaded.org.glassfish.tyrus.client.ClientManager$3.run(ClientManager.java:696)
       at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
       at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
       at io.jenkins.remoting.shaded.org.glassfish.tyrus.client.ClientManager$SameThreadExecutorService.execute(ClientManager.java:849)
       at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:118)
       at io.jenkins.remoting.shaded.org.glassfish.tyrus.client.ClientManager.connectToServer(ClientManager.java:493)
       at io.jenkins.remoting.shaded.org.glassfish.tyrus.client.ClientManager.connectToServer(ClientManager.java:337)
       at hudson.remoting.Engine.runWebSocket(Engine.java:657)
       at hudson.remoting.Engine.run(Engine.java:496)

       

            Unassigned Unassigned
            italoveloso Italo Veloso
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: