Bug 713345

Summary: pkgtag DB decompression tracebacks, when caching is on
Product: [Fedora] Fedora Reporter: Eduardo Villagrán Morales <evillagr>
Component: yumAssignee: Fedora Packaging Toolset Team <packaging-team>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 15CC: ffesti, james.antill, maxamillion, pmatilai, tla
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Unspecified   
Whiteboard: abrt_hash:6274a34c06f575458039d986a2c5ef767d0ed5f2
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-07 17:57:55 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Eduardo Villagrán Morales 2011-06-15 03:20:08 UTC
abrt version: 2.0.1
architecture:   i686
cmdline:        
component:      yum
executable:     /usr/bin/yum
kernel:         2.6.38.7-30.fc15.i686
os_release:     Fedora release 15 (Lovelock)
package:        yum-3.2.29-6.fc15
reason:         pkgtag_db.py:54:__init__:OperationalError: unable to open database file
time:           Tue Jun 14 23:16:22 2011
uid:            500
username:       eduardo

backtrace:
:pkgtag_db.py:54:__init__:OperationalError: unable to open database file
:
:Traceback (most recent call last):
:  File "/usr/bin/yum", line 29, in <module>
:    yummain.user_main(sys.argv[1:], exit_code=True)
:  File "/usr/share/yum-cli/yummain.py", line 267, in user_main
:    errcode = main(args)
:  File "/usr/share/yum-cli/yummain.py", line 120, in main
:    result, resultmsgs = base.doCommands()
:  File "/usr/share/yum-cli/cli.py", line 432, in doCommands
:    return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)
:  File "/usr/share/yum-cli/yumcommands.py", line 684, in doCommand
:    return base.search(extcmds)
:  File "/usr/share/yum-cli/cli.py", line 994, in search
:    for (po, keys, matched_value) in matching:
:  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 2482, in searchGenerator
:    tmpres = self.searchPackageTags(real_crit_lower)
:  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 2550, in searchPackageTags
:    res = self.pkgtags.search_tags(c)
:  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 891, in <lambda>
:    pkgtags = property(fget=lambda self: self._getTags(),
:  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 836, in _getTags
:    self._tags.add(repo.id, tag_sqlite)
:  File "/usr/lib/python2.7/site-packages/yum/pkgtag_db.py", line 110, in add
:    dbobj = PackageTagDB(repoid, sqlite_file)
:  File "/usr/lib/python2.7/site-packages/yum/pkgtag_db.py", line 54, in __init__
:    self._conn = sqlite.connect(sqlite_file)
:OperationalError: unable to open database file
:
:Local variables in innermost frame:
:self: <yum.pkgtag_db.PackageTagDB object at 0xac2470c>
:repoid: 'updates'
:sqlite_file: '/var/cache/yum/i386/15/updates/gen/pkgtags.sqlite'

comment:
:1. Search a package using --cacheonly option
:2. Crash

Comment 1 James Antill 2011-06-15 14:09:55 UTC
 To reproduce:

% sudo rm -f /var/cache/yum/x86_64/15/updates/gen/pkgtags.sqlite
% yum -C search yum
[... snip above traceback ...]


 For another error, or two:

% sudo rm -f /var/cache/yum/x86_64/15/updates/gen/pkgtags.sqlite
% sudo yum -C search yum
Loaded plugins: PT, aliases, auto-update-debuginfo, keys, noop, ps, security,
              : tmprepo, updater, verify, versionlock
Error: no such table: packagetags
[1]    8971 exit 1     sudo yum -C search yum
% l /var/cache/yum/x86_64/15/updates/gen/pkgtags.sqlite
0 /var/cache/yum/x86_64/15/updates/gen/pkgtags.sqlite

Comment 2 Fedora Admin XMLRPC Client 2012-04-27 15:39:30 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 3 Fedora End Of Life 2012-08-07 17:57:59 UTC
This message is a notice that Fedora 15 is now at end of life. Fedora
has stopped maintaining and issuing updates for Fedora 15. It is
Fedora's policy to close all bug reports from releases that are no
longer maintained. At this time, all open bugs with a Fedora 'version'
of '15' have been closed as WONTFIX.

(Please note: Our normal process is to give advanced warning of this
occurring, but we forgot to do that. A thousand apologies.)

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, feel free to reopen
this bug and simply change the 'version' to a later Fedora version.

Bug Reporter: Thank you for reporting this issue and we are sorry that
we were unable to fix it before Fedora 15 reached end of life. If you
would still like to see this bug fixed and are able to reproduce it
against a later version of Fedora, you are encouraged to click on
"Clone This Bug" (top right of this page) and open it against that
version of Fedora.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

The process we are following is described here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping