Bug 48014 - Cronmail /usr/sbin/univention-ldap-backup if UCR backup/clean/max_age is set
Cronmail /usr/sbin/univention-ldap-backup if UCR backup/clean/max_age is set
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: univention-lib
UCS 4.3
Other Linux
: P5 normal (vote)
: UCS 4.3-3-errata
Assigned To: Julia Bremer
Jürn Brodersen
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-10-18 10:04 CEST by Erik Damrose
Modified: 2019-01-16 13:25 CET (History)
6 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 4: Minor Usability: Impairs usability in secondary scenarios
Who will be affected by this bug?: 2: Will only affect a few installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.091
Enterprise Customer affected?: Yes
School Customer affected?: Yes
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2018041221000291
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Erik Damrose univentionstaff 2018-10-18 10:04:50 CEST
When UCR backup/clean/max_age is set, the cronjob /etc/cron.d/univention-ldap-server will send a mail every time it is executed (default: 0 0 * * *).

There is an 'echo' in univention-lib/shell/backup.sh which is the cause, leftover debugging?

if [ -n "$max_age" ]; then
    echo "find '$backup_dir' -type f -mtime '+$max_age' -regex '$pattern'"
Comment 1 Thorsten Strusch 2018-12-19 11:04:53 CET
Please delete this echo-line asap. 
Each of my systems additionally mails every night. Since the package univention-lib is updated regularly, my local adjustments (= commenting out the line) are overwritten again and again.
My userpain with this is much higher than 0.091…
problem can also be seen here: https://help.univention.com/t/10080

tia
/thorsten
Comment 2 Stephan Hendl 2019-01-03 08:22:34 CET
Please add Ticket#2018041221000291 to the "Ticket Number" field.
Comment 3 Stephan Hendl 2019-01-03 08:23:42 CET
(In reply to Erik Damrose from comment #0)
> When UCR backup/clean/max_age is set, the cronjob
> /etc/cron.d/univention-ldap-server will send a mail every time it is
> executed (default: 0 0 * * *).
> 
> There is an 'echo' in univention-lib/shell/backup.sh which is the cause,
> leftover debugging?
> 
> if [ -n "$max_age" ]; then
>     echo "find '$backup_dir' -type f -mtime '+$max_age' -regex '$pattern'"

The deletion of one echo-line in the package cannot be that big deal...
Comment 4 Julia Bremer univentionstaff 2019-01-11 11:38:28 CET
Successful build
Package: univention-lib
Version: 7.0.0-20A~4.3.0.201901101611
Branch: ucs_4.3-0
Scope: errata4.3-3

06a26823f0 Bug #48014: Advisory
283df4d74c Bug #48014: Version bump
c15285a215 Bug #48014: Removed unnecessary echo line

Version: 8.0.0-2A~4.4.0.201901111126
Branch: ucs_4.4-0

89fb8a27bd Bug #48014: Version bump
744834ddce Bug #48014: Removed unnecessary echo line
Comment 5 Jürn Brodersen univentionstaff 2019-01-11 16:07:24 CET
What I tested:

No more emails from cron in /var/mail/systemmail -> OK
4.4 merge -> OK

YAML change:
[4.3-3 3e60510132] Bug #48014: YAML

-> Verified
Comment 6 Arvid Requate univentionstaff 2019-01-16 13:25:21 CET
<http://errata.software-univention.de/ucs/4.3/401.html>