From owner-freebsd-python@freebsd.org Mon Apr 20 16:55:31 2020 Return-Path: Delivered-To: freebsd-python@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 4EEAA2C7A8E for ; Mon, 20 Apr 2020 16:55:31 +0000 (UTC) (envelope-from dbaio@FreeBSD.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 495XrM1TWTz4fxB for ; Mon, 20 Apr 2020 16:55:31 +0000 (UTC) (envelope-from dbaio@FreeBSD.org) Received: by mailman.nyi.freebsd.org (Postfix) id 310672C7A8D; Mon, 20 Apr 2020 16:55:31 +0000 (UTC) Delivered-To: python@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 30D042C7A8C for ; Mon, 20 Apr 2020 16:55:31 +0000 (UTC) (envelope-from dbaio@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) 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 495XrM0TBmz4fx9; Mon, 20 Apr 2020 16:55:31 +0000 (UTC) (envelope-from dbaio@FreeBSD.org) Received: from t480.local (189.26.169.127.dynamic.adsl.gvt.net.br [189.26.169.127]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: dbaio/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 64159AC8D; Mon, 20 Apr 2020 16:55:30 +0000 (UTC) (envelope-from dbaio@FreeBSD.org) Date: Mon, 20 Apr 2020 13:55:26 -0300 From: "Danilo G. Baio" To: paul beard Cc: python@freebsd.org Subject: Re: certbot/plugin fails after update Message-ID: <20200420165526.5tng4nmt6y4b4lnd@t480.local> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="g73ci5d3y7i3y3dp" Content-Disposition: inline In-Reply-To: X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Apr 2020 16:55:31 -0000 --g73ci5d3y7i3y3dp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Apr 20, 2020 at 07:42:46AM -0700, paul beard wrote: > This seems to be a recurring issue each time certbox and its nginx plugin > are updated. the workaround/solution is to reinstall them manually. >=20 > for i in py-certbot py-certbot-nginx; do cd /usr/ports/security/$i; make > > deinstall reinstall clean; done >=20 > and then certbot runs fine, either by hand or on the cron. >=20 >=20 > Saving debug log to /var/log/letsencrypt/letsencrypt.log >=20 > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -= - > - - > Processing /usr/local/etc/letsencrypt/renewal/cloud.paulbeard.org.conf > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -= - > - - > Cert is due for renewal, auto-renewing... > Non-interactive renewal: random delay of 364.04025994456254 seconds > Could not choose appropriate plugin: The nginx plugin is not working; the= re > may be problems with your existing configuration. > The error was: NoInstallationError("Could not find a usable 'nginx' binar= y. > Ensure nginx exists, the binary is executable, and your PATH is set > correctly.") Hi Paul. I'm sorry to hear that. Do you use another LOCALBASE/PREFIX, instead of /usr/local ? This is the customizations I can see that maybe can explain that. post-patch: @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \ ${WRKSRC}/certbot/compat/misc.py \ ${WRKSRC}/tests/cli_test.py @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/certbot_nginx/_= internal/configurator.py And do you use the official FreeBSD packages ? --=20 Danilo G. Baio (dbaio) --g73ci5d3y7i3y3dp Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAABCgB9FiEEORj0UTsjzCy+enIkmpN7LfMuiNcFAl6d0/pfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDM5 MThGNDUxM0IyM0NDMkNCRTdBNzIyNDlBOTM3QjJERjMyRTg4RDcACgkQmpN7LfMu iNe6FQ/+P5dmDq14Hfl6jn42/I//h7BQIZVHhmDEwPA7qXguef2qUySw1BX20Fsz DM+xY+5WjpvScRS/41pMvtRD8b/BcA+7hIuw3TErasfpXjPp7PGZJyhC8sk+/1Aj fF9rUZrmzP8KkxpuSpqlR6RYiSl1yCFLH48G6drCVn3W2eJ/5rJUhkQa3nLSXeqM IghMjyjlrs0FCsAgwuxb2x2+0RYwwT4XZ41/pXVuiJAdDL/ixAT93GbLcDPYnAJE G4M7C3vxJuEXBzRm7Ml3HtIH/2LjGgX2tDzSlUy+WHK00cggqM3DPCpOHNH4rNHd hlrj7sCx4NTI84aH/w+h7CYHpO477ZTsnxsslfMVPHBtN/ppQ4VvD14zlPSCs1J3 PypUEQubsfmldZFVKMe5A1Vm+5YuaTSyHSy9IatCtm5nrjxDFmwKRPBTHIYYjPb+ FbUj6Z5eVxGFSKQrFNUYmRkR/fwb12uH4dxoezbUrWfElwdQjS+Myn0Ah3d0B6/7 3N4nP9JgpVQAiN9X2s9HSkyQuUwthct4nkrC9qZCJWtItr9WBvWauqwA87ckn1Gx FgXCvt3eNqSq3HvCVbVgDx0Et5tiNbRSgTMM1TiWuSNpk5bcSrpNgsuRk/ywV2f7 mv1WtGHVTymlxtAI7wmv6CSyRczbF71wej069oINC7U58afn4ig= =PKXn -----END PGP SIGNATURE----- --g73ci5d3y7i3y3dp--