Error in Julia v1.11 when updating Registry or packages

Problem

I installed Julia with juliaup in Windows, and I am currently on v1.11 beta. When I try to run ] update the following appears:

(@v1.11) pkg> update
┌ Warning: could not download https://pkg.julialang.org/registries
│   exception = RequestError: Failure when receiving data from the peer while requesting https://pkg.julialang.org/registries
└ @ Pkg.Registry C:\Users\fcpv\.julia\juliaup\julia-1.11.0-beta1+0.x64.w64.mingw32\share\julia\stdlib\v1.11\Pkg\src\Registry\Registry.jl:75
    Updating registry at `C:\Users\fcpv\.julia\registries\General.toml`
  No Changes to `C:\Users\fcpv\.julia\environments\v1.11\Project.toml`
  No Changes to `C:\Users\fcpv\.julia\environments\v1.11\Manifest.toml`

Plus, it takes a bit longer than my v1.10 instance (maybe 1 second or so) in launching and also in entering Pkg REPL mode.

Current Julia version

julia> versioninfo()
Julia Version 1.11.0-beta1
Commit 08e1fc0abb (2024-04-10 08:40 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: 8 × Intel(R) Core(TM) i7-10610U CPU @ 1.80GHz
  WORD_SIZE: 64
  LLVM: libLLVM-16.0.6 (ORCJIT, skylake)
Threads: 1 default, 0 interactive, 1 GC (on 8 virtual cores)

The first issue could be a temporary network issue or perhaps your firewall is blocking something.

This is somewhat expected.

Details here:

I am using my home’s WiFi, but this is happening in a corporate laptop. Any way to check this?

Sorry to ping again, it is really making it difficult for me to work in my corporate laptop. Pinging Stefan because I think he did some rework facing v1.11 regarding Pkg server infrastructure.

@mkitti
@StefanKarpinski

Seems likely that your company laptop is setup to use some kind of firewall that’s blocking access to pkg.julialang.org and/or storage.julialang.net. That wouldn’t have changed in 1.11, however. I would talk to your sysadmins and get them to help you.

Is there any way to check at which point is the process failing? That might help them debug it.

Thanks for the help!

Usually a good starting point is to try

curl -L https://pkg.julialang.org/registries
1 Like

This happens:

fcpv@ltfcpv MINGW64 ~
$ curl -L https://pkg.julialang.org/registries
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (35) schannel: next InitializeSecurityContext failed: CRYPT_E_NO_REVOCATION_CHECK (0x80092012) - The revocation function was unable to check revocation for the certificate.

Have you contacted your corporate IT regarding accessing pkg.julialang.org, particularly storage.julialang.net?

A bit of a follow-up.

In my corporate machine I have both Windows and WSL installed. Both error in v1.11rc3 but none of them in v1.10.5, but the error in WSL is a bit more concrete (or maybe just different).

WSL

fcpv@ltfcpv:~$ julia +1.11
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.11.0-rc3 (2024-08-26)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

(@v1.11) pkg> up
┌ Warning: could not download https://pkg.julialang.org/registries
│   exception = RequestError: Cert verify failed: BADCERT_NOT_TRUSTED while requesting https://pkg.julialang.org/registries
└ @ Pkg.Registry ~/.julia/juliaup/julia-1.11.0-rc3+0.x64.linux.gnu/share/julia/stdlib/v1.11/Pkg/src/Registry/Registry.jl:77
    Updating registry at `~/.julia/registries/General.toml`
  No Changes to `~/.julia/environments/v1.11/Project.toml`
  No Changes to `~/.julia/environments/v1.11/Manifest.toml`

Windows

PS C:\Users\fcpv> julia +1.11
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.11.0-rc3 (2024-08-26)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

(@v1.11) pkg> up
┌ Warning: could not download https://pkg.julialang.org/registries
│   exception = RequestError: Failure when receiving data from the peer while requesting https://pkg.julialang.org/registries
└ @ Pkg.Registry C:\Users\fcpv\.julia\juliaup\julia-1.11.0-rc3+0.x64.w64.mingw32\share\julia\stdlib\v1.11\Pkg\src\Registry\Registry.jl:77
    Updating registry at `C:\Users\fcpv\.julia\registries\General.toml`
  No Changes to `C:\Users\fcpv\.julia\environments\v1.11\Project.toml`
  No Changes to `C:\Users\fcpv\.julia\environments\v1.11\Manifest.toml`

The curl that @GunnarFarneback suggested is successful in WSL and
Powershell:
WSL:

fcpv@ltfcpv:~$ curl -L https://pkg.julialang.org/registries
/registry/23338594-aafe-5451-b93e-139f81909106/16827a1f6b7be6e740a7f0fd6949d072b882926b

Powershell

PS C:\Users\fcpv> Invoke-WebRequest -Uri https://pkg.julialang.org/registries


StatusCode        : 200
StatusDescription : OK
Content           : {47, 114, 101, 103...}
RawContent        : HTTP/1.1 200 OK
                    Connection: keep-alive
                    X-lb-strategy: pkgservers_roundrobin
                    Accept-Ranges: bytes
                    Content-Length: 88
                    Content-Type: application/octet-stream
                    Date: Fri, 30 Aug 2024 07:08:43 GMT
                    ET...
Headers           : {[Connection, keep-alive], [X-lb-strategy, pkgservers_roundrobin], [Accept-Ranges, bytes], [Content-Length,
                    88]...}
RawContentLength  : 88

I can even access on Chrome to the page that https://pkg.julialang.org/registries redirects to, and it forwards me directly to the EU server.

Any help?