Failure to download artifacts: cannot add/update some packages!

The problem: I run

ENV["JULIA_DEBUG"] = "all" # detailed debug info
import Pkg
Pkg.add("HTTP")

but fail to install HTTP because I can’t download the artifact OpenSSL (stacktrace below). Additional info:

  • Julia version 1.10.4. Windows 10 64bit
  • I am using a corporate PC without proxy. The firm blocks a lot of things, but I am usually able to download packages, and the HTTP package itself is working find in other environments. Is it possible to verify from the output that this is a proxy issue? If so, I will talk to the boys at IT. Otherwise, any help would be greatly appreciated :slight_smile:
  • I have tried setting ENV["JULIA_SSL_NO_VERIFY_HOSTS"] = "github.com" and ENV["JULIA_SSL_NO_VERIFY_HOSTS"] = "pkg.julialang.org". Neither worked.
  • The issue is not specific to OpenSSL. If I run Pkg.update(), I get a similar error when downloading artifact libfdk_aac.

Thank you very much!


┌ Debug: Skipping updating registry General since it is on cooldown: 23 hours, 42 minutes, 44 seconds, 700 milliseconds left
└ @ Pkg.Registry C:\Users\NAMENAME\AppData\Local\Programs\Julia-1.10.4\share\julia\stdlib\v1.10\Pkg\src\Registry\Registry.jl:387
   Resolving package versions...
┌ Debug: tiered_resolve: trying PRESERVE_ALL
└ @ Pkg.Operations C:\Users\NAMENAME\AppData\Local\Programs\Julia-1.10.4\share\julia\stdlib\v1.10\Pkg\src\Operations.jl:1332┌ Debug: Downloading artifact from Pkg server
│   name = "OpenSSL"
│   artifacts_toml = "C:\\Users\\NAMENAME\\.julia\\packages\\OpenSSL_jll\\DoJl5\\Artifacts.toml"
│   platform = Windows x86_64 {cxxstring_abi=cxx11, julia_version=1.10.4, libgfortran_version=5.0.0}
│   url = "https://pkg.julialang.org/artifact/8b5673894767bc39a7d0dfdad9c9c083fd9fe304"
└ @ Pkg.Artifacts C:\Users\NAMENAME\AppData\Local\Programs\Julia-1.10.4\share\julia\stdlib\v1.10\Pkg\src\Artifacts.jl:421   
 Downloading artifact: OpenSSL
┌ Debug: download and verify failed
│   url = "https://pkg.julialang.org/artifact/8b5673894767bc39a7d0dfdad9c9c083fd9fe304"
│   dest = "C:\\Users\\NAMENAME\\AppData\\Local\\Temp\\jl_3wXOBGtEf8-download.gz"
ifact/8b5673894767bc39a7d0dfdad9c9c083fd9fe304
└ @ Pkg.PlatformEngines C:\Users\NAMENAME\AppData\Local\Programs\Julia-1.10.4\share\julia\stdlib\v1.10\Pkg\src\PlatformEngines.jl:352
┌ Debug: download and verify failed
│   url = "https://pkg.julialang.org/artifact/8b5673894767bc39a7d0dfdad9c9c083fd9fe304"
│   dest = "C:\\Users\\NAMENAME\\AppData\\Local\\Temp\\jl_3wXOBGtEf8-download.gz"
│   err = RequestError: HTTP/1.1 200 OK (Recv failure: Connection was reset) while requesting https://pkg.julialang.org/artifact/8b5673894767bc39a7d0dfdad9c9c083fd9fe304
└ @ Pkg.PlatformEngines C:\UsersNAMENAME\AppData\Local\Programs\Julia-1.10.4\share\julia\stdlib\v1.10\Pkg\src\PlatformEngines.jl:352
┌ Debug: download and verify failed
│   url = "https://pkg.julialang.org/artifact/8b5673894767bc39a7d0dfdad9c9c083fd9fe304"
│   dest = "C:\\Users\\NAMENAME\\AppData\\Local\\Temp\\jl_3wXOBGtEf8-download.gz"
│   err = RequestError: HTTP/1.1 200 OK (Recv failure: Connection was reset) while requesting https://pkg.julialang.org/artifact/8b5673894767bc39a7d0dfdad9c9c083fd9fe304
└ @ Pkg.PlatformEngines C:\Users\NAMENAME\AppData\Local\Programs\Julia-1.10.4\share\julia\stdlib\v1.10\Pkg\src\PlatformEngines.jl:352
┌ Debug: download and verify failed
│   url = "https://pkg.julialang.org/artifact/8b5673894767bc39a7d0dfdad9c9c083fd9fe304"
│   dest = "C:\\Users\\NAMENAME\\AppData\\Local\\Temp\\jl_3wXOBGtEf8-download.gz"
│   err = RequestError: HTTP/1.1 200 OK (Recv failure: Connection was reset) while requesting https://pkg.julialang.org/artifact/8b5673894767bc39a7d0dfdad9c9c083fd9fe304
└ @ Pkg.PlatformEngines C:\Users\NAMENAME\AppData\Local\Programs\Julia-1.10.4\share\julia\stdlib\v1.10\Pkg\src\PlatformEngines.jl:352
┌ Debug: download_artifact error
│   tree_hash = SHA1("8b5673894767bc39a7d0dfdad9c9c083fd9fe304")
│   tarball_url = "https://pkg.julialang.org/artifact/8b5673894767bc39a7d0dfdad9c9c083fd9fe304"
│   tarball_hash = nothing
│   err = RequestError: HTTP/1.1 200 OK (Recv failure: Connection was reset) while requesting https://pkg.julialang.org/artifact/8b5673894767bc39a7d0dfdad9c9c083fd9fe304
     Failure artifact: OpenSSL
┌ Debug: Failed to download artifact from Pkg server
│   download_success = RequestError: HTTP/1.1 200 OK (Recv failure: Connection was reset) while requesting https://pkg.julialang.org/artifact/8b5673894767bc39a7d0dfdad9c9c083fd9fe304
└ @ Pkg.Artifacts C:\Users\NAMENAME\AppData\Local\Programs\Julia-1.10.4\share\julia\stdlib\v1.10\Pkg\src\Artifacts.jl:430   
┌ Debug: Downloading artifact
│   name = "OpenSSL"
│   artifacts_toml = "C:\\Users\\NAMENAME\\.julia\\packages\\OpenSSL_jll\\DoJl5\\Artifacts.toml"
│   platform = Windows x86_64 {cxxstring_abi=cxx11, julia_version=1.10.4, libgfortran_version=5.0.0}
│   url = "https://github.com/JuliaBinaryWrappers/OpenSSL_jll.jl/releases/download/OpenSSL-v3.0.15+0/OpenSSL.v3.0.15.x86_64-w64-mingw32.tar.gz"
└ @ Pkg.Artifacts C:\Users\NAMENAME\AppData\Local\Programs\Julia-1.10.4\share\julia\stdlib\v1.10\Pkg\src\Artifacts.jl:446   
 Downloading artifact: OpenSSL
