Clone git.openwrt.org slow

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.

Bump: Is it too much asked for, to update the docs in case of (serious) changes ?
BTW, it has the advantage of less questions here on the forum.

May be, I am a too oldfashioned prgrammer. As almost half a century ago, it was good practice for us, to keep the docs up-to-date.

Yeah, good old days back then :wink:

Today, as a rule of thumb for open source: If you want something done, do it yourself.

Regarding the wiki: It's a wiki (ORLY?:slight_smile: ), you can correct mistakes yourself.

Not to start a general, new topic about coding standards, I might first check, whether such open source practice, resulting in non-deterministic software, is already covered in an article in ACMs (Association of Computing Machinery) "Risk to the Public".
As documentation of software functionality by a user, instead from the author, is seriously at risk being wrong or incomplete.
Which is in strong contrast to the "security" fans around.

2 Likes

Which serious changes? The git.openwrt.org domain is still the canonical git clone url.

but often works terribly slow. github.com/openwrt/openwrt.git much faster.

Which is besides the point of your message claiming that there is undocumented serious changes to the git cloning process.

Then what does this mean ?

I guess it means that @diizzy personally prefers to use the Github source mirror.

Which means, it is a good idea, to update the wiki like
"The official link https://github.com/openwrt/openwrt quite often is very slow, or does not work at all. So you might use the Github source mirror instead, https://github.com/openwrt/openwrt.git" .

No, it menas that GitHub advertises .git as "proper" repo url and that the OpenWrt repo should be used over lede-project.
https://help.github.com/en/articles/which-remote-url-should-i-use

The wiki already advertises the Github mirror.