GNU bug report logs -
#72527
Rottlog never exits cleanly
Previous Next
Reported by: Simon Streit <simon <at> netpanic.org>
Date: Thu, 8 Aug 2024 15:03:02 UTC
Severity: normal
Done: Simon Streit <simon <at> netpanic.org>
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 72527 in the body.
You can then email your comments to 72527 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guix <at> gnu.org
:
bug#72527
; Package
guix
.
(Thu, 08 Aug 2024 15:03:03 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Simon Streit <simon <at> netpanic.org>
:
New bug report received and forwarded. Copy sent to
bug-guix <at> gnu.org
.
(Thu, 08 Aug 2024 15:03:03 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hello!
On inspection of the default settings for Rot[t]log’s service, and
reading through /var/log/mcron.log, rottlog always exits with the
following error:
--8<---------------cut here---------------start------------->8---
2024-08-07 12:00:00 3408 /gnu/store/scligrs2fwpsy6jvffraa274k7ipbg81-rottlog-0.72.2/sbin/rottlog: running...
2024-08-07 12:00:01 3408 /gnu/store/scligrs2fwpsy6jvffraa274k7ipbg81-rottlog-0.72.2/sbin/rottlog: failed after 0.199s with: (misc-error #f unclean exit status ~S (1) #f)
--8<---------------cut here---------------end--------------->8---
Checking directly:
--8<---------------cut here---------------start------------->8---
root <at> host ~# /gnu/store/scligrs2fwpsy6jvffraa274k7ipbg81-rottlog-0.72.2/sbin/rottlog -v
read_custom: Config file 'custom' does not exist
read_daily: Config file 'daily' does not exist
check_last_rotate: Checking for week(ly) config file
check_last_rotate: Old date : 1722810339
check_last_rotate: New date : 1723125091
check_last_rotate: Next date : Thu 15 Aug 16:51:31 CEST 2024
check_last_rotate: Rotation not needed: 314752 < 604800
read_monthly: Config file 'monthly' does not exist
root <at> host ~# echo $?
1
--8<---------------cut here---------------end--------------->8---
To experiment a little, I add:
--8<---------------cut here---------------start------------->8---
(simple-service 'nginx-custom-rotations rottlog-service-type
(list (log-rotation
(frequency 'custom)
(files '("/var/log/nginx/access.log"
"/var/log/nginx/error.log"))
(options '("storedir nginx
period 15")))))
(simple-service 'nginx-daily-rotations rottlog-service-type
(list (log-rotation
(frequency 'daily)
(files '("/var/log/nginx/access.log"
"/var/log/nginx/error.log"))
(options '("storedir nginx")))))
(simple-service 'nginx-monthly-rotations rottlog-service-type
(list (log-rotation
(frequency 'monthly)
(files '("/var/log/nginx/access.log"
"/var/log/nginx/error.log"))
(options '("storedir nginx")))))
--8<---------------cut here---------------end--------------->8---
Upon reconfiguration, I called “/gnu/store/...rottlog -v” again, and
voilà, it exits cleanly.
The current default is to only provide a weekly rotation. Rottlog
expects a custom, daily, weekly and monthly file. The documentation
upstream doesn't state this directly. Providing empty files doesn't
help either, as it then errors out about syntax errors.
Would it make sense to be sure that a weekly file is enough, or all four
files are provided in a way? The latter option sounds like slight over
engineering. The default weekly rotation is enough for a base system.
I doubt it this is someone’s first concern to read through
/var/log/mcron.log and understand the error message on a new system.
The error message is there and it is not clear why at first sight.
Kind regards
--
Simon
Information forwarded
to
bug-guix <at> gnu.org
:
bug#72527
; Package
guix
.
(Thu, 08 Aug 2024 16:24:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 72527 <at> debbugs.gnu.org (full text, mbox):
Hi Simon,
Thanks for investigating this.
Would you be interested in sending a v1 patch with a proposal that fixes
the issue. I could then test it.
wdyt
--
all the best,
jgart
Information forwarded
to
bug-guix <at> gnu.org
:
bug#72527
; Package
guix
.
(Thu, 08 Aug 2024 17:28:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 72527 <at> debbugs.gnu.org (full text, mbox):
Hello jgart,
jgart <jgart <at> dismail.de> writes:
> Would you be interested in sending a v1 patch with a proposal that
> fixes the issue. I could then test it.
I'll workout a patch and post it, once I've got one.
Kind regards,
--
Simon
Information forwarded
to
bug-guix <at> gnu.org
:
bug#72527
; Package
guix
.
(Mon, 16 Sep 2024 15:33:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 72527 <at> debbugs.gnu.org (full text, mbox):
Hi Simon,
Simon Streit <simon <at> netpanic.org> skribis:
> On inspection of the default settings for Rot[t]logs service, and
> reading through /var/log/mcron.log, rottlog always exits with the
> following error:
>
> 2024-08-07 12:00:00 3408 /gnu/store/scligrs2fwpsy6jvffraa274k7ipbg81-rottlog-0.72.2/sbin/rottlog: running...
> 2024-08-07 12:00:01 3408 /gnu/store/scligrs2fwpsy6jvffraa274k7ipbg81-rottlog-0.72.2/sbin/rottlog: failed after 0.199s with: (misc-error #f unclean exit status ~S (1) #f)
>
>
> Checking directly:
>
> root <at> host ~# /gnu/store/scligrs2fwpsy6jvffraa274k7ipbg81-rottlog-0.72.2/sbin/rottlog -v
> read_custom: Config file 'custom' does not exist
> read_daily: Config file 'daily' does not exist
> check_last_rotate: Checking for week(ly) config file
> check_last_rotate: Old date : 1722810339
> check_last_rotate: New date : 1723125091
> check_last_rotate: Next date : Thu 15 Aug 16:51:31 CEST 2024
> check_last_rotate: Rotation not needed: 314752 < 604800
> read_monthly: Config file 'monthly' does not exist
> root <at> host ~# echo $?
> 1
FWIW I would recommend not investing too much time in Rottlog: well
hopefully be able to migrate to the Shepherds log rotation service in
the coming months.
https://lists.gnu.org/archive/html/guix-devel/2024-05/msg00159.html
Ludo’.
Information forwarded
to
bug-guix <at> gnu.org
:
bug#72527
; Package
guix
.
(Wed, 13 Nov 2024 21:17:01 GMT)
Full text and
rfc822 format available.
Message #17 received at 72527 <at> debbugs.gnu.org (full text, mbox):
Hello Ludovic,
Ludovic Courtès <ludo <at> gnu.org> writes:
> FWIW I would recommend not investing too much time in Rottlog: well
> hopefully be able to migrate to the Shepherds log rotation service in
> the coming months.
>
> https://lists.gnu.org/archive/html/guix-devel/2024-05/msg00159.html
I just rolled out shepherd 1.0.0rc1 locally that also includes brand new
logging facilities. It looks so much better there. I am assuming once
this release proceeds, rottlog will be eventually be completely
replaced?
I don't see a need to follow this issue any more. Closing.
Kind regards
--
Simon
bug closed, send any further explanations to
72527 <at> debbugs.gnu.org and Simon Streit <simon <at> netpanic.org>
Request was from
Simon Streit <simon <at> netpanic.org>
to
control <at> debbugs.gnu.org
.
(Wed, 13 Nov 2024 21:23:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-guix <at> gnu.org
:
bug#72527
; Package
guix
.
(Wed, 20 Nov 2024 11:53:02 GMT)
Full text and
rfc822 format available.
Message #22 received at 72527 <at> debbugs.gnu.org (full text, mbox):
Hi,
Simon Streit <simon <at> netpanic.org> skribis:
> Ludovic Courtès <ludo <at> gnu.org> writes:
>
>> FWIW I would recommend not investing too much time in Rottlog: well
>> hopefully be able to migrate to the Shepherds log rotation service in
>> the coming months.
>>
>> https://lists.gnu.org/archive/html/guix-devel/2024-05/msg00159.html
>
> I just rolled out shepherd 1.0.0rc1 locally that also includes brand new
> logging facilities. It looks so much better there. I am assuming once
> this release proceeds, rottlog will be eventually be completely
> replaced?
Yes, that’s the plan. (It’s a bit tricky because someone reconfiguring
a pre-1.0 system won’t be able to run timed services.)
Ludo’.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Wed, 18 Dec 2024 12:24:09 GMT)
Full text and
rfc822 format available.
This bug report was last modified 241 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.