Bug 1031271 - [abrt] yum-3.4.3-54.fc18: misc.py:975:stat_f:OSError: [Errno 5] Input/output error: '/var/lib/yum/yumdb/l/41f8992e43ec601c38929dc44d3569f58e5df9ca-libreport-python-2.1.7-1.fc18-x86_64/from_repo'
Summary: [abrt] yum-3.4.3-54.fc18: misc.py:975:stat_f:OSError: [Errno 5] Input/output ...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: yum
Version: 18
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:3e9e2592db19fef951ce6008465...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-16 10:03 UTC by Shivam Gupta
Modified: 2013-11-18 09:06 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-11-18 09:06:09 UTC
Type: ---


Attachments (Terms of Use)
File: backtrace (2.34 KB, text/plain)
2013-11-16 10:03 UTC, Shivam Gupta
no flags Details
File: environ (3.16 KB, text/plain)
2013-11-16 10:04 UTC, Shivam Gupta
no flags Details

Description Shivam Gupta 2013-11-16 10:03:50 UTC
Version-Release number of selected component:
yum-3.4.3-54.fc18

Additional info:
reporter:       libreport-2.1.7
cmdline:        /usr/bin/python /usr/bin/yum update
executable:     /usr/bin/yum
kernel:         3.11.4-101.fc18.x86_64
runlevel:       N 5
type:           Python
uid:            0

Truncated backtrace:
misc.py:975:stat_f:OSError: [Errno 5] Input/output error: '/var/lib/yum/yumdb/l/41f8992e43ec601c38929dc44d3569f58e5df9ca-libreport-python-2.1.7-1.fc18-x86_64/from_repo'

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 319, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 144, in main
    result, resultmsgs = base.doCommands()
  File "/usr/share/yum-cli/cli.py", line 485, in doCommands
    return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)
  File "/usr/share/yum-cli/yumcommands.py", line 405, in doCommand
    return base.updatePkgs(extcmds, update_to=(basecmd == 'update-to'))
  File "/usr/share/yum-cli/cli.py", line 899, in updatePkgs
    self.update()
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 4768, in update
    tx_return.extend(self.update(po=new))
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 4969, in update
    available_pkg, updated_pkg)
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 4687, in _add_up_txmbr
    txmbr = self.tsInfo.addUpdate(upkg, ipkg)
  File "/usr/lib/python2.7/site-packages/yum/transactioninfo.py", line 507, in addUpdate
    self.add(txmbr)
  File "/usr/lib/python2.7/site-packages/yum/transactioninfo.py", line 277, in add
    self.addUpdated(oldpo, txmember.po)
  File "/usr/lib/python2.7/site-packages/yum/transactioninfo.py", line 532, in addUpdated
    txmbr = TransactionMember(po)
  File "/usr/lib/python2.7/site-packages/yum/transactioninfo.py", line 806, in __init__
    po.yumdb_info.get('from_repo')
  File "/usr/lib/python2.7/site-packages/yum/rpmsack.py", line 1853, in get
    res = self._read(attr)
  File "/usr/lib/python2.7/site-packages/yum/rpmsack.py", line 1768, in _read
    info = misc.stat_f(fn, ignore_EACCES=True)
  File "/usr/lib/python2.7/site-packages/yum/misc.py", line 975, in stat_f
    return os.stat(filename)
OSError: [Errno 5] Input/output error: '/var/lib/yum/yumdb/l/41f8992e43ec601c38929dc44d3569f58e5df9ca-libreport-python-2.1.7-1.fc18-x86_64/from_repo'

Local variables in innermost frame:
ignore_EACCES: True
e: OSError(5, 'Input/output error')
filename: '/var/lib/yum/yumdb/l/41f8992e43ec601c38929dc44d3569f58e5df9ca-libreport-python-2.1.7-1.fc18-x86_64/from_repo'

Comment 1 Shivam Gupta 2013-11-16 10:03:56 UTC
Created attachment 824855 [details]
File: backtrace

Comment 2 Shivam Gupta 2013-11-16 10:04:00 UTC
Created attachment 824856 [details]
File: environ

Comment 3 Zdeněk Pavlas 2013-11-18 09:06:09 UTC
stat() of existing file fails with I/O error, your FS is seriously broken. You can try fixing this with fsck. As a last resort, just "rm" the inacessible file. (/var/lib/yum/yumdb/ directory holds information such as from which repo and why packages were installed, but it's not essential for basic pkg management).


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