# Warning: could not download https://pkg.julialang.org/registries julia 1.6.3

**URL:** <https://discourse.julialang.org/t/warning-could-not-download-https-pkg-julialang-org-registries-julia-1-6-3/69186>\
**Category:** General Usage\
**Tags:** package\
**Created:** [October 4, 2021, 11:58am UTC](https://discourse.julialang.org/t/warning-could-not-download-https-pkg-julialang-org-registries-julia-1-6-3/69186 "2021-10-04T11:58:01Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![HerAdri](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/heradri/32/5816_2.png) [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Post date:** [October 4, 2021, 11:58am UTC](https://discourse.julialang.org/t/warning-could-not-download-https-pkg-julialang-org-registries-julia-1-6-3/69186/1 "2021-10-04T11:58:01Z")

</div>

This alert began to appear 3 days ago !!! Previously, everything was running satisfactorily.

```julia
               _
   _ _ _(_)_ | Documentation: https://docs.julialang.org
  (_) | (_) (_) |
   _ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` | |
  | | |_| | | | (_| | | Version 1.6.3 (2021-09-23)
 _/ |\ __'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |

(@v1.6) pkg> up
  Installing known registries into `C:\Users\Hermesr\.julia`
┌ Warning: could not download https://pkg.julialang.org/registries
└ @ Pkg.Types C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Pkg\src\Types.jl:997
┌ Warning: could not download https://pkg.julialang.org/registries
└ @ Pkg.Types C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Pkg\src\Types.jl:997
     Cloning registry from "https://github.com/JuliaRegistries/General.git"
ERROR: failed to clone from https://github.com/JuliaRegistries/General.git, error: GitError(Code:ERROR, Class:OS, failed to get server certificate: The handle is in the wrong state for the requested operation
)

(@v1.6) pkg>

```

I already tried with:  
registry rm General  
and then  
registry add General  
and then up again.  
without results. always the same alert !!!

But from the VSCode console it was possible to add the registers.  
Only afterwards was it possible for me to perform the update from REPL

```julia
[ Info: Activating project in C:\projects\DifferentialEquations
  Activating environment at `C:\projects\DifferentialEquations\Project.toml`
(DifferentialEquations) pkg> up
  Installing known registries into `C:\Users\Hermesr\.julia`
     Cloning registry from "https://github.com/JuliaRegistries/General.git"
       Added registry `General` to `C:\Users\Hermesr\.julia\registries\General`
    Updating registry at `C:\Users\Hermesr\.julia\registries\General`
    Updating git-repo `https://github.com/JuliaRegistries/General.git`
  No Changes to `C:\projects\DifferentialEquations\Project.toml`
  No Changes to `C:\projects\DifferentialEquations\Manifest.toml`

```

---

<div class="post-metadata">

**Author:** ![ImreSamu](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/imresamu/32/20677_2.png) [@ImreSamu](https://discourse.julialang.org/u/ImreSamu)\
**Post date:** [October 4, 2021, 2:22pm UTC](https://discourse.julialang.org/t/warning-could-not-download-https-pkg-julialang-org-registries-julia-1-6-3/69186/2 "2021-10-04T14:22:49Z")

</div>

> “failed to get server certificate”

Maybe a windows issue ??? ; I have found a similar issue:

> <https://stackoverflow.com/questions/48985995/gitkraken-and-github-failed-to-get-server-certificate-the-handle-is-in-the-wr>

---

<div class="post-metadata">

**Author:** ![StevenSiew](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevensiew/32/218393_2.png) [@StevenSiew](https://discourse.julialang.org/u/StevenSiew)\
**Post date:** [October 4, 2021, 10:09pm UTC](https://discourse.julialang.org/t/warning-could-not-download-https-pkg-julialang-org-registries-julia-1-6-3/69186/3 "2021-10-04T22:09:51Z")

</div>

I am unable to update packages. I am trying to find out if the problem is with Julia or some internet routing problem. Can anyone help?

```julia
$ julia -O3
               _
   _ _ _(_)_ | Documentation: https://docs.julialang.org
  (_) | (_) (_) |
   _ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _ | |
  | | |_| | | | (_| | | Version 1.6.3 (2021-09-23)
 _/ |\ __'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |

(@v1.6) pkg> up
    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.6/Pkg/src/Types.jl:997
  No Changes to `~/.julia/environments/v1.6/Project.toml`
  No Changes to `~/.julia/environments/v1.6/Manifest.toml`

julia> import Downloads

julia> Downloads.download("https://pkg.julialang.org/registries",stdout)
ERROR: HTTP/1.1 301 Australian region -> AU internal redirect trigger (SSL certificate problem: Invalid certificate chain) while requesting https://pkg.julialang.org/registries
Stacktrace:
  [1] (::Downloads.var"#9#18"{Base.TTY, Base.DevNull, Nothing, Vector{Pair{String, String}}, Float64, Nothing, Bool, Bool, String, Int64, Bool, Bool})(easy::Downloads.Curl.Easy)
    @ Downloads /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.6/Downloads/src/Downloads.jl:369
  [2] with_handle(f::Downloads.var"#9#18"{Base.TTY, Base.DevNull, Nothing, Vector{Pair{String, String}}, Float64, Nothing, Bool, Bool, String, Int64, Bool, Bool}, handle::Downloads.Curl.Easy)

```

---

<div class="post-metadata">

**Author:** ![StevenSiew](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevensiew/32/218393_2.png) [@StevenSiew](https://discourse.julialang.org/u/StevenSiew)\
**Post date:** [October 4, 2021, 10:11pm UTC](https://discourse.julialang.org/t/warning-could-not-download-https-pkg-julialang-org-registries-julia-1-6-3/69186/4 "2021-10-04T22:11:05Z")

</div>

I thought I am going crazy but other people are having the same problems.

---

<div class="post-metadata">

**Author:** ![HerAdri](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/heradri/32/5816_2.png) [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Post date:** [October 6, 2021, 4:29am UTC](https://discourse.julialang.org/t/warning-could-not-download-https-pkg-julialang-org-registries-julia-1-6-3/69186/5 "2021-10-06T04:29:38Z")

</div>

![julia 1.6.3](https://global.discourse-cdn.com/julialang/original/3X/3/0/30c61ba6fb8f08e54746b6bbf1dd8dd2fb882d92.jpeg)

 ![julia 1.6.3 2](https://global.discourse-cdn.com/julialang/original/3X/7/a/7aa6a4ceedc8d5ed1b1df0987c6d582d0a80768e.jpeg)

---

<div class="post-metadata">

**Author:** ![HerAdri](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/heradri/32/5816_2.png) [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Post date:** [October 12, 2021, 4:06am UTC](https://discourse.julialang.org/t/warning-could-not-download-https-pkg-julialang-org-registries-julia-1-6-3/69186/6 "2021-10-12T04:06:25Z")

</div>

```julia
Documentation: https://docs.julialang.org
  (_) | (_) (_) |
   _ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` | |
  | | |_| | | | (_| | | Version 1.6.3 (2021-09-23)
 _/ |\ __'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |

(@v1.6) pkg> up
    Updating registry at `C:\Users\Hermesr\.julia\registries\General`
    Updating git-repo `https://github.com/JuliaRegistries/General.git`
┌ Warning: Some registries failed to update:
│ — C:\Users\Hermesr\.julia\registries\General — failed to fetch from repo
└ @ Pkg.Types C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Pkg\src\Types.jl:1246
    Updating git-repo `C:\Users\Hermesr\Documents\GitHub\CoolProp.jl`
     Cloning [14b8a8f1-9102-5b29-a752-f990bacb7fe1] PkgTemplates from https://github.com/invenia/PkgTemplates.jl.git
ERROR: failed to clone from https://github.com/invenia/PkgTemplates.jl.git, error: GitError(Code:ERROR, Class:OS, failed to get server certificate: The handle is in the wrong state for the requested operation
)

(@v1.6) pkg>

```

---

<div class="post-metadata">

**Author:** ![HerAdri](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/heradri/32/5816_2.png) [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Post date:** [October 12, 2021, 4:55am UTC](https://discourse.julialang.org/t/warning-could-not-download-https-pkg-julialang-org-registries-julia-1-6-3/69186/7 "2021-10-12T04:55:33Z")

</div>

```julia
              _
   _ _ _(_)_ | Documentation: https://docs.julialang.org
  (_) | (_) (_) |
   _ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` | |
  | | |_| | | | (_| | | Version 1.6.3 (2021-09-23)
 _/ |\ __'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |

(@v1.6) pkg> up
    Updating registry at `C:\Users\Hermesr\.julia\registries\General`
    Updating git-repo `https://github.com/JuliaRegistries/General.git`
┌ Warning: Some registries failed to update:
│ — C:\Users\Hermesr\.julia\registries\General — failed to fetch from repo
└ @ Pkg.Types C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Pkg\src\Types.jl:1246
    Updating git-repo `C:\Users\Hermesr\Documents\GitHub\CoolProp.jl`
     Cloning [efce3f68-66dc-5838-9240-27a6d6f5f9b6] WoodburyMatrices from https://github.com/timholy/WoodburyMatrices.jl.git
ERROR: failed to clone from https://github.com/timholy/WoodburyMatrices.jl.git, error: GitError(Code:ERROR, Class:OS, failed to get server certificate: The handle is in the wrong state for the requested operation
)

(@v1.6) pkg>

```

---

<div class="post-metadata">

**Author:** ![HerAdri](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/heradri/32/5816_2.png) [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Post date:** [October 15, 2021, 4:34am UTC](https://discourse.julialang.org/t/warning-could-not-download-https-pkg-julialang-org-registries-julia-1-6-3/69186/8 "2021-10-15T04:34:08Z")

</div>

![add Pkg Query](https://global.discourse-cdn.com/julialang/original/3X/0/b/0b18443bcc4f1da354ced969d93a2b1aeb565437.jpeg)

---

<div class="post-metadata">

**Author:** ![HerAdri](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/heradri/32/5816_2.png) [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Post date:** [October 18, 2021, 5:11am UTC](https://discourse.julialang.org/t/warning-could-not-download-https-pkg-julialang-org-registries-julia-1-6-3/69186/9 "2021-10-18T05:11:59Z")

</div>

```julia
              _
   _ _ _(_)_ | Documentation: https://docs.julialang.org
  (_) | (_) (_) |
   _ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` | |
  | | |_| | | | (_| | | Version 1.6.3 (2021-09-23)
 _/ |\ __'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |

(@v1.6) pkg> up
    Updating registry at `C:\Users\Hermesr\.julia\registries\General`
    Updating git-repo `https://github.com/JuliaRegistries/General.git`
┌ Warning: Some registries failed to update:
│ — C:\Users\Hermesr\.julia\registries\General — failed to fetch from repo
└ @ Pkg.Types C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Pkg\src\Types.jl:1246
    Updating git-repo `C:\Users\Hermesr\Documents\GitHub\CoolProp.jl`
     Cloning [f6369f11-7733-5829-9624-2563aa707210] ForwardDiff from https://github.com/JuliaDiff/ForwardDiff.jl.git
ERROR: failed to clone from https://github.com/JuliaDiff/ForwardDiff.jl.git, error: GitError(Code:ERROR, Class:OS, failed to get server certificate: The handle is in the wrong state for the requested operation
)

