From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 0HXbEAHJwGGsuQAAgWs5BA (envelope-from ) for ; Mon, 20 Dec 2021 19:18:41 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 4CSKDAHJwGErXQAAB5/wlQ (envelope-from ) for ; Mon, 20 Dec 2021 18:18:41 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id EBB702A720 for ; Mon, 20 Dec 2021 19:18:40 +0100 (CET) Received: from localhost ([::1]:41814 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mzNF9-0008VL-WC for larch@yhetil.org; Mon, 20 Dec 2021 13:18:40 -0500 Received: from eggs.gnu.org ([209.51.188.92]:47990) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mzLNO-0004GK-Jo for bug-guix@gnu.org; Mon, 20 Dec 2021 11:19:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:39679) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mzLNO-0007Ef-CX for bug-guix@gnu.org; Mon, 20 Dec 2021 11:19:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mzLNO-0004xL-0A for bug-guix@gnu.org; Mon, 20 Dec 2021 11:19:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#36389: Nginx and certbot References: <249AC56B-BE05-4162-B65D-618490163CB0@vllmrt.net> In-Reply-To: <249AC56B-BE05-4162-B65D-618490163CB0@vllmrt.net> Resent-From: Andreas Enge Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 20 Dec 2021 16:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36389 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 36389@debbugs.gnu.org Received: via spool by 36389-submit@debbugs.gnu.org id=B36389.164001708718975 (code B ref 36389); Mon, 20 Dec 2021 16:19:01 +0000 Received: (at 36389) by debbugs.gnu.org; 20 Dec 2021 16:18:07 +0000 Received: from localhost ([127.0.0.1]:51225 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mzLMV-0004vy-8r for submit@debbugs.gnu.org; Mon, 20 Dec 2021 11:18:07 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:43326) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mzLMQ-0004vP-9m for 36389@debbugs.gnu.org; Mon, 20 Dec 2021 11:18:05 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 6292F478; Mon, 20 Dec 2021 17:17:55 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jHeokSE1rsGP; Mon, 20 Dec 2021 17:17:55 +0100 (CET) Received: from jurong (unknown [IPv6:2001:861:c4:f2f0:bad0:add3:e270:17e5]) by hera.aquilenet.fr (Postfix) with ESMTPSA id C2C0B361; Mon, 20 Dec 2021 17:17:54 +0100 (CET) Date: Mon, 20 Dec 2021 17:17:53 +0100 From: Andreas Enge Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spamd-Bar: / X-Rspamd-Server: hera X-Rspamd-Queue-Id: 6292F478 X-Spamd-Result: default: False [0.40 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; MID_RHS_NOT_FQDN(0.50)[]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Mon, 20 Dec 2021 13:18:00 -0500 X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1640024321; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post; bh=1Es2jEszCucvr+ZR64JUzURFaEAjA2pJIjdw54vmJWk=; b=bP/M9Csqi4rvZ3J5XJ5AN2ptceZGKmi8x2wpqSXDM8DddIhpkFHJdtjjYBdAsWUzC8nKw7 dYPX8myVnRHfEN5+5f4RK57vpkS0sGU10OpHwPTqf1AhwjHdZE5qXdO3wHqX1JSN1+LSrp 7YrYe/YfRqJmwuFJcfUfhXuWh2708SzmnpicVJgT0A1CI9SbNvbuHYZJWcoUA+HNPG2tOt 3ezfVME8RprRoRdoXBihrDlDqOTHyF7MJ1u1Qvk89DwqgLif5tZ83i/VqSQG8mmKPS7Mg5 5ABwo5Cl99RrytuoxtivfVu/bwRNLjpnd+2u5oNigtG5voAZ6l80LB6psHXoKQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1640024321; a=rsa-sha256; cv=none; b=c++yQAOdsZ64JhujK/pJwBH7PjIpO4RojzZejdywlLobegV+Q4rmekUsA6bfnbHPX95NpX SCnf5GuSeP2efHFgNSYW7Ozbo3LLHsHRcYhT05DVFrQwRzKbJKnvPbEj1jVB6eTGEqwqCf SZKASozQeYreBQQrpiEEZOu6DWkM1QGkeINDYCfTxaHJkAgCaE/1TgcjSdzwEfzNnqNhD9 yuKJFT3jKwCSHJ4zjhu0z6EjkWCajbtWq3ureGtUgXIRNlRTT9zxhYJutFlSLJjybQB7eQ At/VAbfeO668zavVCjRG8Yj+Nsp+bCXt2tuFdZzgxssiCVeweg+yt2cVXU7Apg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.52 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: EBB702A720 X-Spam-Score: -2.52 X-Migadu-Scanner: scn0.migadu.com X-TUID: sGP8mK36qYT+ Hello, I am also experiencing problems with setting up nginx and certbot, but I think it is more nginx that is to blame. After reconfiguring and restarting nginx, it is still running with the old configuration. Only rebooting solves the problem for me. Here is what it looks like (everything as root): $ ps -ef | grep nginx root 2821 1 0 17:03 ? 00:00:00 nginx: master process /gnu/store/bdhfqs7sx3mal6pzz8z00hw4cpn5dj7x-nginx-1.21.4/sbin/nginx -c /gnu/store/q7bwm828r8y88sfs395n04bi8s6b7zwl-nginx.conf -p /var/run/nginx $ guix system reconfigure ... nginx: configuration file /gnu/store/clq2yshkq3gxpcqa6d54m8qif8i37kl9-nginx.conf test is successful $ herd restart nginx; ps -ef | grep nginx root 2835 1 0 17:12 ? 00:00:00 nginx: master process /gnu/store/bdhfqs7sx3mal6pzz8z00hw4cpn5dj7x-nginx-1.21.4/sbin/nginx -c /gnu/store/q7bwm828r8y88sfs395n04bi8s6b7zwl-nginx.conf -p /var/run/nginx Notice that it is still running the old, q7b... config file! $ reboot $ ps -ef | grep nginx root 188 1 0 17:13 ? 00:00:00 nginx: master process /gnu/store/bdhfqs7sx3mal6pzz8z00hw4cpn5dj7x-nginx-1.21.4/sbin/nginx -c /gnu/store/clq2yshkq3gxpcqa6d54m8qif8i37kl9-nginx.conf -p /var/run/nginx Now the new, clq... config file is used! So somehow nginx appears to memorise its previous configuration file even when the service is stopped. The problem can be solved by rebooting after each web server reconfiguration, but this is of course not very comfortable. Andreas