Bug 47336 - univention-config-registry-backup fails as of missing /var/univention-backup/
univention-config-registry-backup fails as of missing /var/univention-backup/
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: General
UCS 4.3
amd64 All
: P5 normal (vote)
: UCS 4.3-2-errata
Assigned To: Arvid Requate
Philipp Hahn
:
: 47838 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-07-11 11:18 CEST by office
Modified: 2018-11-01 13:44 CET (History)
6 users (show)

See Also:
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:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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>