From owner-freebsd-ports@freebsd.org Mon Mar 29 18:26:34 2021 Return-Path: Delivered-To: freebsd-ports@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 B20A857F92D for ; Mon, 29 Mar 2021 18:26:34 +0000 (UTC) (envelope-from ohartmann@walstatt.org) Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4F8Ld54f2sz4W5Q for ; Mon, 29 Mar 2021 18:26:33 +0000 (UTC) (envelope-from ohartmann@walstatt.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1617042392; bh=O6s3B+vd3rcj6M3oZ8+tzilIAdwxezlB7jqPcp5C7hE=; h=X-UI-Sender-Class:Date:From:Cc:Subject:In-Reply-To:References; b=edJN6lc9c/PzE+LDQjiJoVgO0UIS4azwn026B3F8JtZJsN22FMh0Lf9VkBCHSqRwB as6VOX5nVUB94FeKetPa1z5t6+vHks22p1z6mG9SgmQPQkveTt59IbfSnvlyi2RFtX VhxEj+x5/KgW8Q5upF91CR9Vd7zLaoPyNZzDncUE= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from hermann.fritz.box ([77.191.13.80]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MFbRm-1lPIyH3iJC-00H7dL for ; Mon, 29 Mar 2021 20:26:31 +0200 Date: Mon, 29 Mar 2021 20:26:24 +0200 From: "Hartmann, O." Cc: FreeBSD Ports Subject: Re: devel/git: Git via Apache 2.4 HTTPS - info/refs not valid: could not determine hash algorithm Message-ID: <20210329202624.6b4d809c@hermann.fritz.box> In-Reply-To: <20210329114228.69fae81b@bsd64.grem.de> References: <20210328130819.01a1d7e6@hermann.fritz.box> <20210329114228.69fae81b@bsd64.grem.de> Organization: walstatt.org MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/MpnIYh_IW8nlGvnMvbvS72p"; protocol="application/pgp-signature"; micalg=pgp-sha256 X-Provags-ID: V03:K1:7UrhcNIJBZVY1lv8kEBINXIA6D8cV0xNZSNJDAADcTsLCF9QHJ8 jL+uy0KrnXFhOoNyVtlrIGbSccnDgrn0e01Q7qGfGTHMemBbsd4HihYybaAF1dQDsIC0uc9 UsrOR5HayaVSWeUkkben3FKjO1L+A6rp6W8irruemKlucITGrN8/1XFXpsyMhFy3WNZpAkK RQJBnAOk47lxL1dtaoOnA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:MZF8yENJBF0=:88lsf+Ta2hwxc34OExlSbZ /CO5rUJ3eooT7Ag6sSBQV6x0Num3Z+V50tKh1+bOLzK2GjUF4c9CnxykhXmWIeUaCyLBADToH pHxVo/cJMF0n0OaFbqp2fXUTyM7IjY/a188q1wy0Mojp2lySILYy/WGKTh+OmcSDGV1Gwy5GF usv/OPFVEQaLWVcp5AxOcH6NwE5GTBV8pjyyW45s8x5lGOlzeW29oIIuLX+vDZyhs43CZvT4+ +acc8LWvpkQU8mDHEA41huIha7+0M3XVBgHHrSNie9ieAfc36i0+VDd9qdX4Glw3/23q+nsFy K1At/Tjy+EwmfXZC++RBgdk095CNIhS68eQJ7X4VvDlbR7v29njXHYapAD36B1FA3YHrapQzB GVwjOCYhxHRWzDabFqZ0RY6HqdBCA0N4b4EXJtA3ONyIoGoqHGYav3s74D9UPNwF//faACvr+ 0GELGUzBEQTrKxGza2xVoAtU3nIPj4IjCliROeeiNQACsImixho3H6Q9dGnFPKcn5k8RJt5sZ KzGZ8goBaB53sxXQhaS7f3N6PpeNL7gJ+4W/0fAxK5uYHiNwIU0RtQ/FV5Q9/iLhQMdciyv3Z 9OCQUaUl3b5vE4y37aH5BFdi89q8GXbL/A0mK0ET9ZYgUVVb3zb7lWkW+xWebC4IpW6Hj+sto zIq8sI+vJUy+P2PlSOJFOvY05eFTBbeRHATVn8/MIJtK4aFukQ55t8DTiLLVxouyP9SeuvT9X DKsF1WimJH36M1FxcBObJnyQ+2d34fu0Zpsokv5EyhQ20lhKaX2kHH0+GcvTAUQNF67TLOZEW XAu5DFUot1HCX9ECNTa5daBWrx95nqIJcGlT4j9dEyCM2TiywJII87XGV4LIv3MVA5ttUFeZR eaPLGYFbZQm+TQHpryzv7HB18WTnXA56+aYh660312Rad2RETrNBunLpGOGSSWXOO4nrbX38p +uL5YggzV0WCGJANYdASLOLSpqLx1RxdWZ0nhVMLASGbyZKf5TPZjnJSA3pwgkJllCmELuYZx 8yjPLuBSS8lVDfVNgYRk1mrGTRLoGekXVLcBbQ263hqqoXJCxuUXA7x4vhBbF7CSjGkdv+xwm 5p+7IA+/Pj7Uc8HU2FeCCq2VXHrtdwuOjywTXDGQVNGycz37zdehKfBU70bRT6uL1JDBX99DG 5RFgtHA7wN/I4LWTaHaO6RZz7Yex92S55OHEzzDNjqAo+Jg2xgJspyZwjEiG1OF+adOSoUu+B xjMgqId+A71wWRNE2 X-Rspamd-Queue-Id: 4F8Ld54f2sz4W5Q X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmx.net header.s=badeba3b8450 header.b=edJN6lc9; dmarc=none; spf=none (mx1.freebsd.org: domain of ohartmann@walstatt.org has no SPF policy when checking 212.227.17.21) smtp.mailfrom=ohartmann@walstatt.org X-Spamd-Result: default: False [-1.50 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_ORG_HEADER(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmx.net:+]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MISSING_TO(2.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[77.191.13.80:received]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RBL_DBL_DONT_QUERY_IPS(0.00)[212.227.17.21:from]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE]; RCVD_IN_DNSWL_LOW(-0.10)[212.227.17.21:from]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmx.net:s=badeba3b8450]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-ports@freebsd.org]; DMARC_NA(0.00)[walstatt.org]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[212.227.17.21:from:127.0.2.255]; R_SPF_NA(0.00)[no SPF record]; RWL_MAILSPIKE_POSSIBLE(0.00)[212.227.17.21:from]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-ports] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Mar 2021 18:26:34 -0000 --Sig_/MpnIYh_IW8nlGvnMvbvS72p Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Mon, 29 Mar 2021 11:42:28 +0200 Michael Gmelin wrote: > On Sun, 28 Mar 2021 13:08:19 +0200 > "Hartmann, O." wrote: >=20 > > What am I missing here? > > =20 >=20 > The man page of git-http-backend has an apache2 example[0]. > Also, the top answer to this stackoverflow question might give you a > hint: https://stackoverflow.coo-set-up-git-over-http >=20 > Best, > Michael >=20 > [0]https://www.freebsd.org/cgi/man.cgi?query=3Dgit-http-backend&apropos= =3D0&sektion=3D0&manpath=3DFreeBSD+12.2-RELEASE+and+Ports&arch=3Ddefault&fo= rmat=3Dhtml >=20 >=20 Hello Michael, thanks for responding. The first tip I came across was the Stackoverflow HowTo - whatever I did an= d do, it doesn't work. I also tried the several variants shown in [0], starting with= the simplest towards more complex ones. Following strictly the reference at=20 https://stackoverflow.com/questions/26734933/how-to-set-up-git-over-http with minor local adaptions (for FreeBSD and the Git base folder), even with= anonymous access allowed the failure is the same as with some Basic authentication vi= a LDAP. As decribed in my initial email: first access with a "git push -u origin ma= ster" is logged by Apache with 401, requesting credentials. If provided, the line (httpd-access.log): xx.xx.xx.xx - USERNAME [29/Mar/2021:17:44:55 +0000] "GET \ /git/test.git/info/refs?service=3Dgit-upload-pack HTTP/1.1" 200 1689032 "-"= "git/2.31.0" \ 323 1691601 status code 200 indicates OK - so authetication is all right and I should p= roceed, but I get on the client fatal: https://[url]/git/test.git/info/refs not valid: could not determine hash algorithm; is this a git repository? On both sides, I had disabled sslVerify (due to self signed cert issue with= git, another pitfall) and according to stackoverflow howto, hooks are also prepared and = the root folder and its subsequent folders /pool/gitbase (PROJECT_ROOT) is owned by = www:www and has ACL 0775 set. And this is why it gets desperate to me ... Kind regards, O. Hartmann --Sig_/MpnIYh_IW8nlGvnMvbvS72p Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iHUEARYIAB0WIQSy8IBxAPDkqVBaTJ44N1ZZPba5RwUCYGIb0AAKCRA4N1ZZPba5 RzgQAP9kiIqHl9pzzxG9nqG6tRqr3NDq+IJb2HtV8JyRBvjKZQEAjNEo+VNe7d/G q9z91sR7nBu243V/jPQWbqopw8kGggk= =D6tD -----END PGP SIGNATURE----- --Sig_/MpnIYh_IW8nlGvnMvbvS72p--