View previous topic :: View next topic |
Author |
Message |
Perfect Gentleman Veteran
Joined: 18 May 2014 Posts: 1249
|
Posted: Fri Sep 11, 2020 5:48 am Post subject: Git-mirror on Gentoo.org: error: RPC failed; HTTP 504 |
|
|
Code: | ~ $ sudo emaint sync -r gentoo
>>> Syncing repository 'gentoo' into '/usr/portage'...
/usr/bin/git fetch origin
error: RPC failed; HTTP 504 curl 22 The requested URL returned error: 504
fatal: the remote end hung up unexpectedly
!!! git fetch error in /usr/portage
Action: sync for repo: gentoo, returned code = 128 |
Code: | ~ $ cat /etc/portage/repos.conf/gentoo
[DEFAULT]
main-repo = gentoo
eclass-overrides = mozilla gentoo qt kde pg_overlay
force = eclass-overrides
[gentoo]
priority = 1
location = /usr/portage
sync-type = git
sync-uri = https://anongit.gentoo.org/git/repo/sync/gentoo.git
sync-git-clone-extra-opts = --single-branch --branch master
auto-sync = yes
|
As for now it can be cloned for the first time, bit further synchronization fails. Before today everything was alright. |
|
Back to top |
|
|
charles17 Advocate
Joined: 02 Mar 2008 Posts: 3664
|
Posted: Fri Sep 11, 2020 6:32 am Post subject: Re: Git-mirror on Gentoo.org: error: RPC failed; HTTP 504 |
|
|
Perfect Gentleman wrote: | Code: | ~ $ cat /etc/portage/repos.conf/gentoo
[DEFAULT]
main-repo = gentoo
eclass-overrides = mozilla gentoo qt kde pg_overlay
force = eclass-overrides
[gentoo]
priority = 1
location = /usr/portage
sync-type = git
sync-uri = https://anongit.gentoo.org/git/repo/sync/gentoo.git
sync-git-clone-extra-opts = --single-branch --branch master
auto-sync = yes
|
|
What is the purpose of all those lines there??
Why not remove that /etc/portage/repos.conf/gentoo file and start with what eselect repository enable gentoo will add?
Then check your output of portageq repos_config / |
|
Back to top |
|
|
Etal Veteran
Joined: 15 Jul 2005 Posts: 1931
|
Posted: Fri Sep 11, 2020 9:50 pm Post subject: |
|
|
I don't think that would help with a network issue (HTTP 504 - Gateway Timeout) |
|
Back to top |
|
|
Perfect Gentleman Veteran
Joined: 18 May 2014 Posts: 1249
|
Posted: Wed Sep 30, 2020 4:47 am Post subject: Re: Git-mirror on Gentoo.org: error: RPC failed; HTTP 504 |
|
|
charles17 wrote: |
What is the purpose of all those lines there??
Why not remove that /etc/portage/repos.conf/gentoo file and start with what eselect repository enable gentoo will add?
Then check your output of portageq repos_config / |
I prefer manual interventions. |
|
Back to top |
|
|
Etal Veteran
Joined: 15 Jul 2005 Posts: 1931
|
Posted: Tue Sep 14, 2021 9:24 pm Post subject: |
|
|
Now I ran into this issue after re-downloading the repo one one of my machines. I could reproduce it with:
Code: | $ git clone --depth=1 https://anongit.gentoo.org/git/repo/sync/gentoo.git
$ cd gentoo
$ # wait some time until there are new commits
$ git fetch origin
error: RPC failed; HTTP 504 curl 22 The requested URL returned error: 504
fatal: the remote end hung up unexpectedly |
I found another thread where someone suggested it has to do with clone depth. Setting "clone-depth = 10" and re-cloning seems to have fixed it for me. At least for now.
Another suggestion was to use the github mirror. |
|
Back to top |
|
|
|