(@v1.6) pkg>

```

---

<div class="post-metadata">

**Author:** ![HerAdri](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/heradri/32/5816_2.png) [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Post date:** [October 18, 2021, 5:33am UTC](https://discourse.julialang.org/t/warning-could-not-download-https-pkg-julialang-org-registries-julia-1-6-3/69186/10 "2021-10-18T05:33:53Z")

</div>

![VsCode Julia update](https://global.discourse-cdn.com/julialang/original/3X/d/9/d92f7cef855e5df637731307c4e453163fe45c94.jpeg)

---

<div class="post-metadata">

**Author:** ![HerAdri](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/heradri/32/5816_2.png) [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Post date:** [November 4, 2021, 5:37am UTC](https://discourse.julialang.org/t/warning-could-not-download-https-pkg-julialang-org-registries-julia-1-6-3/69186/11 "2021-11-04T05:37:38Z")

</div>

```julia
Julia>import Pkg

Julia>Pkg.UPDATED_REGISTRY_THIS_SESSION[] = true
07:31:04->>true

(@v1.6) pkg> up
    Updating registry at `C:\Users\Hermesr\.julia\registries\General`
    Updating git-repo `https://github.com/JuliaRegistries/General.git`
    Updating git-repo `https://github.com/TakekazuKATO/TailRec.jl`
    Updating git-repo `C:\Users\Hermesr\Documents\GitHub\CoolProp.jl`
   Installed DiffRules ──────── v1.4.0
   Installed EllipsisNotation ─ v1.1.1
   Installed LaTeXStrings ───── v1.3.0
   Installed IterativeSolvers ─ v0.9.2
   Installed ImageMagick ────── v1.2.2
   Installed Roots ──────────── v1.3.6
   Installed MixedModels ────── v4.4.1
    Updating `C:\Users\Hermesr\.julia\environments\v1.6\Project.toml`
  [6218d12a] ↑ ImageMagick v1.2.1 ⇒ v1.2.2
  [b964fa9f] ↑ LaTeXStrings v1.2.1 ⇒ v1.3.0
  [f2b01f46] ↑ Roots v1.3.5 ⇒ v1.3.6
    Updating `C:\Users\Hermesr\.julia\environments\v1.6\Manifest.toml`
  [b552c78f] ↑ DiffRules v1.3.1 ⇒ v1.4.0
  [da5c29d0] ↑ EllipsisNotation v1.1.0 ⇒ v1.1.1
  [6218d12a] ↑ ImageMagick v1.2.1 ⇒ v1.2.2
  [42fd0dbc] ↑ IterativeSolvers v0.9.1 ⇒ v0.9.2
  [b964fa9f] ↑ LaTeXStrings v1.2.1 ⇒ v1.3.0
  [ff71e718] ↑ MixedModels v4.4.0 ⇒ v4.4.1
  [f2b01f46] ↑ Roots v1.3.5 ⇒ v1.3.6
  [c73af94c] ↓ ImageMagick_jll v6.9.12+0 ⇒ v6.9.10-12+3
Precompiling project...
  70 dependencies successfully precompiled in 265 seconds (428 already precompiled)

(@v1.6) pkg>

```

[Solution](https://discourse.julialang.org/t/it-takes-several-minutes-to-add-a-single-package/70704/40)

---

<div class="post-metadata">

**Author:** ![HerAdri](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/heradri/32/5816_2.png) [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Post date:** [November 4, 2021, 5:45am UTC](https://discourse.julialang.org/t/warning-could-not-download-https-pkg-julialang-org-registries-julia-1-6-3/69186/12 "2021-11-04T05:45:28Z")

</div>

```julia
Julia>import Pkg

Julia>Pkg.UPDATED_REGISTRY_THIS_SESSION[] = true
07:31:04->>true

(@v1.6) pkg> up
    Updating registry at `C:\Users\Hermesr\.julia\registries\General`
    Updating git-repo `https://github.com/JuliaRegistries/General.git`
    Updating git-repo `https://github.com/TakekazuKATO/TailRec.jl`
    Updating git-repo `C:\Users\Hermesr\Documents\GitHub\CoolProp.jl`
   Installed DiffRules ──────── v1.4.0
   Installed EllipsisNotation ─ v1.1.1
   Installed LaTeXStrings ───── v1.3.0
   Installed IterativeSolvers ─ v0.9.2
   Installed ImageMagick ────── v1.2.2
   Installed Roots ──────────── v1.3.6
   Installed MixedModels ────── v4.4.1
    Updating `C:\Users\Hermesr\.julia\environments\v1.6\Project.toml`
  [6218d12a] ↑ ImageMagick v1.2.1 ⇒ v1.2.2
  [b964fa9f] ↑ LaTeXStrings v1.2.1 ⇒ v1.3.0
  [f2b01f46] ↑ Roots v1.3.5 ⇒ v1.3.6
    Updating `C:\Users\Hermesr\.julia\environments\v1.6\Manifest.toml`
  [b552c78f] ↑ DiffRules v1.3.1 ⇒ v1.4.0
  [da5c29d0] ↑ EllipsisNotation v1.1.0 ⇒ v1.1.1
  [6218d12a] ↑ ImageMagick v1.2.1 ⇒ v1.2.2
  [42fd0dbc] ↑ IterativeSolvers v0.9.1 ⇒ v0.9.2
  [b964fa9f] ↑ LaTeXStrings v1.2.1 ⇒ v1.3.0
  [ff71e718] ↑ MixedModels v4.4.0 ⇒ v4.4.1
  [f2b01f46] ↑ Roots v1.3.5 ⇒ v1.3.6
  [c73af94c] ↓ ImageMagick_jll v6.9.12+0 ⇒ v6.9.10-12+3
Precompiling project...
  70 dependencies successfully precompiled in 265 seconds (428 already precompiled)

(@v1.6) pkg>

```

[Solution](https://discourse.julialang.org/t/it-takes-several-minutes-to-add-a-single-package/70704/40)

after updating in REPL

 ![after updating in REPL](https://global.discourse-cdn.com/julialang/original/3X/7/7/773f014be251a1eac371f984142516c9d6d326e7.jpeg)

OK!!!

---

<div class="post-metadata">

**Author:** ![Xavier\_Gonzalez](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/xavier_gonzalez/32/36033_2.png) [@Xavier\_Gonzalez](https://discourse.julialang.org/u/Xavier_Gonzalez)\
**Post date:** [September 22, 2022, 12:19pm UTC](https://discourse.julialang.org/t/warning-could-not-download-https-pkg-julialang-org-registries-julia-1-6-3/69186/13 "2022-09-22T12:19:29Z")

</div>

This happened to me briefly in Julia 1.8:

```julia
┌ Warning: could not download https://pkg.julialang.org/registries
│ exception = Could not resolve host: pkg.julialang.org while requesting https://pkg.julialang.org/registries
└ @ Pkg.Registry /Users/administrator/.julia/scratchspaces/a66863c6-20e8-4ff4-8a62-49f30b1f605e/agent-cache/default-macmini-aarch64-1.0/build/default-macmini-aarch64-1-0/julialang/julia-release-1-dot-8/usr/share/julia/stdlib/v1.8/Pkg/src/Registry/Registry.jl:68

```

But then it has since stopped happening without my doing anything.

What could have been the cause?

---

<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 22, 2022, 12:50pm UTC](https://discourse.julialang.org/t/warning-could-not-download-https-pkg-julialang-org-registries-julia-1-6-3/69186/14 "2022-09-22T12:50:16Z")

</div>

Network issues; possibly server issues.

---

<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:** [December 5, 2022, 8:55pm UTC](https://discourse.julialang.org/t/warning-could-not-download-https-pkg-julialang-org-registries-julia-1-6-3/69186/15 "2022-12-05T20:55:45Z")

</div>

3 posts were split to a new topic: [Pkg: unable to connect to sa.pkg.julialang.org](https://discourse.julialang.org/t/pkg-unable-to-connect-to-sa-pkg-julialang-org/91278)
