Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1052308

Summary: [abrt] yum-3.4.3-107.el7: sqlutils.py:166:executeSQLQmark:OperationalError: database is locked
Product: Red Hat Enterprise Linux 7 Reporter: Martin <mholec>
Component: yumAssignee: James Antill <james.antill>
Status: CLOSED INSUFFICIENT_DATA QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0CC: james.antill, tpelka, zpavlas
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:bb0c5704ce00d0499f6aeb8c857ee20b39f100ea
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-24 11:56:23 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: environ
none
File: sosreport.tar.xz none

Description Martin 2014-01-13 15:41:42 UTC
Version-Release number of selected component:
yum-3.4.3-107.el7

Additional info:
reporter:       libreport-2.1.7
cmdline:        /usr/bin/python /bin/yum distro-sync
executable:     /bin/yum
kernel:         3.10.0-67.el7.x86_64
runlevel:       N 5
type:           Python
uid:            0

Truncated backtrace:
sqlutils.py:166:executeSQLQmark:OperationalError: database is locked

Traceback (most recent call last):
  File "/bin/yum", line 29, in <module>
    yummain.user_main(sys.argv[1:], exit_code=True)
  File "/usr/share/yum-cli/yummain.py", line 355, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 261, in main
    return_code = base.doTransaction()
  File "/usr/share/yum-cli/cli.py", line 769, in doTransaction
    resultobject = self.runTransaction(cb=cb)
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1788, in runTransaction
    self.skipped_packages, rpmdb_problems, cmdline)
  File "/usr/lib/python2.7/site-packages/yum/history.py", line 950, in beg
    self._trans_rpmdb_problem(problem)
  File "/usr/lib/python2.7/site-packages/yum/history.py", line 873, in _trans_rpmdb_problem
    if cur is None or not self._update_db_file_2():
  File "/usr/lib/python2.7/site-packages/yum/history.py", line 1578, in _update_db_file_2
    executeSQL(cur, "PRAGMA table_info(trans_skip_pkgs)")
  File "/usr/lib/python2.7/site-packages/yum/sqlutils.py", line 166, in executeSQLQmark
    return cursor.execute(query)
OperationalError: database is locked

Local variables in innermost frame:
cursor: <sqlite3.Cursor object at 0x1536730>
query: 'PRAGMA table_info(trans_skip_pkgs)'
params: None

Comment 1 Martin 2014-01-13 15:41:50 UTC
Created attachment 849450 [details]
File: backtrace

Comment 2 Martin 2014-01-13 15:41:55 UTC
Created attachment 849451 [details]
File: environ

Comment 3 Martin 2014-01-13 15:42:03 UTC
Created attachment 849452 [details]
File: sosreport.tar.xz

Comment 5 James Antill 2014-01-22 16:19:59 UTC
Is this reproducible?

Are you running anything yum related at the same time?

Comment 6 Martin 2014-01-22 16:24:27 UTC
AFAIR I had unfinished transaction after machine crash.

Comment 7 Zdeněk Pavlas 2014-01-24 11:56:23 UTC
Not reproducible, and likely caused by a previous crash.  Please reopen if you can reproduce this bug.