┌ Debug: download and verify failed
│   url = "https://github.com/JuliaBinaryWrappers/OpenSSL_jll.jl/releases/download/OpenSSL-v3.0.15+0/OpenSSL.v3.0.15.x86_64-w64-mingw32.tar.gz"
│   dest = "C:\\Users\\NAMENAME\\AppData\\Local\\Temp\\jl_TqZsXovY1g-download.gz"
│   err = RequestError: HTTP/1.1 403 Forbidden while requesting https://github.com/JuliaBinaryWrappers/OpenSSL_jll.jl/releases/download/OpenSSL-v3.0.15+0/OpenSSL.v3.0.15.x86_64-w64-mingw32.tar.gz
└ @ Pkg.PlatformEngines C:\Users\NAMENAME\AppData\Local\Programs\Julia-1.10.4\share\julia\stdlib\v1.10\Pkg\src\PlatformEngines.jl:352
┌ Debug: download and verify failed
│   url = "https://github.com/JuliaBinaryWrappers/OpenSSL_jll.jl/releases/download/OpenSSL-v3.0.15+0/OpenSSL.v3.0.15.x86_64-w64-mingw32.tar.gz"
│   dest = "C:\\Users\\NAMENAME\\AppData\\Local\\Temp\\jl_TqZsXovY1g-download.gz"
│   err = RequestError: HTTP/1.1 403 Forbidden while requesting https://github.com/JuliaBinaryWrappers/OpenSSL_jll.jl/releases/download/OpenSSL-v3.0.15+0/OpenSSL.v3.0.15.x86_64-w64-mingw32.tar.gz
└ @ Pkg.PlatformEngines C:\Users\NAMENAME\AppData\Local\Programs\Julia-1.10.4\share\julia\stdlib\v1.10\Pkg\src\PlatformEngines.jl:352
┌ Debug: download and verify failed
│   url = "https://github.com/JuliaBinaryWrappers/OpenSSL_jll.jl/releases/download/OpenSSL-v3.0.15+0/OpenSSL.v3.0.15.x86_64-w64-mingw32.tar.gz"
│   dest = "C:\\Users\\NAMENAME\\AppData\\Local\\Temp\\jl_TqZsXovY1g-download.gz"
│   err = RequestError: HTTP/1.1 403 Forbidden while requesting https://github.com/JuliaBinaryWrappers/OpenSSL_jll.jl/releases/download/OpenSSL-v3.0.15+0/OpenSSL.v3.0.15.x86_64-w64-mingw32.tar.gz
└ @ Pkg.PlatformEngines C:\Users\NAMENAME\AppData\Local\Programs\Julia-1.10.4\share\julia\stdlib\v1.10\Pkg\src\PlatformEngines.jl:352
┌ Debug: download and verify failed
│   url = "https://github.com/JuliaBinaryWrappers/OpenSSL_jll.jl/releases/download/OpenSSL-v3.0.15+0/OpenSSL.v3.0.15.x86_64-w64-mingw32.tar.gz"
│   dest = "C:\\Users\\NAMENAME\\AppData\\Local\\Temp\\jl_TqZsXovY1g-download.gz"
│   err = RequestError: HTTP/1.1 403 Forbidden while requesting https://github.com/JuliaBinaryWrappers/OpenSSL_jll.jl/releases/download/OpenSSL-v3.0.15+0/OpenSSL.v3.0.15.x86_64-w64-mingw32.tar.gz
└ @ Pkg.PlatformEngines C:\Users\NAMENAME\AppData\Local\Programs\Julia-1.10.4\share\julia\stdlib\v1.10\Pkg\src\PlatformEngines.jl:352
┌ Debug: download_artifact error
│   tree_hash = SHA1("8b5673894767bc39a7d0dfdad9c9c083fd9fe304")
│   tarball_url = "https://github.com/JuliaBinaryWrappers/OpenSSL_jll.jl/releases/download/OpenSSL-v3.0.15+0/OpenSSL.v3.0.15.x86_64-w64-mingw32.tar.gz"
│   tarball_hash = "0c7b51a91dc9d6c2ecbbc46db93f8f3ebc35fdeccc98739ee3d89600b18f7b79"
│   err = RequestError: HTTP/1.1 403 Forbidden while requesting https://github.com/JuliaBinaryWrappers/OpenSSL_jll.jl/releases/download/OpenSSL-v3.0.15+0/OpenSSL.v3.0.15.x86_64-w64-mingw32.tar.gz
     Failure artifact: OpenSSL
┌ Debug: Failed to download artifact
│   download_success = RequestError: HTTP/1.1 403 Forbidden while requesting https://github.com/JuliaBinaryWrappers/OpenSSL_jll.jl/releases/download/OpenSSL-v3.0.15+0/OpenSSL.v3.0.15.x86_64-w64-mingw32.tar.gz
└ @ Pkg.Artifacts C:\Users\NAMENAME\AppData\Local\Programs\Julia-1.10.4\share\julia\stdlib\v1.10\Pkg\src\Artifacts.jl:455   
ERROR: Unable to automatically download/install artifact 'OpenSSL' from sources listed in 'C:\Users\NAMENAME\.julia\packages\OpenSSL_jll\DoJl5\Artifacts.toml'.
Sources attempted:
- https://pkg.julialang.org/artifact/8b5673894767bc39a7d0dfdad9c9c083fd9fe304
    Error: RequestError: HTTP/1.1 200 OK (Recv failure: Connection was reset) while requesting https://pkg.julialang.org/artifact/8b5673894767bc39a7d0dfdad9c9c083fd9fe304
- https://github.com/JuliaBinaryWrappers/OpenSSL_jll.jl/releases/download/OpenSSL-v3.0.15+0/OpenSSL.v3.0.15.x86_64-w64-mingw32.tar.gz
    Error: RequestError: HTTP/1.1 403 Forbidden while requesting https://github.com/JuliaBinaryWrappers/OpenSSL_jll.jl/releases/download/OpenSSL-v3.0.15+0/OpenSSL.v3.0.15.x86_64-w64-mingw32.tar.gz

Stacktrace:
  [1] error(s::String)
    @ Base .\error.jl:35
  [2] ensure_artifact_installed(name::String, meta::Dict{…}, artifacts_toml::String; platform::Base.BinaryPlatforms.Platform, verbose::Bool, quiet_download::Bool, io::Base.TTY)
    @ Pkg.Artifacts C:\Users\NAMENAME\AppData\Local\Programs\Julia-1.10.4\share\julia\stdlib\v1.10\Pkg\src\Artifacts.jl:467 
  [3]
    @ Pkg.Operations C:\Users\NAMENAME\AppData\Local\Programs\Julia-1.10.4\share\julia\stdlib\v1.10\Pkg\src\Operations.jl:756
  [4] add(ctx::Pkg.Types.Context, pkgs::Vector{…}, new_git::Set{…}; preserve::Pkg.Types.PreserveLevel, platform::Base.BinaryPlatforms.Platform)
    @ Pkg.Operations C:\Users\NAMENAME\AppData\Local\Programs\Julia-1.10.4\share\julia\stdlib\v1.10\Pkg\src\Operations.jl:1395
  [5] add
    @ C:\Users\NAMENAME\AppData\Local\Programs\Julia-1.10.4\share\julia\stdlib\v1.10\Pkg\src\Operations.jl:1377 [inlined]   
  [6] add(ctx::Pkg.Types.Context, pkgs::Vector{…}; preserve::Pkg.Types.PreserveLevel, platform::Base.BinaryPlatforms.Platform, kwargs::@Kwargs{…})
    @ Pkg.API C:\Users\NAMENAME\AppData\Local\Programs\Julia-1.10.4\share\julia\stdlib\v1.10\Pkg\src\API.jl:278
  [7] add(pkgs::Vector{Pkg.Types.PackageSpec}; io::Base.TTY, kwargs::@Kwargs{})
    @ Pkg.API C:\Users\NAMENAME\AppData\Local\Programs\Julia-1.10.4\share\julia\stdlib\v1.10\Pkg\src\API.jl:159
  [8] add(pkgs::Vector{Pkg.Types.PackageSpec})
    @ Pkg.API C:\Users\NAMENAME\AppData\Local\Programs\Julia-1.10.4\share\julia\stdlib\v1.10\Pkg\src\API.jl:148
  [9] add
    @ C:\Users\NAMENAME\AppData\Local\Programs\Julia-1.10.4\share\julia\stdlib\v1.10\Pkg\src\API.jl:147 [inlined]
 [10] add(pkg::String)
    @ Pkg.API C:\Users\NAMENAME\AppData\Local\Programs\Julia-1.10.4\share\julia\stdlib\v1.10\Pkg\src\API.jl:146
 [11] top-level scope
    @ REPL[3]:1
Some type information was truncated. Use `show(err)` to see complete types.

Try this:

  1. Download the OpenSSL artifact using your browser
  2. Extract the contents twice, e.g. using 7-zip
  3. Create a new folder in C:\Users\NAMENAME\.julia\artifacts, and name it 8b5673894767bc39a7d0dfdad9c9c083fd9fe304
  4. Copy the three folders bin, include, and share from the extracted folder to the new folder
  5. Run julia>]add HTTP again

It worked perfectly. Thank you!