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

User Agent Containing JAVA doesn't download NodeJS package.

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Blocker Blocker
    • nodejs-plugin
    • None
    • Jenkins ver. 1.623 NodeJS plugin 0.2.1

      Hi,

      Its seems that NodeJS.org start blocking requests from Java. In the logs, I can see the following:

      Unpacking http://nodejs.org/dist/v0.12.7/node-v0.12.7-linux-x64.tar.gz to /home/ubuntu/jenkins/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/NodeJS on Linux Server (i-ea6b8035)
      ERROR: Failed to download http://nodejs.org/dist/v0.12.7/node-v0.12.7-linux-x64.tar.gz from slave; will retry from master
      java.io.IOException: remote file operation failed: /home/ubuntu/jenkins/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/NodeJS at hudson.remoting.Channel@4146cb24:Linux Server (i-ea6b8035): java.io.IOException: Server returned HTTP response code: 403 for URL: http://nodejs.org/dist/v0.12.7/node-v0.12.7-linux-x64.tar.gz
      at hudson.FilePath.act(FilePath.java:987)

      Using tcpflow, the error is the following one:

      tcpflow -C port 80 -i eth0
      tcpflow: listening on eth0
      GET /dist/v0.12.7/node-v0.12.7-linux-x64.tar.gz HTTP/1.1
      User-Agent: Java/1.7.0_80
      Host: nodejs.org
      Accept: text/html, image/gif, image/jpeg, ; q=.2, */; q=.2
      Connection: keep-alive

      write error to stdout

      HTTP/1.1 403 Forbidden
      Date: Mon, 31 Aug 2015 04:49:29 GMT
      Content-Type: text/html; charset=UTF-8
      Transfer-Encoding: chunked
      Connection: keep-alive

      <title>Access denied | nodejs.org used CloudFlare to restrict access</title>

      <p>The owner of this website (nodejs.org) has banned your access based on your browser's signature (21e61bf2296019aa-ua21).</p>

            cristian04 Cristian Marquez Russo
            cristian04 Cristian Marquez Russo
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: