java.io.IOException: http://build.server.com/ci/computer/153412c7-b1df-43ec-a5bc-16cf53a14a19/slave-agent.jnlp doesn't look like a JNLP file; content type was text/html

Jenkins JIRA | J Knurek | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    The EC2 plugin was working fine until we configured the jenkins master to use https. Now, when the slave server starts up and tries to connect to master: bq.wget http://build.server.com/ci/jnlpJars/slave.jar -O slave.jar {code} --2015-02-03 21:22:54-- http://build.server.com/ci/jnlpJars/slave.jar Resolving build.server.com (build.server.com)... 10.60.143.48 Connecting to build.server.com (build.server.com)|10.60.143.48|:80... connected. HTTP request sent, awaiting response... 302 Moved Temporarily Location: https://build.server.com/ci/jnlpJars/slave.jar [following] --2015-02-03 21:22:55-- https://build.server.com/ci/jnlpJars/slave.jar Connecting to build.server.com (build.server.com)|10.60.143.48|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 439751 (429K) [application/java-archive] Saving to: `slave.jar' 0% [ ] 0 --.-K/s 100%[======================================>] 439,751 --.-K/s in 0.1s 2015-02-03 21:22:56 (4.29 MB/s) - `slave.jar' saved [439751/439751] {code} it's getting these errors: bq.java -jar slave.jar -jnlpUrl http://build.server.com/ci/computer/153412c7-b1df-43ec-a5bc-16cf53a14a19/slave-agent.jnlp {code} [Fatal Error] slave-agent.jnlp:6:3: The element type "hr" must be terminated by the matching end-tag "</hr>". Failing to obtain http://build.server.com/ci/computer/153412c7-b1df-43ec-a5bc-16cf53a14a19/slave-agent.jnlp java.io.IOException: http://build.server.com/ci/computer/153412c7-b1df-43ec-a5bc-16cf53a14a19/slave-agent.jnlp doesn't look like a JNLP file; content type was text/html at hudson.remoting.Launcher.parseJnlpArguments(Launcher.java:304) at hudson.remoting.Launcher.run(Launcher.java:219) at hudson.remoting.Launcher.main(Launcher.java:192) Waiting 10 seconds before retry {code} This is the nginx proxy redirect configuration: {code} server { listen 80; server_name build.server.com; return 302 https://$server_name$request_uri; } server { listen 443 ssl; ssl_certificate .... location / { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-Proto $scheme; proxy_redirect http://127.0.0.1:8881 https://build.server.com; proxy_pass http://127.0.0.1:8881; } } {code} It would seem that the problem is in the proxy redirect, because 169.254.169.254/latest/user-data is returning {{http}}, and that is what the slave-agent ends up using. But the error message of `{{The element type "hr" must be terminated}}` is of no help.

    Jenkins JIRA | 2 years ago | J Knurek
    java.io.IOException: http://build.server.com/ci/computer/153412c7-b1df-43ec-a5bc-16cf53a14a19/slave-agent.jnlp doesn't look like a JNLP file; content type was text/html
  2. 0

    The EC2 plugin was working fine until we configured the jenkins master to use https. Now, when the slave server starts up and tries to connect to master: bq.wget http://build.server.com/ci/jnlpJars/slave.jar -O slave.jar {code} --2015-02-03 21:22:54-- http://build.server.com/ci/jnlpJars/slave.jar Resolving build.server.com (build.server.com)... 10.60.143.48 Connecting to build.server.com (build.server.com)|10.60.143.48|:80... connected. HTTP request sent, awaiting response... 302 Moved Temporarily Location: https://build.server.com/ci/jnlpJars/slave.jar [following] --2015-02-03 21:22:55-- https://build.server.com/ci/jnlpJars/slave.jar Connecting to build.server.com (build.server.com)|10.60.143.48|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 439751 (429K) [application/java-archive] Saving to: `slave.jar' 0% [ ] 0 --.-K/s 100%[======================================>] 439,751 --.-K/s in 0.1s 2015-02-03 21:22:56 (4.29 MB/s) - `slave.jar' saved [439751/439751] {code} it's getting these errors: bq.java -jar slave.jar -jnlpUrl http://build.server.com/ci/computer/153412c7-b1df-43ec-a5bc-16cf53a14a19/slave-agent.jnlp {code} [Fatal Error] slave-agent.jnlp:6:3: The element type "hr" must be terminated by the matching end-tag "</hr>". Failing to obtain http://build.server.com/ci/computer/153412c7-b1df-43ec-a5bc-16cf53a14a19/slave-agent.jnlp java.io.IOException: http://build.server.com/ci/computer/153412c7-b1df-43ec-a5bc-16cf53a14a19/slave-agent.jnlp doesn't look like a JNLP file; content type was text/html at hudson.remoting.Launcher.parseJnlpArguments(Launcher.java:304) at hudson.remoting.Launcher.run(Launcher.java:219) at hudson.remoting.Launcher.main(Launcher.java:192) Waiting 10 seconds before retry {code} This is the nginx proxy redirect configuration: {code} server { listen 80; server_name build.server.com; return 302 https://$server_name$request_uri; } server { listen 443 ssl; ssl_certificate .... location / { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-Proto $scheme; proxy_redirect http://127.0.0.1:8881 https://build.server.com; proxy_pass http://127.0.0.1:8881; } } {code} It would seem that the problem is in the proxy redirect, because 169.254.169.254/latest/user-data is returning {{http}}, and that is what the slave-agent ends up using. But the error message of `{{The element type "hr" must be terminated}}` is of no help.

    Jenkins JIRA | 2 years ago | J Knurek
    java.io.IOException: http://build.server.com/ci/computer/153412c7-b1df-43ec-a5bc-16cf53a14a19/slave-agent.jnlp doesn't look like a JNLP file; content type was text/html
  3. 0

    slave-agent.jnlp stored in location not served by jenkins

    GitHub | 3 years ago | minid33
    java.io.IOException: Failed to load http://slavenode:8080/computer/mesos-jenkins-256ecf2c-241f-4ccc-921d-b88e50d530b3/slave-agent.jnlp: 403 Forbidden
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Local JNLP file not read for jenkins slave

    Stack Overflow | 3 years ago | Gaurav Verma
    java.io.IOException: file:/oracle/app/jenkins/slave-agent.jnlp?encrypt=true doesn't look like a JNLP file; content type was null

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.io.IOException

      http://build.server.com/ci/computer/153412c7-b1df-43ec-a5bc-16cf53a14a19/slave-agent.jnlp doesn't look like a JNLP file; content type was text/html

      at hudson.remoting.Launcher.parseJnlpArguments()
    2. Hudson :: Remoting Layer
      Launcher.main
      1. hudson.remoting.Launcher.parseJnlpArguments(Launcher.java:304)
      2. hudson.remoting.Launcher.run(Launcher.java:219)
      3. hudson.remoting.Launcher.main(Launcher.java:192)
      3 frames