Bug 696806

Summary: Cannot upgrade moodle: error: unpacking of archive failed on file /var/www/moodle/web/auth/cas: cpio: rename
Product: [Fedora] Fedora EPEL Reporter: Todd Zullinger <tmz>
Component: moodleAssignee: Gwyn Ciesla <gwync>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: high    
Version: el5CC: gwync, me, tmz
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 628424 Environment:
Last Closed: 2016-04-06 14:26:15 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 628424    
Bug Blocks:    

Description Todd Zullinger 2011-04-14 21:31:42 UTC
+++ This bug was initially created as a clone of Bug #628424 +++

Description of problem:

yum upgrade of Moodle fails for version 1.9.9-2

Running Transaction
etckeeper: pre transaction commit
  Updating       : moodle-1.9.9-2.fc13.noarch                               1/2
Error unpacking rpm package moodle-1.9.9-2.fc13.noarch
error: unpacking of archive failed on file /var/www/moodle/web/auth/cas: cpio: rename

--- Additional comment from abu_hurayrah on 2010-08-29 22:50:43 EDT ---

Note, on another system that had this problem, uninstalling and reinstalling Moodle works fine, so it appears to be an upgrade-specific problem.

--- Additional comment from tmz on 2010-09-20 20:06:34 EDT ---

I think this is a nasty problem.  It affects the EPEL packages as well, it would seem:

$ sudo yum update moodle
...
Error unpacking rpm package moodle-1.8.13-2.el5.noarch
error: unpacking of archive failed on file /var/www/moodle/web/auth/cas: cpio: rename

Failed:
  moodle.noarch 0:1.8.13-2.el5

$ rpm -qf /var/www/moodle/web/auth/cas
moodle-1.8.12-1.el5.noarch

$ file /var/www/moodle/web/auth/cas
/var/www/moodle/web/auth/cas: directory

$ rpm -qplv moodle-1.8.13-2.el5.noarch.rpm | grep /var/www/moodle/web/auth/cas
lrwxrwxrwx    1 root    root               16 Aug 20 08:40 /var/www/moodle/web/auth/cas -> /usr/share/pear/

Happy to file a seperate EPEL bug if desired.  But the issue is the same, replacing a directory with a symlink is a painful process with rpm.

--- Additional comment from tmz on 2010-09-20 20:14:16 EDT ---

*** Bug 631998 has been marked as a duplicate of this bug. ***

--- Additional comment from limb on 2010-10-04 10:26:20 EDT ---

Sorry for the delay.  It was a one-character typo.  If the rawhide build works for you, I'll push the fix everywhere.

--- Additional comment from updates on 2010-10-12 11:49:04 EDT ---

moodle-1.8.13-3.el5 has been submitted as an update for Fedora EPEL 5.
https://admin.fedoraproject.org/updates/moodle-1.8.13-3.el5

------------------------------------------------------------------------------

Sorry to re-open an old problem, but I finally had time to test updating on EL-5 and found this bug is still present there.  Any suggestions other than uninstall and reinstall?