Failed to install <tool url> to <file path>

Jenkins JIRA | Ben Walding | 6 months ago
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    It appears that during a tool install, the master is attempting a connection out to the remote url - before attempting it on the agent. h4. Stack Trace {noformat} Failed to install <tool url> to <file path> at hudson.FilePath.installIfNecessaryFrom( at at at at {noformat} h4. Forcing a problem One way to force a failure on the master would be to set a "fail always" hostname verifier on the master (via script console) {code} HttpsURLConnection.setDefaultHostnameVerifier(new HostnameVerifier() { public boolean verify(String hostname, SSLSession session) { return false; } } ); {code} h4. Discussion The failure was here [1]. But this is happening on the master. We do not really care how the master is configured; we want to do the download from the agent, for builds run in a remote workspace (the recommended configuration). Which it does try to do, starting at line 804, falling back to a slower master-based download only if that fails (for example because the agent has no Internet access). The problem is that we first try to get a URLConnection on the master merely to check the timestamp and other response headers plus status (so we know whether a download is even needed); normally con is then discarded without downloading content. So the fact that a failure occurred in the dummy initial connection (which would ideally be a HEAD not GET) is causing the whole tool installation to fail is a serious problem. For a remote workspace, we should be doing even the metadata checks inside the Unpack callable. It should not really matter whether the master’s settings were broken or not, at least not for purposes of tool downloads. One connection to the tool installer URL would be made, from the agent JVM, which (I hope) would have default Java settings that would work fine. [1]

    Jenkins JIRA | 6 months ago | Ben Walding Failed to install <tool url> to <file path>
  2. 0

    [JIRA] (JENKINS-37745) Tool installer prematurely connecting to download URLs on master

    Google Groups | 6 months ago | (JIRA) Failed to install &lt;tool url&gt; to &lt;file path&gt;

    Root Cause Analysis


      Failed to install <tool url> to <file path>

      at hudson.FilePath.installIfNecessaryFrom()
    2. Hudson
      1. hudson.FilePath.installIfNecessaryFrom(
      5 frames