Bug 44587 - Cronjob deb-cleaner remove error
Cronjob deb-cleaner remove error
Status: REOPENED
Product: UCS
Classification: Unclassified
Component: App Center - Self Service
UCS 4.4
Other Linux
: P5 normal (vote)
: ---
Assigned To: App Center maintainers
App Center maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-05-12 12:00 CEST by Hendrik Peter
Modified: 2019-12-24 12:59 CET (History)
1 user (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 1: Cosmetic issue or missing function but workaround exists
Who will be affected by this bug?: 1: Will affect a very few installed domains
How will those affected feel about the bug?: 1: Nuisance – not a big deal but noticeable
User Pain: 0.006
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
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 Hendrik Peter univentionstaff 2017-05-12 12:00:32 CEST
Package: univention-management-console-module-appcenter-selfservice
Script: /etc/cron.daily/appcenter-selfservice-deb-cleaner
Command: "find /var/cache/univention-appcenter-selfservice/uploads -mtime +1 -exec rm {} \;"
Cronjob-Error: "rm: cannot remove `/var/cache/univention-appcenter-selfservice/uploads': Is a directory"


Reason: 
The above command's output includes the given base folder "/var/cache/univention-appcenter-selfservice/uploads",
which is the reason, why the exec-Command tries to delete it


Fix:
The simplest solution for this problem would be the addition of the argument
-mindepth 1
to the 'find'-Command
Comment 1 Dirk Wiesenthal univentionstaff 2017-06-29 10:19:03 CEST
Does not break anything, right? Just prints out an error message.
Comment 2 Hendrik Peter univentionstaff 2017-06-29 12:50:05 CEST
(In reply to Dirk Wiesenthal from comment #1)
> Does not break anything, right? Just prints out an error message.

Correct.
Our System sends us two to six Cron Deamon messages per Week, though.
Comment 3 Stefan Gohmann univentionstaff 2019-01-03 07:18:40 CET
This issue has been filled against UCS 4.1. The maintenance with bug and security fixes for UCS 4.1 has ended on 5st of April 2018.

Customers still on UCS 4.1 are encouraged to update to UCS 4.3. Please contact
your partner or Univention for any questions.

If this issue still occurs in newer UCS versions, please use "Clone this bug" or simply reopen the issue. In this case please provide detailed information on how this issue is affecting you.
Comment 4 Hendrik Peter univentionstaff 2019-12-24 12:59:37 CET
Still existent in latest Version 4.4.0-17.