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

Not able to connect Windows Server as Agent in jenkins.

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Critical Critical
    • other

      Jenkins version - 2.387.1
      JAVA - openjdk version "11.0.8" 2020-07-14 LTS

      When we are trying to connect a windows server using agent.jar with jenkins (Using JNLP-4), getting following Error - 

      ERROR - 

      Apr 04, 2023 8:36:54 PM hudson.remoting.jnlp.Main createEngine
      INFO: Setting up agent: IN********
      Apr 04, 2023 8:36:54 PM hudson.remoting.Engine startEngine
      INFO: Using Remoting version: 3107.v665000b_51092
      Apr 04, 2023 8:36:54 PM org.jenkinsci.remoting.engine.WorkDirManager initializeWorkDir
      INFO: Using C:\JAVA\microsoft-jdk-11.0.18-windows-x64\remoting as a remoting work directory
      Apr 04, 2023 8:37:04 PM hudson.remoting.jnlp.Main$CuiListener status
      INFO: Locating server among http://10.*******:7070/
      Apr 04, 2023 8:37:05 PM org.jenkinsci.remoting.engine.JnlpAgentEndpointResolver resolve
      INFO: Remoting server accepts the following protocols: [JNLP4-connect, Ping]
      Apr 04, 2023 8:37:05 PM hudson.remoting.jnlp.Main$CuiListener status
      INFO: Agent discovery successful
        Agent address: 10.*******
        Agent port:    8444
        Identity:      *******
      Apr 04, 2023 8:37:05 PM hudson.remoting.jnlp.Main$CuiListener status
      INFO: Handshaking
      Apr 04, 2023 8:37:05 PM hudson.remoting.jnlp.Main$CuiListener status
      INFO: Connecting to 10.*******:8444
      Apr 04, 2023 8:37:05 PM hudson.remoting.jnlp.Main$CuiListener status
      INFO: Trying protocol: JNLP4-connect
      Apr 04, 2023 8:37:05 PM org.jenkinsci.remoting.protocol.impl.BIONetworkLayer$Reader run
      INFO: Waiting for ProtocolStack to start.
      Apr 04, 2023 8:37:15 PM hudson.remoting.jnlp.Main$CuiListener status
      INFO: Protocol JNLP4-connect encountered an unexpected exception
      java.util.concurrent.ExecutionException: org.jenkinsci.remoting.protocol.impl.ConnectionRefusalException: Connection closed before acknowledgement sent
          at org.jenkinsci.remoting.util.SettableFuture.get(SettableFuture.java:223)
          at hudson.remoting.Engine.innerRun(Engine.java:809)
          at hudson.remoting.Engine.run(Engine.java:543)
      Caused by: org.jenkinsci.remoting.protocol.impl.ConnectionRefusalException: Connection closed before acknowledgement sent
          at org.jenkinsci.remoting.protocol.impl.AckFilterLayer.onRecvClosed(AckFilterLayer.java:280)
          at org.jenkinsci.remoting.protocol.FilterLayer.abort(FilterLayer.java:165)
          at org.jenkinsci.remoting.protocol.impl.AckFilterLayer.lambda$start$0(AckFilterLayer.java:177)
          at org.jenkinsci.remoting.protocol.IOHub$DelayedRunnable.run(IOHub.java:958)
          at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
          at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
          at hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:125)
          at java.base/java.lang.Thread.run(Thread.java:829)

      Apr 05, 2023 9:44:27 AM hudson.remoting.jnlp.Main$CuiListener status
      INFO: reconnect rejected, sleeping 10s: 
      java.lang.Exception: The server rejected the connection: None of the protocols were accepted
          at hudson.remoting.Engine.onConnectionRejected(Engine.java:888)
          at hudson.remoting.Engine.innerRun(Engine.java:835)
          at hudson.remoting.Engine.run(Engine.java:543)

       

          [JENKINS-70990] Not able to connect Windows Server as Agent in jenkins.

          Mark Waite added a comment -

          This looks like a request for help diagnosing a local configuration issue. We've had much better results by doing question and answer type discussions in https://community.jenkins.io rather than in the issue tracker. A wider range of people watch the community forum than watch individual issue reports.

          We use the Jenkins issue tracker to track bugs and enhancements. If you believe this is a bug or an enhancement, please provide enough details so that others can duplicate the problem. "How to report an issue" outlines the types of information that are needed so that others can duplicate the issue.

          Mark Waite added a comment - This looks like a request for help diagnosing a local configuration issue. We've had much better results by doing question and answer type discussions in https://community.jenkins.io rather than in the issue tracker. A wider range of people watch the community forum than watch individual issue reports. We use the Jenkins issue tracker to track bugs and enhancements. If you believe this is a bug or an enhancement, please provide enough details so that others can duplicate the problem. "How to report an issue" outlines the types of information that are needed so that others can duplicate the issue.

            Unassigned Unassigned
            akash_dah Akash
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: