# JuliaPro1.5.0: could not download https://pkg.juliahub.com/registries

**URL:** https://discourse.julialang.org/t/juliapro1-5-0-could-not-download-https-pkg-juliahub-com-registries/44811
**Category:** Tooling
**Tags:** juliapro, juliahub
**Created:** [August 12, 2020, 2:58pm UTC](https://discourse.julialang.org/t/juliapro1-5-0-could-not-download-https-pkg-juliahub-com-registries/44811 "2020-08-12T14:58:36Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![zwwi](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/zwwi/32/11932_2.png) [@zwwi](https://discourse.julialang.org/u/zwwi)
#### Post date: [August 12, 2020, 2:58pm UTC](https://discourse.julialang.org/t/juliapro1-5-0-could-not-download-https-pkg-juliahub-com-registries/44811/1 "2020-08-12T14:58:36Z")

</div>

Today I installed the new version of JuliaPro, but met the issue

```julia
 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

```

what could be the reason? thanks.

---

<div class="post-metadata">

### Author: ![StefanKarpinski](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stefankarpinski/32/24_2.png) [@StefanKarpinski](https://discourse.julialang.org/u/StefanKarpinski)
#### Post date: [August 12, 2020, 8:04pm UTC](https://discourse.julialang.org/t/juliapro1-5-0-could-not-download-https-pkg-juliahub-com-registries/44811/2 "2020-08-12T20:04:14Z")

</div>

Are you able to download `https://pkg.juliahub.com/registries` from the commandline with `curl` for example?

---

<div class="post-metadata">

### Author: ![zwwi](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/zwwi/32/11932_2.png) [@zwwi](https://discourse.julialang.org/u/zwwi)
#### Post date: [August 13, 2020, 1:26am UTC](https://discourse.julialang.org/t/juliapro1-5-0-could-not-download-https-pkg-juliahub-com-registries/44811/3 "2020-08-13T01:26:58Z")

</div>

No, it says  
`curl : 401 Authorization Required`

I checked that I have an `auth.toml` file in `.julia/servers/pkg.juliahub.com`. Does the error mean that this file is not valid?

---

<div class="post-metadata">

### Author: ![Harsha](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/harsha/32/1985_2.png) [@Harsha](https://discourse.julialang.org/u/Harsha)
#### Post date: [August 13, 2020, 5:12am UTC](https://discourse.julialang.org/t/juliapro1-5-0-could-not-download-https-pkg-juliahub-com-registries/44811/4 "2020-08-13T05:12:41Z")

</div>

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`

---

<div class="post-metadata">

### Author: ![zwwi](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/zwwi/32/11932_2.png) [@zwwi](https://discourse.julialang.org/u/zwwi)
#### Post date: [August 13, 2020, 8:32am UTC](https://discourse.julialang.org/t/juliapro1-5-0-could-not-download-https-pkg-juliahub-com-registries/44811/5 "2020-08-13T08:32:00Z")

</div>

it worked. Thank you!

---

<div class="post-metadata">

### Author: ![dcurrie](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dcurrie/32/18221_2.png) [@dcurrie](https://discourse.julialang.org/u/dcurrie)
#### Post date: [September 26, 2020, 4:29pm UTC](https://discourse.julialang.org/t/juliapro1-5-0-could-not-download-https-pkg-juliahub-com-registries/44811/6 "2020-09-26T16:29:42Z")

</div>

I seem to have the same problem from the command line

```julia
~ e% exec '/Applications/Julia-1.5.app/Contents/Resources/julia/bin/julia'
               _
   _ _ _(_)_ | Documentation: https://docs.julialang.org
  (_) | (_) (_) |
   _ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` | |
  | | |_| | | | (_| | | Version 1.5.2 (2020-09-23)
 _/ |\ __'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |

julia> 

(@v1.5) pkg> update Pluto
   Updating registry at `~/.julia/registries/General`
┌ Warning: could not download https://pkg.julialang.org/registries
└ @ Pkg.Types /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.5/Pkg/src/Types.jl:951
   Updating registry at `~/.julia/registries/JuliaComputingRegistry`
No Changes to `~/.julia/environments/v1.5/Project.toml`
No Changes to `~/.julia/environments/v1.5/Manifest.toml`

```

However, I have a `~/.julia/servers/pkg.juliahub.com/auth.toml`  
It looks legit, how can I verify that it’s valid, or update it if it’s not?

---

<div class="post-metadata">

### Author: ![dcurrie](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dcurrie/32/18221_2.png) [@dcurrie](https://discourse.julialang.org/u/dcurrie)
#### Post date: [September 26, 2020, 4:40pm UTC](https://discourse.julialang.org/t/juliapro1-5-0-could-not-download-https-pkg-juliahub-com-registries/44811/7 "2020-09-26T16:40:02Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![Jaepil\_Lee](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jaepil_lee/32/9146_2.png) [@Jaepil\_Lee](https://discourse.julialang.org/u/Jaepil_Lee)
#### Post date: [September 27, 2020, 12:55am UTC](https://discourse.julialang.org/t/juliapro1-5-0-could-not-download-https-pkg-juliahub-com-registries/44811/8 "2020-09-27T00:55:51Z")

</div>

Hi,

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?

---

<div class="post-metadata">

### Author: ![StefanKarpinski](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stefankarpinski/32/24_2.png) [@StefanKarpinski](https://discourse.julialang.org/u/StefanKarpinski)
#### Post date: [September 27, 2020, 3:54am UTC](https://discourse.julialang.org/t/juliapro1-5-0-could-not-download-https-pkg-juliahub-com-registries/44811/9 "2020-09-27T03:54:19Z")

</div>

We’re looking into why this is happening. Yes, of you create `~/.julia/servers/pkg.juliahub.com/` and put the `auth.toml` file in it, that should work.

---

<div class="post-metadata">

### Author: ![Jaepil\_Lee](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jaepil_lee/32/9146_2.png) [@Jaepil\_Lee](https://discourse.julialang.org/u/Jaepil_Lee)
#### Post date: [September 27, 2020, 3:58am UTC](https://discourse.julialang.org/t/juliapro1-5-0-could-not-download-https-pkg-juliahub-com-registries/44811/10 "2020-09-27T03:58:08Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![StefanKarpinski](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stefankarpinski/32/24_2.png) [@StefanKarpinski](https://discourse.julialang.org/u/StefanKarpinski)
#### Post date: [September 27, 2020, 4:00am UTC](https://discourse.julialang.org/t/juliapro1-5-0-could-not-download-https-pkg-juliahub-com-registries/44811/11 "2020-09-27T04:00:02Z")

</div>

That’s an entirely different server, so it shouldn’t have any effect. The [us-east.pkg.julialang.org](http://us-east.pkg.julialang.org) server is a Julia community server and doesn’t require authentication.

---

<div class="post-metadata">

### Author: ![qsong](https://avatars.discourse-cdn.com/v4/letter/q/d07c76/32.png) [@qsong](https://discourse.julialang.org/u/qsong)
#### Post date: [September 27, 2020, 2:41pm UTC](https://discourse.julialang.org/t/juliapro1-5-0-could-not-download-https-pkg-juliahub-com-registries/44811/12 "2020-09-27T14:41:37Z")

</div>

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

```julia
(@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

```

---

<div class="post-metadata">

### Author: ![StefanKarpinski](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stefankarpinski/32/24_2.png) [@StefanKarpinski](https://discourse.julialang.org/u/StefanKarpinski)
#### Post date: [September 27, 2020, 3:07pm UTC](https://discourse.julialang.org/t/juliapro1-5-0-could-not-download-https-pkg-juliahub-com-registries/44811/13 "2020-09-27T15:07:28Z")

</div>

The file is required because JuliaPro uses an authenticated package server, [pkg.juliahub.com](http://pkg.juliahub.com) (maintained by Julia Computing, like JuliaPro itself). This server supports integration with [https://JuliaHub.com](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](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.

---

<div class="post-metadata">

### Author: ![qsong](https://avatars.discourse-cdn.com/v4/letter/q/d07c76/32.png) [@qsong](https://discourse.julialang.org/u/qsong)
#### Post date: [September 27, 2020, 3:37pm UTC](https://discourse.julialang.org/t/juliapro1-5-0-could-not-download-https-pkg-juliahub-com-registries/44811/14 "2020-09-27T15:37:24Z")

</div>

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](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`)?

---

<div class="post-metadata">

### Author: ![StefanKarpinski](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stefankarpinski/32/24_2.png) [@StefanKarpinski](https://discourse.julialang.org/u/StefanKarpinski)
#### Post date: [September 27, 2020, 3:57pm UTC](https://discourse.julialang.org/t/juliapro1-5-0-could-not-download-https-pkg-juliahub-com-registries/44811/15 "2020-09-27T15:57:38Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![qsong](https://avatars.discourse-cdn.com/v4/letter/q/d07c76/32.png) [@qsong](https://discourse.julialang.org/u/qsong)
#### Post date: [September 28, 2020, 12:24am UTC](https://discourse.julialang.org/t/juliapro1-5-0-could-not-download-https-pkg-juliahub-com-registries/44811/16 "2020-09-28T00:24:20Z")

</div>

Thanks! My case closed.

---

<div class="post-metadata">

### Author: ![StefanKarpinski](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stefankarpinski/32/24_2.png) [@StefanKarpinski](https://discourse.julialang.org/u/StefanKarpinski)
#### Post date: [September 28, 2020, 4:08pm UTC](https://discourse.julialang.org/t/juliapro1-5-0-could-not-download-https-pkg-juliahub-com-registries/44811/17 "2020-09-28T16:08:55Z")

</div>

I hadn’t initially noticed this but this is not attempting to connect to [pkg.juliahub.com](http://pkg.juliahub.com) but rather [pkg.julialang.org](http://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…

---

<div class="post-metadata">

### Author: ![samuel\_okon](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/samuel_okon/32/10285_2.png) [@samuel\_okon](https://discourse.julialang.org/u/samuel_okon)
#### Post date: [October 12, 2020, 11:20pm UTC](https://discourse.julialang.org/t/juliapro1-5-0-could-not-download-https-pkg-juliahub-com-registries/44811/18 "2020-10-12T23:20:18Z")

</div>

i’m also experiencing this issue

---

<div class="post-metadata">

### Author: ![woolstar](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/woolstar/32/19992_2.png) [@woolstar](https://discourse.julialang.org/u/woolstar)
#### Post date: [December 27, 2020, 10:40pm UTC](https://discourse.julialang.org/t/juliapro1-5-0-could-not-download-https-pkg-juliahub-com-registries/44811/19 "2020-12-27T22:40:32Z")

</div>

Ran into same problem (from FL), switching to us-west got around it.

---

<div class="post-metadata">

### Author: ![jasonhnicholson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jasonhnicholson/32/20554_2.png) [@jasonhnicholson](https://discourse.julialang.org/u/jasonhnicholson)
#### Post date: [December 28, 2020, 1:48am UTC](https://discourse.julialang.org/t/juliapro1-5-0-could-not-download-https-pkg-juliahub-com-registries/44811/20 "2020-12-28T01:48:46Z")

</div>

@woolstar I am having this same problem today.

```julia
┌ 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.

[Next page](https://discourse.julialang.org/t/juliapro1-5-0-could-not-download-https-pkg-juliahub-com-registries/44811.md?page=2)
