GNU bug report logs - #59181
[berlin] web services fail to start on reboot due to anonip

Previous Next

Package: guix;

Reported by: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>

Date: Thu, 10 Nov 2022 18:17:02 UTC

Severity: normal

Done: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 59181 in the body.
You can then email your comments to 59181 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#59181; Package guix. (Thu, 10 Nov 2022 18:17:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Maxim Cournoyer <maxim.cournoyer <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Thu, 10 Nov 2022 18:17:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: bug-guix <bug-guix <at> gnu.org>
Subject: [berlin] web services fail to start on reboot due to anonip
Date: Thu, 10 Nov 2022 13:16:24 -0500
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.

-- 
Thanks,
Maxim




Information forwarded to bug-guix <at> gnu.org:
bug#59181; Package guix. (Fri, 01 Nov 2024 08:32:02 GMT) Full text and rfc822 format available.

Message #8 received at 59181 <at> debbugs.gnu.org (full text, mbox):

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: 59181 <at> debbugs.gnu.org
Cc: Ricardo Wurmus <rekado <at> elephly.net>
Subject: Re: bug#59181: [berlin] web services fail to start on reboot due to
 anonip
Date: Fri, 01 Nov 2024 17:30:26 +0900
Hi,

Maxim Cournoyer <maxim.cournoyer <at> 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 <at> komputilo ~# ls /var/run/anonip
access.log  error.log
root <at> komputilo ~# rm /var/run/anonip/*
root <at> komputilo ~# ls /var/run/anonip
root <at> 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 <at> 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




Reply sent to Maxim Cournoyer <maxim.cournoyer <at> gmail.com>:
You have taken responsibility. (Fri, 01 Nov 2024 14:04:02 GMT) Full text and rfc822 format available.

Notification sent to Maxim Cournoyer <maxim.cournoyer <at> gmail.com>:
bug acknowledged by developer. (Fri, 01 Nov 2024 14:04:02 GMT) Full text and rfc822 format available.

Message #13 received at 59181-done <at> debbugs.gnu.org (full text, mbox):

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: 59181-done <at> debbugs.gnu.org, guix-sysadmin <guix-sysadmin <at> gnu.org>
Cc: Ricardo Wurmus <rekado <at> elephly.net>
Subject: Re: bug#59181: [berlin] web services fail to start on reboot due to
 anonip
Date: Fri, 01 Nov 2024 23:02:28 +0900
Hi,

I've pushed a fix for this as commit 49375f83fc.  The tests I've
implemented to help troubleshoot the issue are up for review in
https://issues.guix.gnu.org/74151.

I haven't yet reconfigured berlin with it but will do so next night,
European time.

A fully functional reboot at last awaits :-)

-- 
Thanks,
Maxim




Information forwarded to bug-guix <at> gnu.org:
bug#59181; Package guix. (Wed, 20 Nov 2024 18:56:02 GMT) Full text and rfc822 format available.

Message #16 received at 59181-done <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
Cc: Ricardo Wurmus <rekado <at> elephly.net>, guix-sysadmin <guix-sysadmin <at> gnu.org>,
 59181-done <at> debbugs.gnu.org
Subject: Re: bug#59181: [berlin] web services fail to start on reboot due to
 anonip
Date: Wed, 20 Nov 2024 19:55:15 +0100
Hi,

Maxim Cournoyer <maxim.cournoyer <at> gmail.com> skribis:

> I've pushed a fix for this as commit 49375f83fc.  The tests I've
> implemented to help troubleshoot the issue are up for review in
> https://issues.guix.gnu.org/74151.

Yay, much appreciated, thank you!!

Ludo’.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 19 Dec 2024 12:24:09 GMT) Full text and rfc822 format available.

This bug report was last modified 84 days ago.

Previous Next


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