Bug #5482
closedErrror when doing an rpm based upgrade from 1.4.1 to 1.5.RC2
Description
When doing an rpm based upgrade from 1.4.1 to 1.5 rc2 it fails with below:
Downloading Packages:
foreman-1.5.0-0.2.RC2.el6.noarch.rpm | 3.1 MB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : foreman-1.5.0-0.2.RC2.el6.noarch 1/2
Error unpacking rpm package foreman-1.5.0-0.2.RC2.el6.noarch
warning: /etc/cron.d/foreman saved as /etc/cron.d/foreman.rpmsave
warning: /etc/foreman/settings.yaml created as /etc/foreman/settings.yaml.rpmnew
error: unpacking of archive failed on file /usr/share/foreman/config/settings.plugins.d: cpio: rename
Verifying : foreman-1.5.0-0.2.RC2.el6.noarch 1/2
foreman-1.4.1-2.el6.noarch was supposed to be removed but is not!
Verifying : foreman-1.4.1-2.el6.noarch 2/2
Failed:
foreman.noarch 0:1.4.1-2.el6 foreman.noarch 0:1.5.0-0.2.RC2.el6
Complete!
Br, Peter
Updated by Dominic Cleal over 10 years ago
- Related to Bug #4465: %pretrans failure during kickstart added
Updated by Nick Piacentine over 10 years ago
When trying to upgrade manually with rpm, I get this slightly more helpful message:
Preparing packages for installation...
foreman-1.5.0-0.2.RC2.el6
warning: /etc/cron.d/foreman saved as /etc/cron.d/foreman.rpmsave
warning: /etc/foreman/settings.yaml created as /etc/foreman/settings.yaml.rpmnew
error: unpacking of archive failed on file /usr/share/foreman/config/settings.plugins.d: cpio: rename failed - Is a directory
Moving/deleting the /usr/share/foreman/config/settings.plugins.d directory made the update complete successfully.
Updated by Dominic Cleal over 10 years ago
As a workaround, move the contents of /usr/share/foreman/config/settings.plugins.d to a temporary directory before upgrading and then move them back to /etc/foreman/plugins/ after. We might be able to write a lua %pretrans script, but I'll otherwise document it in the upgrade notes.
Updated by Dominic Cleal over 10 years ago
- Related to Feature #4197: Foreman package should handle creation of plugin directories added
Updated by Dominic Cleal over 10 years ago
I've documented this in the upgrade instructions, sorry we haven't been able to address this via the spec file in time for 1.5.0.