# Error: Some registries failed to update

**URL:** https://discourse.julialang.org/t/error-some-registries-failed-to-update/114192
**Category:** General Usage
**Tags:** error
**Created:** [May 13, 2024, 8:20am UTC](https://discourse.julialang.org/t/error-some-registries-failed-to-update/114192 "2024-05-13T08:20:18Z")
**Posts on this page:** 16
**Page:** 1

<div class="post-metadata">

### Author: ![WuSiren](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wusiren/32/42529_2.png) [@WuSiren](https://discourse.julialang.org/u/WuSiren)
#### Post date: [May 13, 2024, 8:20am UTC](https://discourse.julialang.org/t/error-some-registries-failed-to-update/114192/1 "2024-05-13T08:20:18Z")

</div>

Help! Why?

```julia
┌ Error: Some registries failed to update:
│ — C:\Users\name\.julia\registries\General.toml — failed to download from https://pkg.julialang.org/registry/23338594-aafe-5451-b93e-139f81909106/e8d546e7403e5b6c65432c458789731899ca255e. Exception: RequestError: HTTP/1.1 301 Moved Permanently (Recv failure: Connection was reset) while requesting https://pkg.julialang.org/registry/23338594-aafe-5451-b93e-139f81909106/e8d546e7403e5b6c65432c458789731899ca255e
└ @ Pkg.Registry D:\Software\julia-1.10.3\share\julia\stdlib\v1.10\Pkg\src\Registry\Registry.jl:510

```

---

<div class="post-metadata">

### Author: ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)
#### Post date: [May 13, 2024, 8:39am UTC](https://discourse.julialang.org/t/error-some-registries-failed-to-update/114192/2 "2024-05-13T08:39:50Z")

</div>

Can you reach that URL from your browser? Can you post the output of `curl -LI https://pkg.julialang.org/registry/23338594-aafe-5451-b93e-139f81909106/e8d546e7403e5b6c65432c458789731899ca255e` (or something similar that works in your Windows terminal).

---

<div class="post-metadata">

### Author: ![WuSiren](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wusiren/32/42529_2.png) [@WuSiren](https://discourse.julialang.org/u/WuSiren)
#### Post date: [May 13, 2024, 8:42am UTC](https://discourse.julialang.org/t/error-some-registries-failed-to-update/114192/3 "2024-05-13T08:42:02Z")

</div>

Yes I can.

```julia
$ curl -LI https://pkg.julialang.org/registry/23338594-aafe-5451-b93e-139f81909106/e8d546e7403e5b6c65432c458789731899ca255e
HTTP/2 301
server: Varnish
retry-after: 0
location: https://kr.pkg.julialang.org/registry/23338594-aafe-5451-b93e-139f81909106/e8d546e7403e5b6c65432c458789731899ca255e
x-geo-continent: AS
x-geo-country: CN
x-geo-region: HA
accept-ranges: bytes
date: Mon, 13 May 2024 08:40:54 GMT
via: 1.1 varnish
x-served-by: cache-tyo11940-TYO
x-cache: HIT
x-cache-hits: 0
x-timer: S1715589655.757640,VS0,VE1
content-length: 0

HTTP/2 301
server: nginx/1.25.4
date: Mon, 13 May 2024 08:40:55 GMT
content-type: text/html
content-length: 169
location: https://storage.julialang.net/registry/23338594-aafe-5451-b93e-139f81909106/e8d546e7403e5b6c65432c458789731899ca255e.tar.gz

curl: (35) OpenSSL SSL_connect: Connection was reset in connection to storage.julialang.net:443

```

---

<div class="post-metadata">

### Author: ![WuSiren](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wusiren/32/42529_2.png) [@WuSiren](https://discourse.julialang.org/u/WuSiren)
#### Post date: [May 13, 2024, 8:43am UTC](https://discourse.julialang.org/t/error-some-registries-failed-to-update/114192/4 "2024-05-13T08:43:42Z")

</div>

I have installed a new Julia version (v1.10.3, from v1.9.0) without deleting the original `C:\Users\name\.julia` folder. Is this the reason?

---

<div class="post-metadata">

### Author: ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)
#### Post date: [May 13, 2024, 8:48am UTC](https://discourse.julialang.org/t/error-some-registries-failed-to-update/114192/5 "2024-05-13T08:48:15Z")

</div>

No, that should not matter. Can you reach the last redirect URL there ([https://storage.julialang.net/registry/23338594-aafe-5451-b93e-139f81909106/e8d546e7403e5b6c65432c458789731899ca255e.tar.gz](https://storage.julialang.net/registry/23338594-aafe-5451-b93e-139f81909106/e8d546e7403e5b6c65432c458789731899ca255e.tar.gz)) in the browser?

---

<div class="post-metadata">

### Author: ![WuSiren](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wusiren/32/42529_2.png) [@WuSiren](https://discourse.julialang.org/u/WuSiren)
#### Post date: [May 13, 2024, 8:54am UTC](https://discourse.julialang.org/t/error-some-registries-failed-to-update/114192/6 "2024-05-13T08:54:18Z")

</div>

Yes, I can.

---

<div class="post-metadata">

### Author: ![xgdgsc](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/xgdgsc/32/608_2.png) [@xgdgsc](https://discourse.julialang.org/u/xgdgsc)
#### Post date: [May 13, 2024, 9:11am UTC](https://discourse.julialang.org/t/error-some-registries-failed-to-update/114192/7 "2024-05-13T09:11:21Z")

</div>

[语言基础/环境配置 - Roadmap (juliacn.com)](https://learn.juliacn.com/docs/basic/setup_environment.html)

---

<div class="post-metadata">

### Author: ![WuSiren](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wusiren/32/42529_2.png) [@WuSiren](https://discourse.julialang.org/u/WuSiren)
#### Post date: [May 13, 2024, 2:08pm UTC](https://discourse.julialang.org/t/error-some-registries-failed-to-update/114192/8 "2024-05-13T14:08:08Z")

</div>

It was fine at least until I upgraded the Julia version (not sure if it worked properly after the upgrade), and I wonder what the underlying factors were causing the problem.

---

<div class="post-metadata">

### Author: ![WuSiren](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wusiren/32/42529_2.png) [@WuSiren](https://discourse.julialang.org/u/WuSiren)
#### Post date: [May 13, 2024, 2:45pm UTC](https://discourse.julialang.org/t/error-some-registries-failed-to-update/114192/9 "2024-05-13T14:45:56Z")

</div>

It still doesn’t work well even when I retry after deleting the `.julia` folder.

---

<div class="post-metadata">

### Author: ![WuSiren](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wusiren/32/42529_2.png) [@WuSiren](https://discourse.julialang.org/u/WuSiren)
#### Post date: [May 13, 2024, 3:35pm UTC](https://discourse.julialang.org/t/error-some-registries-failed-to-update/114192/10 "2024-05-13T15:35:25Z")

</div>

Thanks, but I’m sorry that I still don’t quite understand what the problem is.

---

<div class="post-metadata">

### Author: ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)
#### Post date: [May 13, 2024, 4:06pm UTC](https://discourse.julialang.org/t/error-some-registries-failed-to-update/114192/11 "2024-05-13T16:06:45Z")

</div>

> [@WuSiren](#):
>
> It was fine at least until I upgraded the Julia version

Depending on when you updated Julia, this might be a red herring because the server was also updated recently, see [Changes to PkgServers storage backend - #4 by fredrikekre](https://discourse.julialang.org/t/changes-to-pkgservers-storage-backend/112378/4) for some more information.

It looks like you can not connect to `https://storage.julialang.net`. Perhaps you are behind a firewall and/or proxy of some sort that don’t allow it.

> [@WuSiren](#):
>
> deleting the `.julia` folder.

This is (almost) never a solution and you should never use this “tool” so lightly since you may have data in there that will be lost.

---

<div class="post-metadata">

### Author: ![WuSiren](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wusiren/32/42529_2.png) [@WuSiren](https://discourse.julialang.org/u/WuSiren)
#### Post date: [May 13, 2024, 4:23pm UTC](https://discourse.julialang.org/t/error-some-registries-failed-to-update/114192/12 "2024-05-13T16:23:04Z")

</div>

> [@fredrikekre](#):
>
> Depending on when you updated Julia

The date I downloaded Julia v1.10.3 is 2024/5/10. The last modification date of the `.julia\registries\General.tar.gz` and `General.toml` are both 2024/5/11. I’m sure everything went well at least before 2024/5/10.

> [@fredrikekre](#):
>
> It looks like you can not connect to `https://storage.julialang.net`. Perhaps you are behind a firewall and/or proxy of some sort that don’t allow it.

But I can connect to the URL from the browser when my proxy is turned on. Is it reasonable?

> [@fredrikekre](#):
>
> This is (almost) never a solution and you should never use this “tool” so lightly since you may have data in there that will be lost.

Thanks for your kind reminder! I just changed the name of the folder `.julia` temporarily for a test. 🤝 🤝

---

<div class="post-metadata">

### Author: ![xgdgsc](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/xgdgsc/32/608_2.png) [@xgdgsc](https://discourse.julialang.org/u/xgdgsc)
#### Post date: [May 14, 2024, 1:28am UTC](https://discourse.julialang.org/t/error-some-registries-failed-to-update/114192/13 "2024-05-14T01:28:52Z")

</div>

Changing JULIA\_PKG\_SERVER , does the error become different?

---

<div class="post-metadata">

### Author: ![WuSiren](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wusiren/32/42529_2.png) [@WuSiren](https://discourse.julialang.org/u/WuSiren)
#### Post date: [May 14, 2024, 3:12am UTC](https://discourse.julialang.org/t/error-some-registries-failed-to-update/114192/14 "2024-05-14T03:12:05Z")

</div>

Although it’s still unclear why the original URL suddenly lost connection, your solution has brought me an unprecedented experience in using Julia. I can’t thank you any more!

Now I’m just wondering if the mirror site can keep up with the updates of the packages? Is it synchronized with the official Julia website, or is there a delay?

---

<div class="post-metadata">

### Author: ![xgdgsc](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/xgdgsc/32/608_2.png) [@xgdgsc](https://discourse.julialang.org/u/xgdgsc)
#### Post date: [May 14, 2024, 3:59am UTC](https://discourse.julialang.org/t/error-some-registries-failed-to-update/114192/15 "2024-05-14T03:59:58Z")

</div>

Usually the delay is within 1 day like you can view on the [Mirrors (nju.edu.cn)](https://mirror.nju.edu.cn/) page.

---

<div class="post-metadata">

### Author: ![WuSiren](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wusiren/32/42529_2.png) [@WuSiren](https://discourse.julialang.org/u/WuSiren)
#### Post date: [May 14, 2024, 4:03am UTC](https://discourse.julialang.org/t/error-some-registries-failed-to-update/114192/16 "2024-05-14T04:03:26Z")

</div>

Thanks!!!
