Why does createrepo fail with MemoryError in Red Hat Enterprise Linux 6

Solution Unverified - Updated -

Issue

  • Why does createrepo fail with an abrt error of "MemoryError"?
Execute command : createrepo --update --verbose --database --outputdir /exports/myrepo --pkglist /exports/pkglist.txt --cachedir /exports/cache /exports/myrepo
  • Produces the following output:
backtrace: 
:packages.py:1218:xml_dump_filelists_metadata:MemoryError 
: 
: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

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In