unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Felix Lechner via Bug reports for GNU Guix <bug-guix@gnu.org>
To: 49205-done@debbugs.gnu.org
Cc: "Raghav Gururajan" <rg@raghavgururajan.name>,
	"Ludovic Courtès" <ludo@gnu.org>,
	"Tobias Geerinckx-Rice" <me@tobias.gr>
Subject: bug#49205: Closing Bug#49205: Usually caused by misconfigurations of Nginx
Date: Fri, 30 Jun 2023 19:38:18 -0700	[thread overview]
Message-ID: <CAFHYt57R+vNHMuBMELruh9FzfT+r12jZ1BqUfQUt6sJqqGn8Pg@mail.gmail.com> (raw)
In-Reply-To: <ce7f75aa-9902-c0f0-c739-8939cfc713c9@raghavgururajan.name>

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




      parent reply	other threads:[~2023-07-02  2:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-24 11:35 bug#49205: [services]: nginx doesn't restart after guix system reconfigure Raghav Gururajan via Bug reports for GNU Guix
2021-06-24 18:30 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
2022-12-09  9:14   ` Ludovic Courtès
2023-07-01  2:38 ` Felix Lechner via Bug reports for GNU Guix [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAFHYt57R+vNHMuBMELruh9FzfT+r12jZ1BqUfQUt6sJqqGn8Pg@mail.gmail.com \
    --to=bug-guix@gnu.org \
    --cc=49205-done@debbugs.gnu.org \
    --cc=felix.lechner@lease-up.com \
    --cc=ludo@gnu.org \
    --cc=me@tobias.gr \
    --cc=rg@raghavgururajan.name \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).