Bug 47336

Summary: univention-config-registry-backup fails as of missing /var/univention-backup/
Product: UCS Reporter: office
Component: GeneralAssignee: Arvid Requate <requate>
Status: CLOSED FIXED QA Contact: Philipp Hahn <hahn>
Severity: normal    
Priority: P5 CC: da, damrose, grandjean, requate, scheinig, thorsten.strusch
Version: UCS 4.3   
Target Milestone: UCS 4.3-2-errata   
Hardware: amd64   
OS: All   
What kind of report is it?: Bug Report What type of bug is this?: 3: Simply Wrong: The implementation doesn't match the docu
Who will be affected by this bug?: 3: Will affect average number of 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.103 Enterprise Customer affected?:
School Customer affected?: Yes ISV affected?:
Waiting Support: Flags outvoted (downgraded) after PO Review:
Ticket number: 2018092021000249 Bug group (optional):
Max CVSS v3 score:

Description office 2018-07-11 11:18:55 CEST
Since some days I received errors from cron for "/usr/share/univention-config-registry/univention-config-registry-backup"

> touch: cannot touch '/var/univention-backup/ucr-backup_20180711.tgz': No such file or directory
> chmod: cannot access '/var/univention-backup/ucr-backup_20180711.tgz': No such file or directory
> chown: cannot access '/var/univention-backup/ucr-backup_20180711.tgz': No such file or directory tar (child): /var/univention-backup/ucr-backup_20180711.tgz: Cannot open: No such file or directory tar (child): Error is not recoverable: exiting now
> tar: Child returned status 2
> tar: Error is not recoverable: exiting now

Not sure when it started, as I had a problem with the email-notification in parallel.
Comment 1 office 2018-07-11 11:28:35 CEST
my quick solution was to add a line

[ -d "/var/univention-backup/" ] || mkdir "/var/univention-backup/"

before 

touch "$TARGET"
Comment 2 Dirk Ahrnke 2018-08-09 14:19:00 CEST
Same here on a freshly installed (UCS_4.3-1-amd64.iso) single-master.
/var/univention-backup did not exist.
Comment 3 Erik Damrose univentionstaff 2018-09-20 10:42:41 CEST
*** Bug 47838 has been marked as a duplicate of this bug. ***
Comment 4 Thorsten Strusch 2018-09-20 10:53:16 CEST
please add `var/univention-backup` in `./univention-base-files-7.0.0/debian/univention-base-files.dirs` to solve the problem.

/thorsten
Comment 5 Arvid Requate univentionstaff 2018-10-09 21:33:16 CEST
8005f50fbc Ensure that /var/univention-backup exists
60a95299f0 Advisory
Comment 6 Philipp Hahn univentionstaff 2018-10-16 21:02:09 CEST
(In reply to Arvid Requate from comment #5)
OK: 8005f50fbc Ensure that /var/univention-backup exists
OK: 60a95299f0 Advisory

OK: errata-announce -V --only univention-base-files.yaml
OK: univention-base-files.yaml
OK: /usr/share/univention-config-registry/univention-config-registry-backup
Comment 7 Arvid Requate univentionstaff 2018-11-01 13:44:08 CET
<http://errata.software-univention.de/ucs/4.3/295.html>