Open link in a new tab

Content

Expand project menu

yum error: unpacking of archive failed on file /opt/openproject/log/delete.me

Hello,

I am trying to install a version 7.4.7 on CentOS 7 and I do get this error when installing with yum :

Downloading packages:
openproject-7.4.7-1532077196.a556554d.centos7.x86_64.rpm                   | 133 MB  00:00:09
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
 Installing : openproject-7.4.7-1532077196.a556554d.centos7.x86_64                           1/1
Error unpacking rpm package openproject-7.4.7-1532077196.a556554d.centos7.x86_64
error: unpacking of archive failed on file /opt/openproject/log/delete.me;5d0ae9f6: cpio: open
!!!! /etc/yum/universal-hooks/posttrans/cp_clear_packman_cache is not executable
 Verifying  : openproject-7.4.7-1532077196.a556554d.centos7.x86_64                           1/1

Failed:
 openproject.x86_64 0:7.4.7-1532077196.a556554d.centos7

Complete!

Any clue as to what to do ?

Thanks

Message actions

Hi,

the error appears to be related to CPanel. The cp_clear_packman_cache` comes from a CPanel installation and this error is unrelated to OpenProject.

This thread might possibly help you: https://forums.cpanel.net/threads/etc-yum-universal-hooks-posttrans-cp_clear_packman_cache-is-not-executable.540311/

Best,

Oliver

Message actions

Thanks, this other thread helped fix part of the problem. Now  the 'cp_clear_packman_cache'not executable is gone, but there is still an error apparently with the archive :

Running transaction
 Installing : openproject-7.4.7-1532077196.a556554d.centos7.x86_64                           1/1
Error unpacking rpm package openproject-7.4.7-1532077196.a556554d.centos7.x86_64
error: unpacking of archive failed on file /opt/openproject/log/delete.me;5d0b2572: cpio: open
 Verifying  : openproject-7.4.7-1532077196.a556554d.centos7.x86_64                           1/1

Failed:
 openproject.x86_64 0:7.4.7-1532077196.a556554d.centos7

Message actions

What does lsattr /opt/openproject/log/delete.me` output? It looks like that file has been put on an immutable bit (output will show an i). In that case run chattr -i /opt/openproject/log/delete.me and try again.

Best,

Oliver

Message actions

here is the output :

lsattr: No such file or directory while trying to stat /opt/openproject/log/delete.me

Message actions

Please try again with the current stable 9.0.2 packages. However I do suspect that something in your system is blocking that file. I doubt it is related to the OpenProject package and we probably can't help you there. Maybe you use ACLs or SELinux which is causing open to fail ?

Message actions

Hmm, then something must be preventing the extraction of that package. For example, do you use SELinux or acls?

Message actions

I'm getting this same error with the 12.5.6 packages on CentOS 7, and we have SELinux disabled on this server. This is the output I'm getting:

Total download size: 194 M
Installed size: 530 M
Is this ok [y/d/N]: y
Downloading packages:
openproject-12.5.7-1686715548.53b19adc.centos7.x86_64.rpm                                                                                                                              | 194 MB  00:00:43     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : openproject-12.5.7-1686715548.53b19adc.centos7.x86_64                                                                                                                                      1/1 
Error unpacking rpm package openproject-12.5.7-1686715548.53b19adc.centos7.x86_64
error: unpacking of archive failed on file /opt/openproject/log/delete.me;64920e64: cpio: open
  Verifying  : openproject-12.5.7-1686715548.53b19adc.centos7.x86_64                                                                                                                                      1/1 

Failed:
  openproject.x86_64 0:12.5.7-1686715548.53b19adc.centos7                                                                                                                                                     

Complete!
Message actions

Hi Tom,

Was it an upgrade or a fresh install? Can you check whether you have enough disk space as well?

Thanks,

Cyril

Message actions

OpenProject is installed to a drive with 2.3 TB free, and it was/is trying to be a fresh install, but like I said, it doesn't appear to be working. :/

It DOES look as though the package manager has left the /opt/openproject directory over there, not sure what else it might've dropped elsewhere. We'd LIKE to have it completely installed to our /storage/web/application_files/openproject folder, as that lives on a fully-encrypted disk.

Message actions

Eh?