I’m having this issue under Julia 1.8.2. A clean Julia install has not been able to solve it.
(@v1.8) pkg> up
┌ Warning: could not download https://pkg.julialang.org/registries
│ exception = HTTP/2 301 (Failed to connect to sa.pkg.julialang.org port 443 after 27 ms: Connection refused) while requesting https://pkg.julialang.org/registries
└ @ Pkg.Registry /cache/build/default-amdci4-6/julialang/julia-release-1-dot-8/usr/share/julia/stdlib/v1.8/Pkg/src/Registry/Registry.jl:68
Updating registry at `~/.julia/registries/General`
Unhandled Task ERROR: IOError: FDWatcher: bad file descriptor (EBADF)
Stacktrace:
[1] try_yieldto(undo::typeof(Base.ensure_rescheduled))
@ Base ./task.jl:871
[2] wait()
@ Base ./task.jl:931
[3] wait(c::Base.GenericCondition{Base.Threads.SpinLock})
@ Base ./condition.jl:124
[4] _wait(fdw::FileWatching._FDWatcher, mask::FileWatching.FDEvent)
@ FileWatching ~/packages/julias/julia-1.8/share/julia/stdlib/v1.8/FileWatching/src/FileWatching.jl:535
[5] wait(fdw::FileWatching.FDWatcher)
@ FileWatching ~/packages/julias/julia-1.8/share/julia/stdlib/v1.8/FileWatching/src/FileWatching.jl:563
[6] macro expansion
@ ~/packages/julias/julia-1.8/share/julia/stdlib/v1.8/Downloads/src/Curl/Multi.jl:166 [inlined]
[7] (::Downloads.Curl.var"#40#46"{Int32, FileWatching.FDWatcher, Downloads.Curl.Multi})()
@ Downloads.Curl ./task.jl:484
Updating git-repo `https://github.com/JuliaRegistries/General.git`
No Changes to `~/.julia/environments/v1.8/Project.toml`
No Changes to `~/.julia/environments/v1.8/Manifest.toml`
[ Info: We haven't cleaned this depot up for a bit, running Pkg.gc()...
Active manifest files: 1 found
Active artifact files: 0 found
Active scratchspaces: 0 found
Deleted no artifacts, repos, packages or scratchspaces
(@v1.8) pkg>
Are you able to download https://pkg.julialang.org/registries in the browser or using curl on the command line, e.g. with curl -L https://pkg.julialang.org/registries.
Confirmed that sa.pkg.julialang.org is not allowing connections. I’ve moved this to a new topic since it’s an unrelated issue. That server may be having issues.
(@v1.9) pkg> up Revise
┌ Warning: could not download https://pkg.julialang.org/registries
│ exception = RequestError: HTTP/2 301 (Could not resolve host: sa.pkg.julialang.org) while requesting https://pkg.julialang.org/registries