Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Git-mirror on Gentoo.org: error: RPC failed; HTTP 504
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Perfect Gentleman
Veteran
Veteran


Joined: 18 May 2014
Posts: 1249

PostPosted: Fri Sep 11, 2020 5:48 am    Post subject: Git-mirror on Gentoo.org: error: RPC failed; HTTP 504 Reply with quote

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
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3664

PostPosted: Fri Sep 11, 2020 6:32 am    Post subject: Re: Git-mirror on Gentoo.org: error: RPC failed; HTTP 504 Reply with quote

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
View user's profile Send private message
Etal
Veteran
Veteran


Joined: 15 Jul 2005
Posts: 1931

PostPosted: Fri Sep 11, 2020 9:50 pm    Post subject: Reply with quote

I don't think that would help with a network issue (HTTP 504 - Gateway Timeout)
Back to top
View user's profile Send private message
Perfect Gentleman
Veteran
Veteran


Joined: 18 May 2014
Posts: 1249

PostPosted: Wed Sep 30, 2020 4:47 am    Post subject: Re: Git-mirror on Gentoo.org: error: RPC failed; HTTP 504 Reply with quote

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
View user's profile Send private message
Etal
Veteran
Veteran


Joined: 15 Jul 2005
Posts: 1931

PostPosted: Tue Sep 14, 2021 9:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum