# Pkg: Some registries failed to update: and Operation too slow

**URL:** https://discourse.julialang.org/t/pkg-some-registries-failed-to-update-and-operation-too-slow/127363
**Category:** Package Management
**Tags:** libcurl, download
**Created:** [March 25, 2025, 5:53pm UTC](https://discourse.julialang.org/t/pkg-some-registries-failed-to-update-and-operation-too-slow/127363 "2025-03-25T17:53:04Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![devel-chm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/devel-chm/32/3572_2.png) [@devel-chm](https://discourse.julialang.org/u/devel-chm)
#### Post date: [March 25, 2025, 5:53pm UTC](https://discourse.julialang.org/t/pkg-some-registries-failed-to-update-and-operation-too-slow/127363/1 "2025-03-25T17:53:04Z")

</div>

I was trying to update my packages in the REPL and was having the  
download of the General registry fail with an error that the data rate  
was too slow (less than 1 byte per 20 seconds).

Here is a session in the pkg mode of the REPL:

> (jl\_Axl0Ij) pkg\> activate --temp  
> Activating new project at `C:\Users\XX\AppData\Local\Temp\1\jl_h92qjY`  
> (jl\_h92qjY) pkg\> registry up General  
> Updating registry at `C:\Software\dot_julia\registries\General.toml`  
> ┌ Error: Some registries failed to update:  
> │ — C:\Software\dot\_julia\registries\General.toml — failed to download from [https://pkg.julialang.org/registry/23338594-aafe-5451-b93e-139f81909106/1eb18d8d6cf6d1e3068e400c7f57345f3e8ca46a](https://pkg.julialang.org/registry/23338594-aafe-5451-b93e-139f81909106/1eb18d8d6cf6d1e3068e400c7f57345f3e8ca46a). Exception: RequestError: HTTP/1.1 302 Moved Temporarily (Operation too slow. Less than 1 bytes/sec transferred the last 20 seconds) while requesting [https://pkg.julialang.org/registry/23338594-aafe-5451-b93e-139f81909106/1eb18d8d6cf6d1e3068e400c7f57345f3e8ca46a](https://pkg.julialang.org/registry/23338594-aafe-5451-b93e-139f81909106/1eb18d8d6cf6d1e3068e400c7f57345f3e8ca46a)  
> └ @ Pkg.Registry C:\Software\julia\julia-1.10.9\share\julia\stdlib\v1.10\Pkg\src\Registry\Registry.jl:528

I was able to find the following in the discourse forum that indicate that the origin  
of the failure is happening in `LibCURL` called from `Downloads`:

[https://discourse.julialang.org/t/downloads-download-error-operation-too-slow-less-than-1-bytes-sec-transferred/80027](https://discourse.julialang.org/t/downloads-download-error-operation-too-slow-less-than-1-bytes-sec-transferred/80027)

[https://discourse.julialang.org/t/unable-to-automatically-download-install-artifact-ghostscript-from-sources-listed-in-julia-artifects-toml/98901](https://discourse.julialang.org/t/unable-to-automatically-download-install-artifact-ghostscript-from-sources-listed-in-julia-artifects-toml/98901)

and

[https://discourse.julialang.org/t/julia-artifact-download-problem-how-to-tell-julia-to-follow-301-redirected-downloads/82003](https://discourse.julialang.org/t/julia-artifact-download-problem-how-to-tell-julia-to-follow-301-redirected-downloads/82003)

Following the answer in the last post, I ran the following code in the REPL before  
switching to pkg mode (the code has been updated and tested with julia 1.10.9:

```julia
using Downloads, Downloads.Curl
Downloads.EASY_HOOK[] = (easy, info) -> begin
    # Disable LibCURL's low speed timeout
    Curl.setopt(easy, Curl.CURLOPT_LOW_SPEED_TIME, 0)
end

```

I hope this is helpful to someone. -chm
