504 errors from cgit-beta

Li-Wen Hsu lwhsu at freebsd.org
Fri Nov 13 09:33:24 UTC 2020


On Fri, Nov 13, 2020 at 2:28 AM Yasuhiro KIMURA <yasu at utahime.org> wrote:
>
> From: Davíð Steinn Geirsson <david at isnic.is>
> Subject: 504 errors from cgit-beta
> Date: Thu, 12 Nov 2020 15:56:59 +0000
>
> > We are getting frequent 504 errors when running `git fetch` against an
> > existing checkout of `ports.git` from https://cgit-beta.freebsd.org/ports.git:
> >
> > ```
> > $ git fetch cgit-beta
> > error: RPC failed; HTTP 504 curl 22 The requested URL returned error: 504
> > fatal: the remote end hung up unexpectedly
> > ```
>
> I experienced same error when accessing Emacs git remository with
> HTTPS. Following is bug report that I submitted to report the issue.
>
> https://savannah.nongnu.org/support/?110322
>
> As you can see, site administrator fixed the issue by icreasing
> `fastcgi_read_timeout` and `proxy_read_timeout` parameters of
> nginx. Since cgit-beta also uses nginx this may also fix your
> error. In my case, however, access always failed and never
> succeeded. So cause may be different from the one of my case.

Thanks, I have checked this, indeed some requests' handlers don't have
a long enough timeout setting and I've relaxed them.  Hope this solves
some people's issues. Please check it again, and if it still fails for
you, we might need to have more information to debug.

Li-Wen


More information about the freebsd-git mailing list