Clone git.openwrt.org slow

I've noticed for a while now, from the US, cloning "git.openwrt.org/openwrt/openwrt.git" has been very slow. Sometimes the connection will die and other times it will crawl at 200kbps or less.

I've tried from various locations in the US and the same result. I've also tried from European locations and it is a little better, but not by much.

I'm not sure what is causing the slow down, but wanted everyone to be aware.

That seems to be peering related, from two locations (residential VDSL2 and data centre) in Germany I'm getting the maximum of my line speed:

$ time ( LANG= git clone https://git.openwrt.org/openwrt/openwrt.git/ )
Cloning into 'openwrt'...
remote: Enumerating objects: 473368, done.
remote: Counting objects: 100% (473368/473368), done.
remote: Compressing objects: 100% (129145/129145), done.
remote: Total 473368 (delta 327677), reused 468385 (delta 324197)
Receiving objects: 100% (473368/473368), 147.39 MiB | 15.12 MiB/s, done.
Resolving deltas: 100% (327677/327677), done.

real    0m27,094s
user    0m29,249s
sys     0m4,872s

GitHub works fine otherwise...

A little different story here in the States. This download attempt completely failed.

davidc502@Ryzen-3900x:~/Desktop$ time ( LANG= git clone https://git.openwrt.org/openwrt/openwrt.git/ )
Cloning into 'openwrt'...
remote: Enumerating objects: 473368, done.
remote: Counting objects: 100% (473368/473368), done.
remote: Compressing objects: 100% (129145/129145), done.
error: RPC failed; curl 56 GnuTLS recv error (-9): A TLS packet with unexpected length was received.
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

real	7m19.203s
user	0m0.001s
sys	0m0.011s

@diizzy

Yeah, a little bit different story when cloning into GitHub. I guess I can just do it that way. Thanks

davidc502@Ryzen-3900x:~/Desktop$ time ( git clone https://github.com/lede-project/source.git openwrt1 )
Cloning into 'openwrt1'...
remote: Enumerating objects: 159, done.
remote: Counting objects: 100% (159/159), done.
remote: Compressing objects: 100% (127/127), done.
remote: Total 473414 (delta 61), reused 82 (delta 27), pack-reused 473255
Receiving objects: 100% (473414/473414), 167.04 MiB | 46.70 MiB/s, done.
Resolving deltas: 100% (321955/321955), done.

real	0m7.018s
user	0m9.856s
sys	0m1.054s

Please use the "proper" url instead
https://github.com/openwrt/openwrt --> https://github.com/openwrt/openwrt.git
You can also use git:// instead of https

1 Like

@diizzy
sha256sums show the 2 repositories are different. However, diff didn't find a difference.
Interesting

Same/similar to what I was experiencing

Are your downloads of the package sources also slow?

Same issue... This has been going on for some time. I haven't said anything because these things usually clear up over time. However, this issue has been progressively getting worse.

https://github.com/diizzyy/openwrt/commit/c05817a6dbb23dc67fa5df37794ac1ea5dc1953e ? :slight_smile:

From
https://openwrt.org/docs/guide-developer/build-system/install-buildsystem

git clone https://git.openwrt.org/openwrt/openwrt.git

Pls, update wiki, if appropriate.