From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
To: 59181@debbugs.gnu.org
Cc: Ricardo Wurmus <rekado@elephly.net>
Subject: bug#59181: [berlin] web services fail to start on reboot due to anonip
Date: Fri, 01 Nov 2024 17:30:26 +0900 [thread overview]
Message-ID: <87plnf1hlp.fsf@gmail.com> (raw)
In-Reply-To: <87mt8yvfnr.fsf@gmail.com> (Maxim Cournoyer's message of "Thu, 10 Nov 2022 13:16:24 -0500")
Hi,
Maxim Cournoyer <maxim.cournoyer@gmail.com> writes:
> Hi,
>
> Each time we reboot berlin, we must clear anonip files that it uses to
> process the nginx logs, which are supposed to be named pipes rather than
> empty files, like so:
>
> # rm /var/run/anonip/*
> # herd start nginx
>
> We should fix that.
OK, I've now narrowed this issue down to the nginx activation script,
which validates the configuration file, which causes nginx to write the
log files before our anonip service gets to create the named pipes at
their location.
Here's a small debug session in a VM showing this is the case:
--8<---------------cut here---------------start------------->8---
root@komputilo ~# ls /var/run/anonip
access.log error.log
root@komputilo ~# rm /var/run/anonip/*
root@komputilo ~# ls /var/run/anonip
root@komputilo ~# "/gnu/store/kn56akgnfkqm0ppyfzhyh63ss06ff42s-nginx-1.27.1/sbin/nginx" "-c" "/gnu/store/zc2vj9ixcmdpkivkdyp16vw8lyaivvky-nginx.conf" "-p" "/var/run/nginx" "-t"
nginx: the configuration file /gnu/store/zc2vj9ixcmdpkivkdyp16vw8lyaivvky-nginx.conf syntax is ok
root@komputilo ~# ls /var/run/anonip
access.log error.log
--8<---------------cut here---------------end--------------->8---
I suggest we simply recreate the log files in our anonip service start
slot; currently it checks and fails if they already exist.
--
Thanks,
Maxim
next prev parent reply other threads:[~2024-11-01 8:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-10 18:16 bug#59181: [berlin] web services fail to start on reboot due to anonip Maxim Cournoyer
2024-11-01 8:30 ` Maxim Cournoyer [this message]
2024-11-01 14:02 ` Maxim Cournoyer
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87plnf1hlp.fsf@gmail.com \
--to=maxim.cournoyer@gmail.com \
--cc=59181@debbugs.gnu.org \
--cc=rekado@elephly.net \
/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 external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.