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

404 when trying to connect Windows node to Linux Master

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • remoting

       

       

      When I try to run a Windows Node to a Jenkins Linux master I get a 404 that tcpSlaveAgentListener can not be found.  I connect to my Jenkins master from the Windows node and go to the node's computer page I copy the java command to a powershell command window and then run like below:

      java -jar agent.jar -jnlpUrl https://xxx-yyy-build-jenkins-0.zzz.cloud/computer/jslave-win-fw-0/slave-agent.jnlp -secret secret -workDir "C:\data\jenkins"
      

      I get the following:

      INFO: Using C:\data\jenkins\remoting as a remoting work directory
      Both error and output logs will be printed to C:\data\jenkins\remoting
      Sep 16, 2019 7:55:01 PM hudson.remoting.jnlp.Main createEngine
      INFO: Setting up agent: jslave-win-fw-0
      Sep 16, 2019 7:55:01 PM hudson.remoting.jnlp.Main$CuiListener <init>
      INFO: Jenkins agent is running in headless mode.
      Sep 16, 2019 7:55:01 PM hudson.remoting.Engine startEngine
      INFO: Using Remoting version: 3.29
      Sep 16, 2019 7:55:01 PM org.jenkinsci.remoting.engine.WorkDirManager initializeWorkDir
      INFO: Using C:\data\jenkins\remoting as a remoting work directory
      Sep 16, 2019 7:55:01 PM hudson.remoting.jnlp.Main$CuiListener status
      INFO: Locating server among [https://bnr-eastus-build-jenkins-0.bossanova.cloud/]
      Sep 16, 2019 7:55:01 PM hudson.remoting.jnlp.Main$CuiListener error
      SEVERE: https://bnr-eastus-build-jenkins-0.bossanova.cloud/tcpSlaveAgentListener/ is invalid: 404 Not Found
      java.io.IOException:
      https://xxx-yyy-build-jenkins-0.zzz.cloud/tcpSlaveAgentListener/ is invalid: 404 Not Found at org.jenkinsci.remoting.engine.JnlpAgentEndpointResolver.resolve(JnlpAgentEndpointResolver.java:202)
       at  hudson.remoting.Engine.innerRun(Engine.java:523)
       at hudson.remoting.Engine.run(Engine.java:474)
      

      OS: (all machines are running in Azure)

      Master: Ubuntu Ubuntu 16.04.2 LTS

      Node: Windows 2019-Datacenter

      Plugins installed:

      "ace-editor":
      version: "1.1"
      "analysis-model-api":
      version: "4.0.0"
      "ansicolor":
      version: "0.6.2"
      "antisamy-markup-formatter":
      version: "1.5"
      "ant":
      version: "1.9"
      "apache-httpcomponents-client-4-api":
      version: "4.5.5-3.0"
      "artifactory":
      version: "3.2.2"
      "authentication-tokens":
      version: "1.3"
      "azure-commons":
      version: "0.2.10"
      "azure-credentials":
      version: "1.6.1"
      "azure-vm-agents":
      version: "0.9.0"
      "badge":
      version: "1.7"
      "basic-branch-build-strategies":
      version: "1.3.0"
      "bouncycastle-api":
      version: "2.17"
      "branch-api":
      version: "2.4.0"
      "build-monitor-plugin":
      version: "1.12+build.201809061734"
      "build-timeout":
      version: "1.19"
      "cloud-stats":
      version: "0.23"
      "cloudbees-folder":
      version: "6.8"
      "cobertura":
      version: "1.13"
      "code-coverage-api":
      version: "1.0.9"
      "command-launcher":
      version: "1.3"
      "config-file-provider":
      version: "3.6"
      "credentials-binding":
      version: "1.18"
      "credentials":
      version: "2.1.18"
      "dashboard-view":
      version: "2.10"
      "display-url-api":
      version: "2.3.1"
      "docker-commons":
      version: "1.14"
      "docker-workflow":
      version: "1.18"
      "doxygen":
      version: "0.18"
      "durable-task":
      version: "1.29"
      "email-ext":
      version: "2.66"
      "external-monitor-job":
      version: "1.7"
      "git":
      version: "3.9.3"
      "git-client":
      version: "2.7.6"
      "github":
      version: "1.29.4"
      "github-api":
      version: "1.95"
      "github-branch-source":
      version: "2.4.5"
      "github-pr-coverage-status":
      version: "2.0.0"
      "git-server":
      version: "1.7"
      "gradle":
      version: "1.31"
      "handlebars":
      version: "1.1.1"
      "icon-shim":
      version: "2.0.3"
      "ivy":
      version: "2.0"
      "jackson2-api":
      version: "2.9.8"
      "jacoco":
      version: "3.0.4"
      "javadoc":
      version: "1.5"
      "jdk-tool":
      version: "1.2"
      "jquery-detached":
      version: "1.2.1"
      "jsch":
      version: "0.1.55"
      "junit":
      version: "1.27"
      "ldap":
      version: "1.14"
      "lockable-resources":
      version: "2.5"
      "mailer":
      version: "1.23"
      "mapdb-api":
      version: "1.0.9.0"
      "matrix-auth":
      version: "2.3"
      "matrix-project":
      version: "1.14"
      "maven-plugin":
      version: "3.2"
      "metrics":
      version: "4.0.2.3"
      "momentjs":
      version: "1.1.1"
      "monitoring":
      version: "1.76.0"
      "pam-auth":
      version: "1.5"
      "pipeline-build-step":
      version: "2.8"
      "pipeline-github-lib":
      version: "1.0"
      "pipeline-graph-analysis":
      version: "1.9"
      "pipeline-input-step":
      version: "2.10"
      "pipeline-milestone-step":
      version: "1.3.1"
      "pipeline-model-api":
      version: "1.3.7"
      "pipeline-model-declarative-agent":
      version: "1.1.1"
      "pipeline-model-definition":
      version: "1.3.7"
      "pipeline-model-extensions":
      version: "1.3.7"
      "pipeline-rest-api":
      version: "2.10"
      "pipeline-stage-step":
      version: "2.3"
      "pipeline-stage-tags-metadata":
      version: "1.3.7"
      "pipeline-stage-view":
      version: "2.10"
      "pipeline-utility-steps":
      version: "2.3.0"
      "plain-credentials":
      version: "1.5"
      "plot":
      version: "2.1.0"
      "resource-disposer":
      version: "0.12"
      "scm-api":
      version: "2.4.1"
      "script-security":
      version: "1.56"
      "slack":
      version: "2.21"
      "ssh-agent":
      version: "1.17"
      "ssh-credentials":
      version: "1.15"
      "ssh-slaves":
      version: "1.29.4"
      "structs":
      version: "1.17"
      "subversion":
      version: "2.11.1"
      state: "absent"
      "timestamper":
      version: "1.9"
      "token-macro":
      version: "2.7"
      "variant":
      version: "1.2"
      "view-job-filters":
      version: "2.1.1"
      "warnings-ng":
      version: "4.0.0"
      "windows-slaves":
      version: "1.4"
      "workflow-aggregator":
      version: "2.6"
      "workflow-api":
      version: "2.33"
      "workflow-basic-steps":
      version: "2.15"
      "workflow-cps":
      version: "2.66"
      "workflow-cps-global-lib":
      version: "2.13"
      "workflow-durable-task-step":
      version: "2.30"
      "workflow-job":
      version: "2.32"
      "workflow-multibranch":
      version: "2.21"
      "workflow-scm-step":
      version: "2.7"
      "workflow-step-api":
      version: "2.19"
      "workflow-support":
      version: "3.2"
      "ws-cleanup":
      version: "0.37"

       

      I am getting a 404 so the connection is getting to the server.  Any suggestions on why the windows node will not connect and how to troubleshoot this would be great.  What loggers should I turn on to help trouble shoot this?

            jthompson Jeff Thompson
            mark_russell Mark Russell
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: