Problems upgrading foreman - yum update

> Hi,
> I'm trying to update foreman (yum update foreman),
> al other packages (proxy, mysql etc) are updated but only in foreman I get:
>
> Downloading Packages:
>>
>> foreman-1.0.1-1.el6.noarch.rpm
>>>
>>>
>>> > 966 kB 00:00
>>
>> Running rpm_check_debug
>>
>> Running Transaction Test
>>
>> Transaction Test Succeeded
>>
>> Running Transaction
>>
>> Updating : foreman-1.0.1-1.el6.noarch
>>>
>>>
>>> 1/2
>>
>> Error unpacking rpm package foreman-1.0.1-1.el6.noarch
>>
>> error: unpacking of archive failed on file /usr/share/foreman/public:
>>> cpio: rename
>>
>>
this suggest an error while upgrading… any chance you have some local
filesystem issues? e.g. try running fsck etc?

> foreman-1.0.0-2.el6.noarch was supposed to be removed but is not!
>>
>>
>>> Failed:
>>
>> foreman.noarch 0:1.0.0-2.el6
>>>
>>> foreman.noarch 0:1.0.1-1.el6
>>>
>>
>>
>>> Complete!
>>
>>
> I assume I need to run yum remove foreman, question is if there will be
> any data loss in the process and why I get the error (there are nicer ways
> to notify both of them can't be installed together)
>

this is the first time i see this secenario, and we fully support upgrading
rpms, i wonder if you have some more logs somewhere :slight_smile:

Ohad

··· On Tue, Oct 16, 2012 at 9:53 AM, Elad Shmitanka wrote:

thanks


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/foreman-users/-/TxSAJq_RoVQJ.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to
foreman-users+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/foreman-users?hl=en.

This does not necessarily to be FS issue. Several times, I saw RPM
having issues with upgrading symlinked directory with some changed
content in it. I am not sure about the case, but if this upgrade is
still a problem for you, try to uninstall foreman (rpms) and install
them back. Or also deleting this directory could also help. Try to move
it somewhere and proceed with the upgrade again.

But can also be a FS issue, yeah.

··· On Tue, Oct 16, 2012 at 12:01:42PM +0200, Ohad Levy wrote: > >> Error unpacking rpm package foreman-1.0.1-1.el6.noarch > >> > >> error: unpacking of archive failed on file /usr/share/foreman/public: > >>> cpio: rename > >> > >> > this suggest an error while upgrading... any chance you have some local > filesystem issues? e.g. try running fsck etc? >


Later,

Lukas “lzap” Zapletal
#katello #systemengine