Today I installed the new version of JuliaPro, but met the issue
Warning: could not download https://pkg.juliahub.com/registries
└ @ Pkg.Types D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\Pkg\src\Types.jl:951
This issue is now fixed on the server side, can you try updating your registry now? Please make sure you have a valid .julia/servers/pkg.juliahub.com/auth.toml
OK, I found the solution. Go to https://pkg.juliacomputing.com/auth in a browser, and authenticate. A file is downloaded; in my case it was named token.toml so I renamed it to auth.toml and moved into the directory ~/.julia/servers/pkg.juliahub.com/ replacing the old version, which must have been expired. Why is this so hard?
I have the same problem and managed to download the file you mentioned. However, I don’t have the directory ~/.julia/servers. Should I create one manually?
Thank you for your confirmation. I hope this works out well. On top of this issue, FYI server in us-east is often returned 502 Bad Gateway, if you think this is what also may cause this issue.
That’s an entirely different server, so it shouldn’t have any effect. The us-east.pkg.julialang.org server is a Julia community server and doesn’t require authentication.
I don’t understand the approach neither. I am neither a package maintainer, nor a Pro/member of JuliaTeam. Why am I required to have the file auth.toml?
The warning I got is
(@v1.5) pkg> update
Updating registry at `~/.julia/registries/General`
┌ Warning: could not download https://pkg.julialang.org/registries
└ @ Pkg.Types /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.5/Pkg/src/Types.jl:951
The file is required because JuliaPro uses an authenticated package server, pkg.juliahub.com (maintained by Julia Computing, like JuliaPro itself). This server supports integration with https://JuliaHub.com which requires knowing who you are (for example, imminently forthcoming ability to send compute from you JuliaPro to the cloud, with parallelization). For that it needs an auth.toml file. JuliaPro should be generating that file for you automatically and saving it to the right place.
In order to authenticate you, there is a flow where you need to visit a web page on https://JuliaHub.com in your browser to prove that you are who you say you are. It is possible that is not happening for some reason—maybe JuliaPro does not have a way to open a browser window for you, or the window is being suppressed when it does. Saving that file yourself is not normal and indicates that something is wrong with the normal auth flow on your system. More detail about what does and doesn’t happen and about your system would be helpful to figure out what is going wrong. If you’re comfortable providing it here, that’s good, otherwise you can send DMs to me and I will make sure the JuliaPro/Hub team gets them.
it certainly makes sense for JuliaPro users, but I am currently not. To clarify, my case is “Warning: could not download https://pkg.julialang.org/registries” and thus can’t get packages updated. Maybe I should start a new thread, but is there any chance the two issues actually be fixed, if any bugs, at the same time perhaps (as it refers to the same line stdlib/v1.5/Pkg/src/Types.jl:951)?
That’s an entirely different matter and unrelated to what this thread is about. The US East community package server has been having some maintenance issues, which will get looked at soon. In the meantime, you can try setting JULIA_PKG_SERVER=us-west.pkg.julialang.org in your shell.
I hadn’t initially noticed this but this is not attempting to connect to pkg.juliahub.com but rather pkg.julialang.org, so the auth stuff is not irrelevant: no auth is being done here. Given that, I’m not sure why downloading the auth.toml file manually would change anything…
┌ Warning: could not download https://pkg.julialang.org/registries
└ @ Pkg.Types D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\Pkg\src\Types.jl:951
You said you changed the server to US-West. Can you direct me on how to do this, please? I am new to Julia, and so 15 minutes of searching has not answered this for me yet. Your help is appreciated.
I did try to adding auth.toml as well. No luck with this solution.