Why does createrepo crash with the traceback error "MemoryError" With Nexus Professional ?

Solution Verified - Updated -

Issue

  • Running createrepo on large number of rpms crashes with the following traceback.
:Traceback (most recent call last): 
: File "/usr/share/createrepo/genpkgmetadata.py", line 292, in <module> 
: main(sys.argv[1:]) 
: File "/usr/share/createrepo/genpkgmetadata.py", line 266, in main 
: mdgen.doPkgMetadata() 
: File "/usr/lib/python2.6/site-packages/createrepo/__init__.py", line 413, in doPkgMetadata 
: self.writeMetadataDocs(packages) 
: File "/usr/lib/python2.6/site-packages/createrepo/__init__.py", line 568, in writeMetadataDocs 
: self.flfile.write(old_po.xml_dump_filelists_metadata()) 
: File "/usr/lib/python2.6/site-packages/yum/packages.py", line 1218, in xml_dump_filelists_metadata 
: msg += misc.to_unicode(self._dump_files()) 
:MemoryError

Environment

  • Red Hat Enterprise Linux 6
  • createrepo-0.9.9-22.el6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content