[Spacewalk-list] Uniqueness Constraint Violation in Spacewalk Repo Sync with Errata (Fedora 14)

Jan Pazdziora jpazdziora at redhat.com
Wed Jul 20 20:56:23 UTC 2011


On Tue, Apr 26, 2011 at 02:05:01PM -0400, Trevor T Kates wrote:
> List:
> 
> Spacewalk Ver: 1.4
> OS Ver: CentOS 5.6
> 
> I'm getting the following traceback when attempting to repo sync the Fedora 14 updates
> channel in my Spacewalk server. The channel was initially unpopulated. Is there a
> possible incorrect configuration on my end that is causing this? Thanks for the
> assistance.
> 
> Traceback (most recent call last):
>   File "/usr/bin/spacewalk-repo-sync", line 69, in ?
>     sys.exit(abs(main() or 0))
>   File "/usr/bin/spacewalk-repo-sync", line 63, in main
>     sync.main()
>   File "/usr/lib/python2.4/site-packages/spacewalk/satellite_tools/reposync.py", line 110, in main
>     self.import_updates(plugin, url)
>   File "/usr/lib/python2.4/site-packages/spacewalk/satellite_tools/reposync.py", line 145, in import_updates
>     self.upload_updates(notices)
>   File "/usr/lib/python2.4/site-packages/spacewalk/satellite_tools/reposync.py", line 305, in upload_updates
>     importer.run()
>   File "/usr/lib/python2.4/site-packages/spacewalk/server/importlib/importLib.py", line 622, in run
>     self.submit()
>   File "/usr/lib/python2.4/site-packages/spacewalk/server/importlib/errataImport.py", line 196, in submit
>     dml = self.backend.processErrata(self.batch)
>   File "/usr/lib/python2.4/site-packages/spacewalk/server/importlib/backend.py", line 682, in processErrata
>     transactional=1)
>   File "/usr/lib/python2.4/site-packages/spacewalk/server/importlib/backend.py", line 1364, in __processObjectCollection
>     return self.__processObjectCollection__(objColl, parentTable, childDict, **kwargs)
>   File "/usr/lib/python2.4/site-packages/spacewalk/server/importlib/backend.py", line 1534, in __processObjectCollection__
>     return self.__doDML(dml)
>   File "/usr/lib/python2.4/site-packages/spacewalk/server/importlib/backend.py", line 1642, in __doDML
>     self.__doInsert(dml.insert, dml.tables)
>   File "/usr/lib/python2.4/site-packages/spacewalk/server/importlib/backend.py", line 1651, in __doInsert
>     raise rhnFault(54, str(e[1]), explain=0)
> spacewalk.common.rhnException.rhnFault: (54, '904', '\n     Package Upload Failed due to uniqueness constraint violation.\n     Make sure the package does not have any duplicate dependencies or\n     does not already exists on the server\n     ')
> 

I suspect the error message might be confusing/wrong -- the actual
SQL error might not be about uniqueness at all.

Could you please try to str(e) instead of str(e[1]) and see if you
get some more details?

-- 
Jan Pazdziora
Principal Software Engineer, Satellite Engineering, Red Hat




More information about the Spacewalk-list mailing list