[Spacewalk-list] InvalidPackageError during satellite-sync

Joshua Roys joshua.roys at gtri.gatech.edu
Tue Sep 29 12:09:12 UTC 2009


On 09/29/2009 05:44 AM, Marcus Moeller wrote:
> Hi,
>
> while trying to import packages to a channel from a yum repository, I
> get errors like this:
>
> Exception Handler Information
> Traceback (most recent call last):
>    File "/usr/share/rhn/satellite_tools/reposync.py", line 157, in
> import_packages
>      self.associate_package(pack, md5)
>    File "/usr/share/rhn/satellite_tools/reposync.py", line 199, in
> associate_package
>      self._importer_run(package, caller, backend)
>    File "/usr/share/rhn/satellite_tools/reposync.py", line 207, in _importer_run
>      importer.run()
>    File "/usr/share/rhn/server/importlib/importLib.py", line 628, in run
>      self.submit()
>    File "/usr/share/rhn/server/importlib/packageImport.py", line 114, in submit
>      self.backend.lookupPackages(self.batch)
>    File "/usr/share/rhn/server/importlib/backend.py", line 519, in lookupPackages
>      self.__lookupObjectCollection(packages, 'rhnPackage', ignore_missing)
>    File "/usr/share/rhn/server/importlib/backend.py", line 1771, in
> __lookupObjectCollection
>      raise InvalidPackageError(object, "Could not find object %s in
> table %s" % (object, tableName))
> InvalidPackageError: Could not find object
> [<server.importlib.importLib.IncompletePackage instance;
> attributes={'package_size': None, 'package_arch_id': 100, 'name':
> 'ssl_bridge', 'md5sum': 'e43e7a20219ef33ca3b3ab68310c21bb', 'org_id':
> '1', 'package_id': None, 'channels': {507:
> 'centos-5-x86_64-tools-os'}, 'nevra_id': 88689, 'epoch': '',
> 'version': '1.9.3', 'name_id': 17547, 'last_modified': None,
> 'release': '1.el5', 'arch': 'noarch', 'evr_id': 32930}] in table
> rhnPackage
>
> but it seems that listed packages have been pushed correctly to the channel.
>
> Best Regards
> Marcus
>
> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list

Hello,

You need to apply this patch from master/0.7 devel - it missed its way 
in to 0.6 :)
http://git.fedorahosted.org/git/spacewalk.git/?p=spacewalk.git;a=commitdiff;h=00265ecc8795780e511234ac28819c0c7e708ce0

You may also get something like:
org.hibernate.StaleStateException: Batch update returned unexpected row 
count from update [0]; actual row count: 0; expected: 1
Which, if I recall, was fixed by:
http://git.fedorahosted.org/git/spacewalk.git/?p=spacewalk.git;a=commitdiff;h=d658b53c2bac8b44b7e061faf35b74090ff30c06
and
http://git.fedorahosted.org/git/spacewalk.git/?p=spacewalk.git;a=commitdiff;h=62180fea3023e62eb321e9884947169a4dc28c1a

Good luck,

Joshua Roys




More information about the Spacewalk-list mailing list