ipa-backup command fails to finish
Environment
- IDM
Issue
When running the ipa-backup command it fails with the following error:
tar: /tmp/tmp16uYtFipa/ipa/files.tar: Wrote only 4096 of 10240 bytes
tar: Error is not recoverable: exiting now
Resolution
Use the TMPDIR option to use a use a different directory for the backup process.
# TMPDIR=/path/to/backup/ipa-backup ipa-backup
Root Cause
There is an issue with /tmp, which is causing the backup to fail.
The backup command should not be using /tmp during the backup process.
This issue is being tracked in This content is not included.ipa-backup fails and looks to be writing to /tmp.
Diagnostic Steps
# ipa-backup
Preparing backup on ipaserver.example.com
Stopping IPA services
Backing up ipaca in EXAMPLE-COM to LDIF
Backing up userRoot in EXAMPLE-COM to LDIF
Backing up EXAMPLE-COM
Backing up files
tar returned non-zero code 2: tar: Removing leading `/' from member names
tar: Removing leading `/' from hard link targets
tar: /tmp/tmp16uYtFipa/ipa/files.tar: Wrote only 4096 of 10240 bytes
tar: Error is not recoverable: exiting now
The ipa-backup command failed. See /var/log/ipabackup.log for more information
# TMPDIR=/path/to/backup ipa-backup
Preparing backup on ipaserver.example.com
Stopping IPA services
Backing up ipaca in EXAMPLE-COM to LDIF
Backing up userRoot in EXAMPLE-COM to LDIF
Backing up EXAMPLE-COM
Backing up files
Backed up to /var/lib/ipa/backup/ipa-full-2018-02-05-10-54-04
Starting IPA service
The ipa-backup command was successful
Product(s)
Category
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.