Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RPM build errors

Status
Not open for further replies.

Amazator

Programmer
Mar 8, 2006
13
IN
Hi folks,

One of our company's products is packaged using an RPM command in the build shell script. Quite randomly, the RPM package gets corrupted on the build server during or after the build script terminates. I don't know why this is happening, but I am not doing anything hi-fi using RPMs, I'm just calling am rpmbuild command to build an RPM for me.

The error exactly reads (when I try to query for RPM architecture):

Code:
[root@IMITS078 ~]# rpm -q  --queryformat "%{ARCH}" rpm
error: cannot open Packages database in /var/lib/rpm
package rpm is not installed

Any help in this direction will be most appreciated. I've not had a successful search so far...and this trend of RPM corruption is increasing day by day on our build machines. I don't know what could cause this.

BTW, the build scripts are scheduled to run through the cron scheduler.

-Amazator
 
Sorry, is it the RPM package that you are building that gets corrupted, or the RPM database on the system where you are building the package (I would guess the latter from the output above)?

If so, how do you usually resolve it, rpm --rebuilddb?

Annihilannic.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top