From owner-freebsd-questions@freebsd.org Fri Nov 8 18:16:47 2019 Return-Path: Delivered-To: freebsd-questions@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 F3E7715A3C0 for ; Fri, 8 Nov 2019 18:16:46 +0000 (UTC) (envelope-from dave.mehler@gmail.com) Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 478pPn6qW5z3DT8 for ; Fri, 8 Nov 2019 18:16:45 +0000 (UTC) (envelope-from dave.mehler@gmail.com) Received: by mail-wm1-x342.google.com with SMTP id q130so7190234wme.2 for ; Fri, 08 Nov 2019 10:16:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=/fKrrnW+ex2YoX5/zKdZKFQK4miEP1eip6u/ARs9q0M=; b=UXvsvSSK1uimVO8xs+vZsP1JjK3dvO/tVco4+8db/W9ZasJVuehZ5YEVnWvIdV24j7 WCyrH3WttKtRfykjOZHr9iDlEANWmfIB83sfjmivs8b7OOlCCVoq+1cRDPDmAtFIjnJz upQBBueT5nRLgYp62p01r8Y945QLRx9N1kUg4wbHaaeFkjtoMHekiVnE5DDizQ63Qc+3 oqRG/gCV1u/9ocPCx8V5V742k+NZb5C/H+X4eYwQoSEh0z3iAWCV8ZnyPhDEElFlLwYk +rRX7QngqmvR+cDRldSrixyRBRpnNAIlecxFZx6ZwWVSKIOcx4N3AZvnLrzXzooM2e8s OFIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=/fKrrnW+ex2YoX5/zKdZKFQK4miEP1eip6u/ARs9q0M=; b=P338Pgs8SDiY9A0EePemwn5rQGTXIU+ubGs8qaibET5d0Tu8YGpjqW7VC2UfehLUPl FseB8sVXXUNoI0qoZANMt+XddOVjKlrHQyPLtnPcL8R4WI0BeZwKvfurcox5nCaaAzYS In9w1bgKFmtzZ2c5YvWYxtBwldwUZWiDgZ34hVpX246cd+LdA1EFfKI7KlIWrumfjeWL dcCIUReX/VQ/8WoRxy3tx4oeKyWgtgPkWi+cmQ3ukwoqATzkGHDrn5zvBNY/Xbkel2aj e69BCjWeDs6NvVs149kat5p8M7oCu7yzcLjuzCGKseykP6xhE9g998Tez/SH1VRxqzKa bgJg== X-Gm-Message-State: APjAAAWYNjtrt5QndmKUai28+UkPKgYeX9muMBXxBH8K77Ud5gz9nd14 tfQjdAdOePDU1QhcS9/9Fq+HANevBLGksP/UipEqBcAE X-Google-Smtp-Source: APXvYqwVQLaM9wPDyxlQkiIIZFDe+an6Ujvi6P+ZFutHP+8nNaCoCmTH3yCTgq0Lw5fRd3J314B+xr/yW/nZu5o8JZQ= X-Received: by 2002:a7b:c95a:: with SMTP id i26mr9873981wml.41.1573237003324; Fri, 08 Nov 2019 10:16:43 -0800 (PST) MIME-Version: 1.0 Received: by 2002:a5d:4f90:0:0:0:0:0 with HTTP; Fri, 8 Nov 2019 10:16:42 -0800 (PST) From: David Mehler Date: Fri, 8 Nov 2019 13:16:42 -0500 Message-ID: Subject: git with apache, a push returns code 22 To: freebsd-questions Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 478pPn6qW5z3DT8 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=UXvsvSSK; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of davemehler@gmail.com designates 2a00:1450:4864:20::342 as permitted sender) smtp.mailfrom=davemehler@gmail.com X-Spamd-Result: default: False [-3.00 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_COUNT_TWO(0.00)[2]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE_FREEMAIL(0.00)[]; IP_SCORE(0.00)[ip: (2.77), ipnet: 2a00:1450::/32(-2.76), asn: 15169(-2.01), country: US(-0.05)]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[2.4.3.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Nov 2019 18:16:47 -0000 Hello, I'm trying to run git on FreeBSD with Apache 2.4 as the web server. My issue is I can pull/clone from the repo via remote: git clone https://git.example.com/myrepo.git This works fine. The issue comes when I atempt to push changes: git commit -m "commit message" git push origin master This gives me an error message of can nnott access url return code 22. The git and apache versions i'm using are: apache24-2.4.41 git-2.24.0 They are installed from FreeBSD ports. This previously was working, I'm wondering if an update has introduced a new/incompatible change. Here's my apache configuration: # The git.example.com http virtual host DocumentRoot /usr/local/www/git/repos ServerName git.example.com ServerAdmin webmaster@example.com ErrorLog /var/log/git-httpd-error.log CustomLog /var/log/git-httpd-access.log combined RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [QSA,L,R=301] # Completely deny pushing over HTTP Require all denied # The git.example.com https virtual host DocumentRoot /usr/local/www/git/repos ServerName git.example.com ServerAdmin webmaster@example.com ErrorLog /var/log/git-httpd-error.log CustomLog /var/log/git-httpd-access.log combined # Uncomment the below 2 lines when deploy http2 H2Direct on Protocols h2 h2c http/1.1 SSLEngine on SSLCertificateFile "/usr/local/etc/ssl/acme.sh/example.com/fullchain.crt" SSLCertificateKeyFile "/usr/local/etc/ssl/acme.sh/example.com/private/server-ec256.key" SSLCACertificateFile "/usr/local/etc/ssl/acme.sh/example.com/cacert.crt" # HSTS (mod_headers is required) (15768000 seconds = 6 months) Header always set Strict-Transport-Security "max-age=15768000" Options +ExecCGI SSLRequireSSL AllowOverride None AuthType Basic AuthName "Private Git Access" AuthUserFile "/usr/local/etc/apache24/git-auth-file" AuthGroupFile "/usr/local/etc/apache24/git-htgroup-file" Require valid-user Require group gitwrite ScriptAlias /git /usr/local/libexec/git-core/git-http-backend SetEnv GIT_PROJECT_ROOT /usr/local/www/git/repos SetEnv GIT_HTTP_EXPORT_ALL # For anonymous write #SetEnv REMOTE_USER anonymousweb Options +ExecCGI SSLRequireSSL AuthType Basic AuthName "Private Git Access" AuthUserFile "/usr/local/etc/apache24/git-auth-file" AuthGroupFile "/usr/local/etc/apache24/git-htgroup-file" Require valid-user Require group gitwrite # gitweb Alias /gitweb "/usr/local/www/gitweb" DirectoryIndex gitweb.cgi Options ExecCGI SSLRequireSSL AuthType Basic AuthName "Private Gitweb Access" AuthUserFile "/usr/local/etc/apache24/git-auth-file" Require valid-user SetHandler cgi-script SetEnv GITWEB_CONFIG /usr/local/etc/gitweb.conf git-auth-file: user:password git-htgroup-file: gitwrite: user I am not getting anything in the apache log files. Any ideas? Thanks. Dave.