Bug 707422 - misc.stat_f doesn't ignore ENOTDIR ... reading attributes for packages with no yumdb entries == fail
Summary: misc.stat_f doesn't ignore ENOTDIR ... reading attributes for packages with n...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: yum
Version: 15
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Fedora Packaging Toolset Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: anaconda_trace_hash:07c06bb655901b4de...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-25 01:38 UTC by Tom Weniger
Modified: 2014-01-21 23:18 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-07 17:57:33 UTC
Type: ---


Attachments (Terms of Use)
Attached traceback automatically from anaconda. (467.11 KB, text/plain)
2011-05-25 01:38 UTC, Tom Weniger
no flags Details

Description Tom Weniger 2011-05-25 01:38:27 UTC
The following was filed automatically by anaconda:
anaconda 15.31 exception report
Traceback (most recent call first):
  File "/usr/lib/python2.7/site-packages/yum/misc.py", line 943, in stat_f
    return os.stat(filename)
  File "/usr/lib/python2.7/site-packages/yum/rpmsack.py", line 1780, in _read
    info = misc.stat_f(fn)
  File "/usr/lib/python2.7/site-packages/yum/rpmsack.py", line 1863, in get
    res = self._read(attr)
  File "/usr/lib/python2.7/site-packages/yum/transactioninfo.py", line 765, in __init__
    po.yumdb_info.get('from_repo')
  File "/usr/lib/python2.7/site-packages/yum/transactioninfo.py", line 532, in addObsoleted
    txmbr = TransactionMember(po)
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 3582, in update
    self.tsInfo.addObsoleted(installed_pkg, obsoleting_pkg)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/yuminstall.py", line 1482, in doPostSelection
    self.ayum.update()
  File "/usr/lib64/python2.7/site-packages/pyanaconda/backend.py", line 199, in doPostSelection
    return anaconda.backend.doPostSelection(anaconda)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/dispatch.py", line 211, in moveStep
    rc = stepFunc(self.anaconda)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/dispatch.py", line 130, in gotoNext
    self.moveStep()
  File "/usr/lib64/python2.7/site-packages/pyanaconda/gui.py", line 1257, in nextClicked
    self.anaconda.dispatch.gotoNext()
OSError: [Errno 20] Not a directory: '/mnt/sysimage/var/lib/yum/yumdb/g/96759bc254e621695f3fb26b553b371db12abff8-gdm-user-switch-applet-2.32.1-2.fc14-x86_64/from_repo'

Comment 1 Tom Weniger 2011-05-25 01:38:33 UTC
Created attachment 500720 [details]
Attached traceback automatically from anaconda.

Comment 2 James Antill 2011-05-25 19:09:30 UTC
How reproducible is this? I'm mainly curious how you hit it, but I don't have 666 BZs :).

Comment 3 Tom Weniger 2011-05-25 19:35:48 UTC
(In reply to comment #2)
> How reproducible is this? I'm mainly curious how you hit it, but I don't have
> 666 BZs :).

I was trying to preupgrade my laptop (HP dv6405ca) when I ran into this bug. 
The first time occurred when I performed #yum install preupgrade.
The second time I saw the bug is when I tried to perform an upgrade from the DVD.

Comment 4 James Antill 2011-05-26 13:58:20 UTC
 Ok, I guess you just have a few packages without any yumdb data ... and that's pretty uncommon now.

 You can run:

yumdb sync

...to try and fill in the yumdb with known data. This may not be enough though, so worst case you can do:

yumdb set hack abcd '*'

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

Comment 6 Fedora End Of Life 2012-08-07 17:57:36 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


Note You need to log in before you can comment on or make changes to this bug.