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

Unable to precompile HTTP on a Linux computing cluster due to cert.pem not being found. #894

Closed
astrobc1 opened this issue Jul 25, 2022 · 2 comments

Comments

@astrobc1
Copy link

astrobc1 commented Jul 25, 2022

I am unable to precompile HTTP on a Linux computing cluster due to cert.pem not being found. I can confirm HTTP works fine on a macOS. I'm also looking into this from the cluster's end.

  • Julia 1.7.2
  • HTTP.jl 0.9.17
  • MbedTLS.jl 1.1.1
julia> using HTTP
[ Info: Precompiling HTTP [cd3eb016-35fb-5094-929b-558a96fad6f3]
ERROR: LoadError: InitError: SystemError: opening file "/opt/sw/spack/apps/linux-rhel8-x86_64_v2/gcc-10.3.0/julia-1.7.2-3k/share/julia/cert.pem": No such file or directory
Stacktrace:
  [1] systemerror(p::String, errno::Int32; extrainfo::Nothing)
    @ Base ./error.jl:174
  [2] #systemerror#68
    @ ./error.jl:173 [inlined]
  [3] systemerror
    @ ./error.jl:173 [inlined]
  [4] open(fname::String; lock::Bool, read::Nothing, write::Nothing, create::Nothing, truncate::Nothing, append::Nothing)
    @ Base ./iostream.jl:293
  [5] open
    @ ./iostream.jl:282 [inlined]
  [6] open(f::Base.var"#364#365"{String}, args::String; kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ Base ./io.jl:328
  [7] open
    @ ./io.jl:328 [inlined]
  [8] read
    @ ./io.jl:436 [inlined]
  [9] __sslinit__()
    @ MbedTLS ~/.julia/packages/MbedTLS/bYd4w/src/ssl.jl:780
 [10] __init__()
    @ MbedTLS ~/.julia/packages/MbedTLS/bYd4w/src/MbedTLS.jl:55
 [11] _include_from_serialized(path::String, depmods::Vector{Any})
    @ Base ./loading.jl:768
 [12] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String)
    @ Base ./loading.jl:854
 [13] _require(pkg::Base.PkgId)
    @ Base ./loading.jl:1097
 [14] require(uuidkey::Base.PkgId)
    @ Base ./loading.jl:1013
 [15] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:997
 [16] include(mod::Module, _path::String)
    @ Base ./Base.jl:418
 [17] include(x::String)
    @ HTTP ~/.julia/packages/HTTP/aTjcj/src/HTTP.jl:1
 [18] top-level scope
    @ ~/.julia/packages/HTTP/aTjcj/src/HTTP.jl:33
 [19] include
    @ ./Base.jl:418 [inlined]
 [20] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::Nothing)
    @ Base ./loading.jl:1318
 [21] top-level scope
    @ none:1
 [22] eval
    @ ./boot.jl:373 [inlined]
 [23] eval(x::Expr)
    @ Base.MainInclude ./client.jl:453
 [24] top-level scope
    @ none:1
during initialization of module MbedTLS
in expression starting at /home/bcale/.julia/packages/HTTP/aTjcj/src/IOExtras.jl:1
in expression starting at /home/bcale/.julia/packages/HTTP/aTjcj/src/HTTP.jl:1
ERROR: Failed to precompile HTTP [cd3eb016-35fb-5094-929b-558a96fad6f3] to /home/bcale/.julia/compiled/v1.7/HTTP/jl_5iwTeH.
Stacktrace:
 [1] error(s::String)
   @ Base ./error.jl:33
 [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, ignore_loaded_modules::Bool)
   @ Base ./loading.jl:1466
 [3] compilecache(pkg::Base.PkgId, path::String)
   @ Base ./loading.jl:1410
 [4] _require(pkg::Base.PkgId)
   @ Base ./loading.jl:1120
 [5] require(uuidkey::Base.PkgId)
   @ Base ./loading.jl:1013
 [6] require(into::Module, mod::Symbol)
   @ Base ./loading.jl:997
@fredrikekre
Copy link
Member

Looks like a broken Julia install then -- both the cert from MozillaCACerts_jll and the fallback (JuliaLang/MbedTLS.jl#246) fails in your case.

@astrobc1
Copy link
Author

Thanks! I'll close the issue for now and follow-up with the cluster.

@astrobc1 astrobc1 reopened this Jul 25, 2022
@astrobc1 astrobc1 closed this as not planned Won't fix, can't repro, duplicate, stale Jul 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants