mock fails with error "DEBUG: error: python callback <bound method RPMTransaction.callback of <yum.rpmtrans.RPMTransaction instance at 0x3974200>> failed, aborting!"

Solution Verified - Updated -

Issue

  • mock fails with error:
DEBUG: Traceback (most recent call last):
DEBUG:   File "/usr/lib/python2.6/site-packages/yum/rpmtrans.py", line 407, in callback
DEBUG:   File "/usr/lib/python2.6/site-packages/yum/rpmtrans.py", line 511, in _unInstStop
DEBUG:   File "/usr/lib/python2.6/site-packages/yum/rpmtrans.py", line 258, in _scriptout
DEBUG:   File "/usr/lib/python2.6/site-packages/yum/history.py", line 972, in log_scriptlet_output
DEBUG:   File "/usr/lib/python2.6/site-packages/yum/sqlutils.py", line 168, in executeSQLQmark
DEBUG: sqlite3.OperationalError: unable to open database file
DEBUG: error: python callback <bound method RPMTransaction.callback of <yum.rpmtrans.RPMTransaction instance at 0x3974200>> failed, aborting!
DEBUG: /var/lib/mock/rhel/root/var/lib/rpm: No such file or directory
DEBUG: Child return code was: 1

Environment

  • Red Hat Enterprise Linux 6.x

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