Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Downloads.jl downloading is broken on Windows, errors when trying to read cert file #38429

Closed
KristofferC opened this issue Nov 13, 2020 · 6 comments · Fixed by JuliaLang/NetworkOptions.jl#4
Assignees
Labels
ci Continuous integration

Comments

@KristofferC
Copy link
Member

https://build.julialang.org/#/builders/61/builds/5568/steps/5/logs/stdio

Error in testset spawn:
Error During Test at C:\buildbot\worker-tabularasa\tester_win32\build\share\julia\test\testdefs.jl:21
  Got exception outside of a @test
  LoadError: Error reading ca cert file C:\buildbot\worker\package_win32\build\usr\share\julia\cert.pem - mbedTLS: (-0x3E00) PK - Read/write of file failed while requesting https://cache.julialang.org/https://frippery.org/files/busybox/busybox.exe
  Stacktrace:
    [1] (::Downloads.var"#9#17"{IOStream, Base.DevNull, Nothing, Vector{Pair{String, String}}, Nothing, Bool, Bool, String, Int32, Bool, Bool})(easy::Downloads.Curl.Easy)
      @ Downloads C:\buildbot\worker\package_win32\build\usr\share\julia\stdlib\v1.6\Downloads\src\Downloads.jl:333
    [2] with_handle(f::Downloads.var"#9#17"{IOStream, Base.DevNull, Nothing, Vector{Pair{String, String}}, Nothing, Bool, Bool, String, Int32, Bool, Bool}, handle::Downloads.Curl.Easy)
      @ Downloads.Curl C:\buildbot\worker\package_win32\build\usr\share\julia\stdlib\v1.6\Downloads\src\Curl\Curl.jl:51
    [3] #8
      @ C:\buildbot\worker\package_win32\build\usr\share\julia\stdlib\v1.6\Downloads\src\Downloads.jl:284 [inlined]
    [4] arg_write(f::Downloads.var"#8#16"{Base.DevNull, Nothing, Vector{Pair{String, String}}, Nothing, Bool, Bool, String, Int32, Bool, Bool}, arg::IOStream)
      @ ArgTools C:\buildbot\worker\package_win32\build\usr\share\julia\stdlib\v1.6\ArgTools\src\ArgTools.jl:112
    [5] #7
      @ C:\buildbot\worker\package_win32\build\usr\share\julia\stdlib\v1.6\Downloads\src\Downloads.jl:283 [inlined]
    [6] arg_read
      @ C:\buildbot\worker\package_win32\build\usr\share\julia\stdlib\v1.6\ArgTools\src\ArgTools.jl:61 [inlined]
    [7] request(url::String; input::Nothing, output::IOStream, method::Nothing, headers::Vector{Pair{String, String}}, progress::Nothing, verbose::Bool, throw::Bool, downloader::Nothing)
      @ Downloads C:\buildbot\worker\package_win32\build\usr\share\julia\stdlib\v1.6\Downloads\src\Downloads.jl:282
    [8] #3
      @ C:\buildbot\worker\package_win32\build\usr\share\julia\stdlib\v1.6\Downloads\src\Downloads.jl:199 [inlined]
    [9] open(f::Downloads.var"#3#4"{Nothing, Vector{Pair{String, String}}, Nothing, Bool, Nothing, String}, args::String; kwargs::Base.Iterators.Pairs{Symbol, Bool, Tuple{Symbol}, NamedTuple{(:write,), Tuple{Bool}}})
      @ Base .\io.jl:330
   [10] arg_write(f::Function, arg::String)
      @ ArgTools C:\buildbot\worker\package_win32\build\usr\share\julia\stdlib\v1.6\ArgTools\src\ArgTools.jl:86
   [11] #download#2
      @ C:\buildbot\worker\package_win32\build\usr\share\julia\stdlib\v1.6\Downloads\src\Downloads.jl:198 [inlined]
   [12] download(url::String, output::String)
      @ Downloads C:\buildbot\worker\package_win32\build\usr\share\julia\stdlib\v1.6\Downloads\src\Downloads.jl:198
   [13] top-level scope
      @ C:\buildbot\worker-tabularasa\tester_win32\build\share\julia\test\spawn.jl:24
...

maybe #38413?

@KristofferC KristofferC added the ci Continuous integration label Nov 13, 2020
@KristofferC
Copy link
Member Author

Actually, Pkg is broken on Windows now: JuliaLang/Pkg.jl#2208 (comment).

@KristofferC KristofferC changed the title CI error when Downloads.jl tries to read cert file Downloads.jl downloading is broken on Windows, errors when trying to read cert file Nov 13, 2020
@fredrikekre
Copy link
Member

See also #38070 (comment) #38070 (comment)

Of course it should not fail, but IMO these artifacts should not even be downloaded at all.

@KristofferC
Copy link
Member Author

Yes, but this also fails to get the registry so it's independent of that.

@KristofferC
Copy link
Member Author

In JuliaLang/Pkg.jl#2208 (comment):

ERROR: Error reading ca cert file C:\buildbot\worker\package_win64\build\usr\share\julia\cert.pem - mbedTLS: (-0x3E00) PK - Read/write of file failed while requesting...

Looks like the buildbot path gets hardcoded somewhere?

@StefanKarpinski
Copy link
Member

Still not closed on Julia master yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci Continuous integration
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants