From owner-freebsd-git@freebsd.org Fri Nov 13 09:33:24 2020 Return-Path: Delivered-To: freebsd-git@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 273CC2D43F8 for ; Fri, 13 Nov 2020 09:33:24 +0000 (UTC) (envelope-from lwhsu@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CXYDh0cmkz3QTq for ; Fri, 13 Nov 2020 09:33:24 +0000 (UTC) (envelope-from lwhsu@freebsd.org) Received: from mail-yb1-f169.google.com (mail-yb1-f169.google.com [209.85.219.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) (Authenticated sender: lwhsu/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 044AC2E776 for ; Fri, 13 Nov 2020 09:33:24 +0000 (UTC) (envelope-from lwhsu@freebsd.org) Received: by mail-yb1-f169.google.com with SMTP id g15so8112149ybq.6 for ; Fri, 13 Nov 2020 01:33:24 -0800 (PST) X-Gm-Message-State: AOAM533NWewOFeb1QmMQL+QlYUm8uRX9B/pRsD5aLruLGSHG/DMRFRl6 g+hyo+rnQ/ZTWUOwXk6/ST2V5VYaRB09pLmbUIQ= X-Google-Smtp-Source: ABdhPJyw6dv93cwoFrJua8F2TXOr2GqNeK7Uo5GE8jqA14LWMkn6ReYXnVwBq1yqKNmXMCNs8W9RnveW5MXB7FoNVGA= X-Received: by 2002:a25:209:: with SMTP id 9mr2101275ybc.127.1605260003585; Fri, 13 Nov 2020 01:33:23 -0800 (PST) MIME-Version: 1.0 References: <20201112155659.GQ913@mail> <20201113.032709.2108746957258946268.yasu@utahime.org> In-Reply-To: <20201113.032709.2108746957258946268.yasu@utahime.org> From: Li-Wen Hsu Date: Fri, 13 Nov 2020 17:33:12 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: 504 errors from cgit-beta To: Yasuhiro KIMURA Cc: freebsd-git@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-git@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Discussion of git use in the FreeBSD project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Nov 2020 09:33:24 -0000 On Fri, Nov 13, 2020 at 2:28 AM Yasuhiro KIMURA wrote: > > From: Dav=C3=AD=C3=B0 Steinn Geirsson > 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/por= ts.git: > > > > ``` > > $ git fetch cgit-beta > > error: RPC failed; HTTP 504 curl 22 The requested URL returned error: 5= 04 > > 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