GNU bug report logs - #49205
[services]: nginx doesn't restart after guix system reconfigure

Previous Next

Package: guix;

Reported by: Raghav Gururajan <rg <at> raghavgururajan.name>

Date: Thu, 24 Jun 2021 11:36:01 UTC

Severity: normal

Done: Felix Lechner <felix.lechner <at> lease-up.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Raghav Gururajan <rg <at> raghavgururajan.name>
Subject: bug#49205: closed (Closing Bug#49205: Usually caused by
 misconfigurations of Nginx)
Date: Sun, 02 Jul 2023 02:02:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#49205: [services]: nginx doesn't restart after guix system reconfigure

which was filed against the guix package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 49205 <at> debbugs.gnu.org.

-- 
49205: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=49205
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Felix Lechner <felix.lechner <at> lease-up.com>
To: 49205-done <at> debbugs.gnu.org
Cc: Raghav Gururajan <rg <at> raghavgururajan.name>,
 Ludovic Courtès <ludo <at> gnu.org>,
 Tobias Geerinckx-Rice <me <at> tobias.gr>
Subject: Closing Bug#49205: Usually caused by misconfigurations of Nginx
Date: Fri, 30 Jun 2023 19:38:18 -0700
Hi,

I have also seen this error several times. In my experience, it is
almost always caused by a misconfiguration of Nginx.

On my equipment, there is an exception to that rule when Nginx serves
outside connections as a reverse proxy to the local network, i.e.
something like: [1]

(body (list
  "proxy_pass http://lechner-desktop.us-core.com:3011;"
  "proxy_set_header Host $host;"
  "proxy_set_header X-Real-IP $remote_addr;"
  "proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;"))

but that's somewhat exotic. It triggers a "host not found" in the logs.

My particular failure may have to do with the service ordering in
Shepherd, although I have not been able to fix it. For example, the
default prerequisites for Nginx do not even include 'networking. [2]
Either way, Nginx is configured to respawn, so my bug is probably
elsewhere.

Closing this issue.

Kind regards
Felix

[1] https://codeberg.org/lechner/system-config/src/commit/fca07b73068b043d57930266a2102af05b0b0aa9/host/wallace-server/operating-system.scm#L892-L895
[2] https://codeberg.org/lechner/guix/src/commit/f25529b08e356f89ca7cecc44295085531a8faba/gnu/services/web.scm#L567

[Message part 3 (message/rfc822, inline)]
From: Raghav Gururajan <rg <at> raghavgururajan.name>
To: bug-guix <at> gnu.org
Subject: [services]: nginx doesn't restart after guix system reconfigure
Date: Thu, 24 Jun 2021 07:35:35 -0400
[Message part 4 (text/plain, inline)]
Hello Guix!

I am using certbot-service-type which also brings in nginx service. Upon 
`guix system reconfigure`, I get the following:

guix system: warning: exception caught while executing 'start' on 
service 'nginx':
Throw to key `%exception' with args `("#<&invoke-error program: 
\"/gnu/store/g6nhdp7i1sr51anq86hd6adrsm5ha857-nginx-1.21.0/sbin/nginx\" 
arguments: (\"-c\" 
\"/gnu/store/2igpjf27rm92np6jn6hfrxzx5m55a468-nginx.conf\" \"-p\" 
\"/var/run/nginx\") exit-status: 1 term-signal: #f stop-signal: #f>")'.

Regards,
RG.

[OpenPGP_signature (application/pgp-signature, attachment)]

This bug report was last modified 1 year and 327 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.