Error while generating build for xo-1.75 on an xo-1.75

Anish Mangal anish at activitycentral.com
Thu Jan 19 00:55:06 EST 2012


Hi,

I noticed an interesting error while trying to roll a xo-1.75 build on
the xo-1.75 laptop.


Retrieving http://mock.laptop.org/repos/koji.dist-f14-armv5tel/RPMS/xulrunner-python-1.9.2-4.20100111hg.fc14.armv5tel.rpm
...OK
Retrieving http://mock.laptop.org/repos/koji.dist-f14-armv5tel/RPMS/xz-libs-4.999.9-0.2.beta.20100401git.fc14.armv5tel.rpm
...OK
Retrieving http://mock.laptop.org/repos/koji.dist-f14-armv5tel/RPMS/yum-3.2.28-7.fc14.noarch.rpm
...OK
Retrieving http://mock.laptop.org/repos/koji.dist-f14-armv5tel/RPMS/yum-metadata-parser-1.1.4-2.fc14.armv5tel.rpm
...OK
Retrieving http://mock.laptop.org/repos/koji.dist-f14-armv5tel/RPMS/zenity-2.32.0-1.fc14.armv5tel.rpm
...OK
Retrieving http://mock.laptop.org/repos/koji.dist-f14-armv5tel/RPMS/zlib-1.2.5-2.fc14.armv5tel.rpm
...OK
error: not an rpm package
Traceback (most recent call last):
  File "/media/OOB/olpc-os-builder/modules/base/build.40.imagecreate.py",
line 53, in <module>
    sys.exit(main())
  File "/media/OOB/olpc-os-builder/modules/base/build.40.imagecreate.py",
line 37, in main
    creator.install()
  File "/usr/lib/python2.7/site-packages/imgcreate/creator.py", line
666, in install
    ayum.runInstall()
  File "/usr/lib/python2.7/site-packages/imgcreate/yuminst.py", line
199, in runInstall
    self.populateTs(keepold=0)
  File "/usr/lib/python2.7/site-packages/yum/depsolve.py", line 211,
in populateTs
    hdr = txmbr.po.returnHeaderFromPackage()
  File "/usr/lib/python2.7/site-packages/yum/packages.py", line 809,
in returnHeaderFromPackage
    hdr = rpmUtils.miscutils.hdrFromPackage(ts, rpmfile)
  File "/usr/lib/python2.7/site-packages/rpmUtils/miscutils.py", line
431, in hdrFromPackage
    raise rpmUtils.RpmUtilsError, "RPM Error opening Package"
rpmUtils.RpmUtilsError: RPM Error opening Package
 * Caught error, cleanup and then bail out.
 * Running part cleanup base cleanup.50.cleanup.sh...
 * Running part cleanup buildnr_from_file cleanup.50.write_buildnr.sh...
ERROR: Failure in BuildStage: module base, part
build.40.imagecreate.py, error code 1



While downloading, some of the rpm packages were html files (which is
a transient thing with fedora mirrors).



-bash-4.1# file */packages/*.rpm | grep -v RPM
koji.dist-f14-armv5tel-updates-11.3.1/packages/NetworkManager-gnome-0.8.4-2.git20110622.fc14.armv5tel.rpm:
 empty
koji.dist-f14-armv5tel-updates-11.3.1/packages/evince-2.32.0-4.fc14.armv5tel.rpm:
                          empty
koji.dist-f14-armv5tel-updates-11.3.1/packages/iw-0.9.22-1.fc14.1.armv5tel.rpm:
                            empty
koji.dist-f14-armv5tel-updates-11.3.1/packages/libbonoboui-2.24.4-1.fc14.armv5tel.rpm:
                     empty
koji.dist-f14-armv5tel-updates-11.3.1/packages/libss-1.41.12-6.fc14.armv5tel.rpm:
                          empty
koji.dist-f14-armv5tel-updates-11.3.1/packages/libwmf-lite-0.2.8.4-27.fc14.armv5tel.rpm:
                   empty
koji.dist-f14-armv5tel-updates-11.3.1/packages/logrotate-3.7.9-4.fc14.armv5tel.rpm:
                        empty
koji.dist-f14-armv5tel/packages/coreutils-libs-8.5-7.fc14.armv5tel.rpm:
                                    empty
koji.dist-f14-armv5tel/packages/desktop-file-utils-0.16-1.fc14.armv5tel.rpm:
                               empty
koji.dist-f14-armv5tel/packages/fipscheck-1.2.0-4.fc13.armv5tel.rpm:
                                     empty
koji.dist-f14-armv5tel/packages/gnome-vfs2-2.24.4-1.fc14.armv5tel.rpm:
                                     empty
koji.dist-f14-armv5tel/packages/ilmbase-1.0.2-2.fc14.armv5tel.rpm:
                                     empty
koji.dist-f14-armv5tel/packages/jack-audio-connection-kit-1.9.7-2.fc14.armv5tel.rpm:
                       empty
koji.dist-f14-armv5tel/packages/jasper-libs-1.900.1-16.fc14.armv5tel.rpm:
                                  empty
koji.dist-f14-armv5tel/packages/kacst-fonts-common-2.0-7.fc14.noarch.rpm:
                                  empty
koji.dist-f14-armv5tel/packages/keyutils-libs-1.2-6.fc12.armv5tel.rpm:
                                     empty
koji.dist-f14-armv5tel/packages/perl-threads-1.81-1.fc14.armv5tel.rpm:
                                     empty
koji.dist-f14-armv5tel/packages/rarian-compat-0.8.1-5.fc12.armv5tel.rpm:
                                   empty



I deleted these packages from the OOB cache and tried after a while
and it worked. However, shouldn't we check for rpm package integrity
(content-type) while downloading via pycurl/libcurl and move to
another mirror in case of corruption or inconsistent file-type?

Regards,
Anish Mangal | anish at activitycentral.com
Dextrose Project Manager

P.S. Thanks to martin_langhoff and jnettlnet with help in debugging on
#olpc-devel



More information about the Devel mailing list