#788 Issue closed: Could not find 'mkisofs' compatible program during restore

Labels: support / question

bobbysch opened issue at 2016-02-29 22:46:

Relax-and-Recover (rear) Issue Template

Please fill in the following items before submitting a new issue:

  • rear version (/usr/sbin/rear -V):Relax-and-Recover 1.17.2 / Git

  • OS version (cat /etc/rear/os.conf or lsb_release -a): OS_VENDOR=RedHatEnterpriseServer OS_VERSION=6

  • rear configuration files (cat /etc/rear/site.conf or cat /etc/rear/local.conf):
    OUTPUT=ISO
    BACKUP=NETFS
    BACKUP_URL="nfs://10.2.209.220/HOU_Linuxbackups/linuxbackups"
    BACKUP_PROG_EXCLUDE=( ${BACKUP_PROG_EXCLUDE[@]} '.trc' '.trm' '/var/lib/libvirt/images/' )
    COPY_AS_IS_EXCLUDE=( ${COPY_AS_IS_EXCLUDE[@]} '
    .trc' '.trm' '/var/lib/libvirt/images/' )
    EXCLUDE_MOUNTPOINTS=( ${EXCLUDE_MOUNTPOINTS[@]} /exports )
    AUTOEXCLUDE_PATH=( ${AUTOEXCLUDE_PATH[@]} /mnt* /var/lib/kvm/images )
    BACKUP_PROG=tar
    BACKUP_TYPE=incremental

  • Brief description of the issue: Cannot restore despite the fact that mkisofs is installed before making the backup (rear mkrescue). Here is the log:
    10.2.209.220:/HOU_Linuxbackups/linuxbackups on /tmp/rear.s9k9dzk5VsCIoxK/outputfs type nfs (rw,noatime)
    2015-02-26 12:56:48 Including prep/NETFS/default/07_set_backup_archive.sh
    /usr/share/rear/prep/NETFS/default/07_set_backup_archive.sh: line 15: [: Thu: unary operator expected
    2015-02-26 12:56:48 Performing Incremental-Backup /tmp/rear.s9k9dzk5VsCIoxK/outputfs/houtrac01/2015-02-26-1256-I.tar.gz
    2015-02-26 12:56:48 Including prep/NETFS/default/09_check_encrypted_backup.sh
    2015-02-26 12:56:48 Including prep/default/10_init_workflow_conf.sh
    2015-02-26 12:56:48 Including prep/NETFS/default/15_save_rsync_version.sh
    2015-02-26 12:56:48 Including prep/GNU/Linux/20_include_agetty.sh
    2015-02-26 12:56:48 Including prep/NETFS/GNU/Linux/20_selinux_in_use.sh
    2015-02-26 12:56:48 Including prep/GNU/Linux/21_include_dhclient.sh
    2015-02-26 12:56:48 Including prep/GNU/Linux/22_include_lvm_tools.sh
    2015-02-26 12:56:48 Device mapper found enabled. Including LVM tools.
    2015-02-26 12:56:48 Including prep/GNU/Linux/23_include_md_tools.sh
    2015-02-26 12:56:48 Including prep/GNU/Linux/24_include_multipath_tools.sh
    2015-02-26 12:56:48 Including prep/GNU/Linux/28_include_systemd.sh
    2015-02-26 12:56:48 Including prep/GNU/Linux/28_include_vmware_tools.sh
    2015-02-26 12:56:48 Including prep/GNU/Linux/29_include_drbd.sh
    2015-02-26 12:56:48 Including prep/GNU/Linux/30_check_backup_and_output_url.sh
    2015-02-26 12:56:48 Including prep/ISO/default/30_check_iso_dir.sh
    2015-02-26 12:56:48 Including prep/GNU/Linux/30_include_grub_tools.sh
    2015-02-26 12:56:48 Including prep/default/31_include_uefi_tools.sh
    2015-02-26 12:56:48 Including prep/ISO/default/32_check_cdrom_size.sh
    2015-02-26 12:56:48 Including prep/default/32_include_uefi_env.sh
    2015-02-26 12:56:48 Including prep/ISO/GNU/Linux/32_verify_mkisofs.sh
    2015-02-26 12:56:48 ERROR: Could not find 'mkisofs' compatible program. Please install 'mkisofs' or 'genisoimage' into your path or manually set ISO_MKISOFS_BIN []
    === Stack trace ===
    Trace 0: /bin/rear:251 main
    Trace 1: /usr/share/rear/lib/mkrescue-workflow.sh:25 WORKFLOW_mkrescue
    Trace 2: /usr/share/rear/lib/framework-functions.sh:70 SourceStage
    Trace 3: /usr/share/rear/lib/framework-functions.sh:31 Source
    Trace 4: /usr/share/rear/prep/ISO/GNU/Linux/32_verify_mkisofs.sh:6 source
    Trace 5: /usr/share/rear/lib/_input-output-functions.sh:132 StopIfError

    Message: Could not find 'mkisofs' compatible program. Please install 'mkisofs' or 'genisoimage' into your path or manually set ISO_MKISOFS_BIN []

    2015-02-26 12:56:48 Running exit tasks.
    Legacy NFS mount point detected
    10.2.209.220:/HOU_Linuxbackups/linuxbackups/ umounted
    rmdir: removing directory, /tmp/rear.s9k9dzk5VsCIoxK/outputfs' 2015-02-26 12:56:48 Finished in 0 seconds 2015-02-26 12:56:48 Removing build area /tmp/rear.s9k9dzk5VsCIoxK rmdir: removing directory,/tmp/rear.s9k9dzk5VsCIoxK'
    2015-02-26 12:56:48 End of program reached

  • Work-around, if any: How to decide to restore manually? Is it a possible feature of REAR?

gdha commented at 2016-03-01 09:48:

You need first of all install genisoimage rpm package as it is a pre-requisite for rear.
Concerning your question: how to decide to restore manually? The backups are saved as tar.gz files. So, you can always extract one file from it.

bobbysch commented at 2016-03-01 14:59:

i did a mkrescue instead of recover, never mind, sorry.


[Export of Github issue for rear/rear.]