# Clone git.openwrt.org slow

**URL:** <https://forum.openwrt.org/t/clone-git-openwrt-org-slow/42054>\
**Category:** Site Feedback and Other Questions\
**Created:** [August 4, 2019, 7:06pm UTC](https://forum.openwrt.org/t/clone-git-openwrt-org-slow/42054 "2019-08-04T19:06:07Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![davidc502](https://forum.openwrt.org/user_avatar/forum.openwrt.org/davidc502/32/6551_2.png) [@davidc502](https://forum.openwrt.org/u/davidc502)\
**Post date:** [August 4, 2019, 7:06pm UTC](https://forum.openwrt.org/t/clone-git-openwrt-org-slow/42054/1 "2019-08-04T19:06:07Z")

</div>

I've noticed for a while now, from the US, cloning "[git.openwrt.org/openwrt/openwrt.git](http://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.

---

<div class="post-metadata">

**Author:** ![slh](https://forum.openwrt.org/user_avatar/forum.openwrt.org/slh/32/113591_2.png) [@slh](https://forum.openwrt.org/u/slh)\
**Post date:** [August 4, 2019, 7:44pm UTC](https://forum.openwrt.org/t/clone-git-openwrt-org-slow/42054/2 "2019-08-04T19:44:49Z")

</div>

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

```

---

<div class="post-metadata">

**Author:** ![diizzy](https://forum.openwrt.org/letter_avatar/diizzy/32/5_5575768a8748004e209b776fc1b2916d.png) [@diizzy](https://forum.openwrt.org/u/diizzy)\
**Post date:** [August 4, 2019, 8:08pm UTC](https://forum.openwrt.org/t/clone-git-openwrt-org-slow/42054/3 "2019-08-04T20:08:08Z")

</div>

GitHub works fine otherwise...

---

<div class="post-metadata">

**Author:** ![davidc502](https://forum.openwrt.org/user_avatar/forum.openwrt.org/davidc502/32/6551_2.png) [@davidc502](https://forum.openwrt.org/u/davidc502)\
**Post date:** [August 4, 2019, 8:21pm UTC](https://forum.openwrt.org/t/clone-git-openwrt-org-slow/42054/4 "2019-08-04T20:21:24Z")

</div>

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
```

---

<div class="post-metadata">

**Author:** ![davidc502](https://forum.openwrt.org/user_avatar/forum.openwrt.org/davidc502/32/6551_2.png) [@davidc502](https://forum.openwrt.org/u/davidc502)\
**Post date:** [August 4, 2019, 8:56pm UTC](https://forum.openwrt.org/t/clone-git-openwrt-org-slow/42054/5 "2019-08-04T20:56:57Z")

</div>

@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
```

---

<div class="post-metadata">

**Author:** ![diizzy](https://forum.openwrt.org/letter_avatar/diizzy/32/5_5575768a8748004e209b776fc1b2916d.png) [@diizzy](https://forum.openwrt.org/u/diizzy)\
**Post date:** [August 4, 2019, 8:59pm UTC](https://forum.openwrt.org/t/clone-git-openwrt-org-slow/42054/6 "2019-08-04T20:59:38Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![davidc502](https://forum.openwrt.org/user_avatar/forum.openwrt.org/davidc502/32/6551_2.png) [@davidc502](https://forum.openwrt.org/u/davidc502)\
**Post date:** [August 4, 2019, 9:18pm UTC](https://forum.openwrt.org/t/clone-git-openwrt-org-slow/42054/7 "2019-08-04T21:18:40Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![lantis1008](https://forum.openwrt.org/user_avatar/forum.openwrt.org/lantis1008/32/1986_2.png) [@lantis1008](https://forum.openwrt.org/u/lantis1008)\
**Post date:** [August 4, 2019, 10:08pm UTC](https://forum.openwrt.org/t/clone-git-openwrt-org-slow/42054/8 "2019-08-04T22:08:35Z")

</div>

Same/similar to what I was experiencing

> [@Timeouts and Retries from downloads.openwrt for sources](https://forum.openwrt.org/t/timeouts-and-retries-from-downloads-openwrt-for-sources/40206):
>
> Lately i've been getting lots of timeouts and retries like: curl: (18) transfer closed with 46504538 bytes remaining to read This is when attempting to download linux-4.14.131.tar.xz from [https://downloads.openwrt.org/sources/linux-4.14.131.tar.xz](https://downloads.openwrt.org/sources/linux-4.14.131.tar.xz) using the build process. It happens with other packages as well, although they usually are sufficiently small that they manage to crawl through the pipe to completion. Am i alone in this or has anyone else seen it? Geographically in Australia if i…

Are your downloads of the package sources also slow?

---

<div class="post-metadata">

**Author:** ![davidc502](https://forum.openwrt.org/user_avatar/forum.openwrt.org/davidc502/32/6551_2.png) [@davidc502](https://forum.openwrt.org/u/davidc502)\
**Post date:** [August 4, 2019, 11:23pm UTC](https://forum.openwrt.org/t/clone-git-openwrt-org-slow/42054/9 "2019-08-04T23:23:53Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![diizzy](https://forum.openwrt.org/letter_avatar/diizzy/32/5_5575768a8748004e209b776fc1b2916d.png) [@diizzy](https://forum.openwrt.org/u/diizzy)\
**Post date:** [August 4, 2019, 11:26pm UTC](https://forum.openwrt.org/t/clone-git-openwrt-org-slow/42054/10 "2019-08-04T23:26:17Z")

</div>

[https://github.com/diizzyy/openwrt/commit/c05817a6dbb23dc67fa5df37794ac1ea5dc1953e](https://github.com/diizzyy/openwrt/commit/c05817a6dbb23dc67fa5df37794ac1ea5dc1953e) ? 🙂

---

<div class="post-metadata">

**Author:** ![reinerotto](https://forum.openwrt.org/letter_avatar/reinerotto/32/5_5575768a8748004e209b776fc1b2916d.png) [@reinerotto](https://forum.openwrt.org/u/reinerotto)\
**Post date:** [August 5, 2019, 5:10am UTC](https://forum.openwrt.org/t/clone-git-openwrt-org-slow/42054/11 "2019-08-05T05:10:04Z")

</div>

From  
[https://openwrt.org/docs/guide-developer/build-system/install-buildsystem](https://openwrt.org/docs/guide-developer/build-system/install-buildsystem)

git clone [https://git.openwrt.org/openwrt/openwrt.git](https://git.openwrt.org/openwrt/openwrt.git)

Pls, update wiki, if appropriate.

---

<div class="post-metadata">

**Author:** ![reinerotto](https://forum.openwrt.org/letter_avatar/reinerotto/32/5_5575768a8748004e209b776fc1b2916d.png) [@reinerotto](https://forum.openwrt.org/u/reinerotto)\
**Post date:** [September 1, 2019, 1:00pm UTC](https://forum.openwrt.org/t/clone-git-openwrt-org-slow/42054/12 "2019-09-01T13:00:46Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![tmomas](https://forum.openwrt.org/letter_avatar/tmomas/32/5_5575768a8748004e209b776fc1b2916d.png) [@tmomas](https://forum.openwrt.org/u/tmomas)\
**Post date:** [September 1, 2019, 4:42pm UTC](https://forum.openwrt.org/t/clone-git-openwrt-org-slow/42054/13 "2019-09-01T16:42:28Z")

</div>

> [@reinerotto](#):
>
> 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 😉

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?🙂 ), you can correct mistakes yourself.

---

<div class="post-metadata">

**Author:** ![reinerotto](https://forum.openwrt.org/letter_avatar/reinerotto/32/5_5575768a8748004e209b776fc1b2916d.png) [@reinerotto](https://forum.openwrt.org/u/reinerotto)\
**Post date:** [September 1, 2019, 6:01pm UTC](https://forum.openwrt.org/t/clone-git-openwrt-org-slow/42054/14 "2019-09-01T18:01:08Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![jow](https://forum.openwrt.org/user_avatar/forum.openwrt.org/jow/32/13_2.png) [@jow](https://forum.openwrt.org/u/jow)\
**Post date:** [September 2, 2019, 7:32am UTC](https://forum.openwrt.org/t/clone-git-openwrt-org-slow/42054/15 "2019-09-02T07:32:12Z")

</div>

> [@reinerotto](#):
>
> Bump: Is it too much asked for, to update the docs in case of (serious) changes ?

Which serious changes? The [git.openwrt.org](http://git.openwrt.org) domain is still the canonical git clone url.

---

<div class="post-metadata">

**Author:** ![reinerotto](https://forum.openwrt.org/letter_avatar/reinerotto/32/5_5575768a8748004e209b776fc1b2916d.png) [@reinerotto](https://forum.openwrt.org/u/reinerotto)\
**Post date:** [September 2, 2019, 1:49pm UTC](https://forum.openwrt.org/t/clone-git-openwrt-org-slow/42054/16 "2019-09-02T13:49:14Z")

</div>

but often works terribly slow. [github.com/openwrt/openwrt.git](http://github.com/openwrt/openwrt.git) much faster.

---

<div class="post-metadata">

**Author:** ![jow](https://forum.openwrt.org/user_avatar/forum.openwrt.org/jow/32/13_2.png) [@jow](https://forum.openwrt.org/u/jow)\
**Post date:** [September 2, 2019, 1:54pm UTC](https://forum.openwrt.org/t/clone-git-openwrt-org-slow/42054/17 "2019-09-02T13:54:35Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![reinerotto](https://forum.openwrt.org/letter_avatar/reinerotto/32/5_5575768a8748004e209b776fc1b2916d.png) [@reinerotto](https://forum.openwrt.org/u/reinerotto)\
**Post date:** [September 2, 2019, 2:11pm UTC](https://forum.openwrt.org/t/clone-git-openwrt-org-slow/42054/18 "2019-09-02T14:11:32Z")

</div>

> [@diizzy](#):
>
> Please use the "proper" url instead  
> [https://github.com/openwrt/openwrt](https://github.com/openwrt/openwrt) --\> [https://github.com/openwrt/openwrt.git](https://github.com/openwrt/openwrt.git)  
> You can also use git:// instead of https

Then what does this mean ?

---

<div class="post-metadata">

**Author:** ![jow](https://forum.openwrt.org/user_avatar/forum.openwrt.org/jow/32/13_2.png) [@jow](https://forum.openwrt.org/u/jow)\
**Post date:** [September 2, 2019, 2:43pm UTC](https://forum.openwrt.org/t/clone-git-openwrt-org-slow/42054/19 "2019-09-02T14:43:35Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![reinerotto](https://forum.openwrt.org/letter_avatar/reinerotto/32/5_5575768a8748004e209b776fc1b2916d.png) [@reinerotto](https://forum.openwrt.org/u/reinerotto)\
**Post date:** [September 2, 2019, 3:19pm UTC](https://forum.openwrt.org/t/clone-git-openwrt-org-slow/42054/20 "2019-09-02T15:19:48Z")

</div>

Which means, it is a good idea, to update the wiki like  
"The official link [https://github.com/openwrt/openwrt](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](https://github.com/openwrt/openwrt.git)" .

[Next page](https://forum.openwrt.org/t/clone-git-openwrt-org-slow/42054.md?page=2)
