From owner-freebsd-python@freebsd.org Sun Apr 8 16:56:33 2018 Return-Path: Delivered-To: freebsd-python@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6E041F903BC for ; Sun, 8 Apr 2018 16:56:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 044DB7A89F for ; Sun, 8 Apr 2018 16:56:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id B82ABF903B8; Sun, 8 Apr 2018 16:56:32 +0000 (UTC) Delivered-To: python@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 962C0F903B7 for ; Sun, 8 Apr 2018 16:56:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0B4EB7A87C for ; Sun, 8 Apr 2018 16:56:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 54D491A6CF for ; Sun, 8 Apr 2018 16:56:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w38GuVf7055348 for ; Sun, 8 Apr 2018 16:56:31 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w38GuVvg055347 for python@FreeBSD.org; Sun, 8 Apr 2018 16:56:31 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: python@FreeBSD.org Subject: [Bug 227289] security/py-certbot-nginx: Wrong nginx configuration path set Date: Sun, 08 Apr 2018 16:56:31 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: fbsdbugzilla@csj.no X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: python@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Apr 2018 16:56:33 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227289 --- Comment #1 from Christer --- Followup; seems I was a bit too fast on the "renewals work" trigger. Automa= tic renewal didn't work when ran from cron. Certbot threw an error (domain name obfuscated for privacy): --- Attempting to renew cert (sub.domain.net) from /usr/local/etc/letsencrypt/renewal/sub.domain.net.conf produced an unexpect= ed error: The nginx plugin is not working; there may be problems with your existing configuration. The error was: NoInstallationError(). Skipping. All renewal attempts failed. The following certs could not be renewed: /usr/local/etc/letsencrypt/live/sub.domain.net/fullchain.pem (failure) 1 renew failure(s), 0 parse failure(s) --- Deleting the port and reinstalling it, and also recreating the symlink from /usr/local/etc/nginx to /etc/nginx restores expected working behavior: ---------------------------------------------------------------------------= ---- Processing /usr/local/etc/letsencrypt/renewal/sub.domain.net.conf ---------------------------------------------------------------------------= ---- Cert is due for renewal, auto-renewing... Plugins selected: Authenticator nginx, Installer nginx Renewing an existing certificate Performing the following challenges: tls-sni-01 challenge for sub.domain.net Waiting for verification... Cleaning up challenges ---------------------------------------------------------------------------= ---- new certificate deployed with reload of nginx server; fullchain is /usr/local/etc/letsencrypt/live/sub.domain.net/fullchain.pem ---------------------------------------------------------------------------= ---- So apparently there's more to this than "just" changing the path in constants.py and recompiling the .py into .pyc/.pyo files. --=20 You are receiving this mail because: You are the assignee for the bug.=