createrepo is failing with yum.Errors.RepoError: no such table: changelog

Solution Verified - Updated -

Issue

  • We are encountering the following traceback when trying to update our custom yum repo:
# createrepo --update -g /var/repo/custom_prod/6Server/yum-groups.xml /var/repo/custom_prod/6Server >>/tmp/repoupdate.log
Traceback (most recent call last):
  File "/usr/share/createrepo/genpkgmetadata.py", line 291, in <module>
    main(sys.argv[1:])
  File "/usr/share/createrepo/genpkgmetadata.py", line 265, in main
    mdgen.doPkgMetadata()
  File "/usr/lib/python2.6/site-packages/createrepo/__init__.py", line 412, in doPkgMetadata
    self.writeMetadataDocs(packages)
  File "/usr/lib/python2.6/site-packages/createrepo/__init__.py", line 568, in writeMetadataDocs
    self.otherfile.write(old_po.xml_dump_other_metadata())
  File "/usr/lib/python2.6/site-packages/yum/packages.py", line 1223, in xml_dump_other_metadata
    msg += "%s\n</package>\n" % misc.to_unicode(self._dump_changelog(clog_limit))
  File "/usr/lib/python2.6/site-packages/yum/packages.py", line 1182, in _dump_changelog
    if not self.changelog:
  File "/usr/lib/python2.6/site-packages/yum/packages.py", line 582, in <lambda>
    changelog = property(fget=lambda self: self.returnChangelog())
  File "/usr/lib/python2.6/site-packages/yum/sqlitesack.py", line 350, in returnChangelog
    self._loadChangelog()
  File "/usr/lib/python2.6/site-packages/yum/sqlitesack.py", line 328, in _loadChangelog
    (self.pkgId,))
  File "/usr/lib/python2.6/site-packages/yum/sqlitesack.py", line 55, in newFunc
    raise Errors.RepoError, str(e)
yum.Errors.RepoError: no such table: changelog

Environment

  • Red Hat Enterprise Linux 6.5

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