rpmbuild on Cent OS 6: "cpio: bad magic"

Posted by djhaskin987 on Server Fault See other posts from Server Fault or by djhaskin987
Published on 2012-04-10T22:22:37Z Indexed on 2012/04/10 23:31 UTC
Read the original article Hit count: 1529

Filed under:
|

When I try to run this command :

rpmbuild -bb SPECS/software.spec

I get an error when the WAR file (as in tomcat java web archive file) is being added to the rpm:

error: create archive failed on file /<filepath>/<filename>.war: cpio: Bad magic

This didn't use to happen. The only things that have changed since this worked was an upgrade. Further, no problems are happening like it on my CentOS 5 box. I compile and build the exact same code set on both machines, but CentOS 6 won't create an rpm.

How do I troubleshoot this? I have already googled it and received few (if any) useful links. This appears nowhere in the user guide for RPM as far as I can see, and Maximum RPM has no section on this.

© Server Fault or respective owner

Related posts about tomcat6

Related posts about rpmbuild