Updating extremly slow today

Updating my packages is extremely slow today. My internet connection is fine, no proxy. I am on Linux. Any idea how to debug this?

It would be nice if the package manager could print some more debug information, for example to which server it is connected…

   Installed FastBroadcast ───── v0.1.8
   Installed ChainRulesCore ──── v0.9.45
   Installed StrideArraysCore ── v0.1.11
   Installed VectorizationBase ─ v0.20.13
   Installed LoopVectorization ─ v0.12.27
  Downloaded artifact: Cairo
  Downloaded artifact: Cairo
  Downloaded artifact: FriBidi
  Downloaded artifact: FriBidi
  Downloaded artifact: x264
  Downloaded artifact: x264
  Downloaded artifact: libvorbis
  Downloaded artifact: libvorbis
  Downloaded artifact: Glib
  Downloaded artifact: Glib
  Downloaded artifact: libfdk_aac
  Downloaded artifact: libfdk_aac
 Downloading artifact: Gettext
    Downloading [>                 

Also strange: Each artifact appears twice…

1 Like

Yes, I had to do export JULIA_PKG_SERVER="" otherwise updates hangs on Resolving package versions...

It is also on Linux without any proxies.

If you are in Europe, the fact that https://status.julialang.org/ says

eu-central.pkg.julialang.org       Major outage 

probably has a lot to do with the problems.

3 Likes

Is there a way to manually choose a different package server?

Set the environment variable JULIA_PKG_SERVER to an empty string to bypass the package servers and get everything from git and direct artifact download, or to some specific server listed on the status page to connect to a farther away package server. You can e.g. do this from within Julia with ENV["JULIA_PKG_SERVER"] = ... to have it apply only to that session.

Addendum: If you disable the package server you may need to remove and add back the General registry (which will convert it to a git backed registry) to get any registry updates.

Alternatively set it so a different Pkg Server, e.g.

export JULIA_PKG_SERVER=us-east.pkg.julialang.org

in the shell, or

ENV["JULIA_PKG_SERVER"] = "us-east.pkg.julialang.org"

from within Julia.

3 Likes

This worked for me. Thank you!