[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1053517: marked as done (find commands became noisy in urlcheck/cleanup.logs cron job)



Your message dated Thu, 05 Oct 2023 15:04:12 +0000
with message-id <651ed06c7e7a7_d732a960-1b1@godard.mail>
and subject line Bug#1053517 fixed in www.debian.org
has caused the Debian Bug report #1053517,
regarding find commands became noisy in urlcheck/cleanup.logs cron job
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
1053517: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1053517
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: www.debian.org
Severity: normal
User: debian-www@lists.debian.org
Usertags: scripts

Hello all
Since some time (maybe since the www-master machine (wolkenstein) was upgraded to bullseye?) we're receiving (at webmaster@debian.org) daily mails with noisy useless output of the "urlcheck" lessoften job:

-----
-------- Mensaje reenviado --------
Asunto: Cron <debwww@wolkenstein> cd /srv/www.debian.org/cron/urlcheck && ./cleanup.logs
Fecha: Thu, 05 Oct 2023 13:05:01 +0000
De: Cron Daemon <root@wolkenstein.debian.org>
Para: debwww@wolkenstein.debian.org

rm: cannot remove 'logs': Is a directory
gzip: logs is a directory -- ignored
-----

The code producing the output is here:
https://salsa.debian.org/webmaster-team/cron/-/blob/master/urlcheck/cleanup.logs

Which is just 3 lines, so I copy them here:

---
#!/bin/sh

find logs -daystart -mtime +7 -exec rm {} \;
find logs -daystart -mtime +2 -not -name '*.gz' -exec gzip -9 {} \;
---

the "logs" folder is where other cron jobs store files so I guess we should keep it, I'd like just the script to be more silent so we only get mails if there is an actual error.

My bash skills are limited, if anybody can help, MR or patches or ideas are welcome.

Kind regards,

Laura Arjona Reina
https://wiki.debian.org/LauraArjona

--- End Message ---
--- Begin Message ---
Hello,

Bug #1053517 in www.debian.org reported by you has been fixed in the Git repository.
You can see the commit message below and you can check the diff of the fix at:

https://salsa.debian.org/webmaster-team/cron/-/commit/1d738594d77c30eec759fbafece7d5870b74de4f

------------------------------------------------------------------------
only work on files, not directories, Closes: #1053517
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1053517

--- End Message ---

Reply to: