Bug 696806 - Cannot upgrade moodle: error: unpacking of archive failed on file /var/www/moodle/web/auth/cas: cpio: rename
Summary: Cannot upgrade moodle: error: unpacking of archive failed on file /var/www/mo...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: moodle
Version: el5
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Gwyn Ciesla
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 628424
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-04-14 21:31 UTC by Todd Zullinger
Modified: 2016-04-06 14:26 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 628424
Environment:
Last Closed: 2016-04-06 14:26:15 UTC
Type: ---


Attachments (Terms of Use)

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?


Note You need to log in before you can comment on or make changes to this bug.