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

Problems with the Jenkins slave agent

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Not A Defect
    • Component/s: core, remoting
    • Labels:
      None
    • Environment:
      Jenkins ver. 2.122
    • Similar Issues:

      Description

      I keep getting this error when trying to run the Jenkins slave agent on linux:

       

      java.io.IOException: Failed to load http://address:8080/computer/pc-name/slave-agent.jnlp?encrypt=true: 403 Forbidden
       at hudson.remoting.Launcher.parseJnlpArguments(Launcher.java:496)
       at hudson.remoting.Launcher.run(Launcher.java:322)
       at hudson.remoting.Launcher.main(Launcher.java:283)
      Waiting 10 seconds before retry
      

       

      And here is the command I run:

      java -jar agent.jar -jnlpUrl http://address:8080/computer/ARMHF-Builder%20RPI3B/slave-agent.jnlp -secret <secret> -workDir "/home/jenkins"

       

      I have tried also the -jnlpCredentials argument and I do not want to enable anonymous access (as this is a public build server) to create or connect to Jenkins slaves. Any way to fix this at all?

        Attachments

          Activity

          Hide
          dynomite567 Brady Dalbec added a comment -

          Ok, figured out what is going on. I have my domain under Cloudflare, and Cloudflare keeps blocking my requests from the agent. I disabled the CDN in my DNS settings and everything is working fine. As a point of reference for those who also use Cloudflare, make sure to have the cloud icon gray on the DNS record that points to jenkins.

           

          Show
          dynomite567 Brady Dalbec added a comment - Ok, figured out what is going on. I have my domain under Cloudflare, and Cloudflare keeps blocking my requests from the agent. I disabled the CDN in my DNS settings and everything is working fine. As a point of reference for those who also use Cloudflare, make sure to have the cloud icon gray on the DNS record that points to jenkins.  
          Hide
          jthompson Jeff Thompson added a comment -

          Can we close and resolve this, then?

          Show
          jthompson Jeff Thompson added a comment - Can we close and resolve this, then?
          Hide
          dynomite567 Brady Dalbec added a comment -

          Yes, you can thank you

          Show
          dynomite567 Brady Dalbec added a comment - Yes, you can thank you

            People

            Assignee:
            jthompson Jeff Thompson
            Reporter:
            dynomite567 Brady Dalbec
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: