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

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

               _
   _       _ _(_)_     |  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

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

β€œfailed to get server certificate”

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

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 -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)

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

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>
              _
   _       _ _(_)_     |  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>

              _
   _       _ _(_)_     |  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>

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

1 Like
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

after updating in REPL

OK!!!

This happened to me briefly in Julia 1.8:

β”Œ 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?

Network issues; possibly server issues.

3 posts were split to a new topic: Pkg: unable to connect to sa.pkg.julialang.org