Problem:
First error:
Run installer reset:
\ Installer reset [FAIL]
Failed executing yes | foreman-installer -v --reset-data --disable-system-checks , exit status 1:
2022-11-22 15:58:58 [NOTICE] [root] Loading installer configuration. This will take some time.
2022-11-22 15:59:05 [NOTICE] [root] Running installer with log based terminal output at level NOTICE.
2022-11-22 15:59:05 [NOTICE] [root] Use -l to set the terminal output log level to ERROR, WARN, NOTICE, INFO, or DEBUG. See --full-help for definitions.
ERROR: Unrecognised option āādisable-system-checksā
See: āforeman-installer --helpā
Scenario [Restore backup] failed.
The following steps ended up in failing state:
[restore-installer-reset]
Resolve the failed steps and rerun the command.
In case the failures are false positives, use
āwhitelist=ārestore-installer-resetā
Command with same effect:
foreman-installer -v --reset-data --disable-system-checks
Workaround (kinda)
foreman-maintain restore katello-backup-2022-11-22-15-32-00/
foreman-installer -v --reset-data
foreman-maintain restore --whitelist=ārestore-installer-resetā katello-backup-2022-11-22-15-32-00/
Second error:
Procedures::Installer::Upgrade: [FAIL]
Failed executing LANG=en_US.utf-8 foreman-installer --disable-system-checks, exit status 1:
2022-11-22 16:21:22 [NOTICE] [root] Loading installer configuration. This will take some time.
2022-11-22 16:21:27 [NOTICE] [root] Running installer with log based terminal output at level NOTICE.
2022-11-22 16:21:27 [NOTICE] [root] Use -l to set the terminal output log level to ERROR, WARN, NOTICE, INFO, or DEBUG. See --full-help for definitions.
ERROR: Unrecognised option āādisable-system-checksā
See: āforeman-installer --helpā
Command with same effect:
LANG=en_US.utf-8 foreman-installer --disable-system-checks
Can be avoided by using: installer-upgrade as whitelist, but not ideal
Expected outcome:
The restore should work withoud any problems, as the backup was created using the same tools (withoud backing up pulp).
Foreman and Proxy versions:
foreman-installer-katello-3.4.0-1.el8.noarch
foreman-3.4.0-1.el8.noarch
katello-4.6.0-1.el8.noarch
Distribution and version:
OS: Rhel 8.6
Other relevant data:
How i made the backup:
foreman-maintain backup offline -y --skip-pulp-content /var/lib/pulp/backup-test
How i restore the backup:
(i am in the directory /var/lib/pulp/backup-test)
foreman-maintain restore katello-backup-2022-11-22-15-32-00/