Red Hat Bugzilla – Bug 863605
[abrt] dnf-0.2.12 - RuntimeException: load_yum_repo() failed.
Last modified: 2014-09-30 19:40:43 EDT
Version-Release number of selected component:
libreport version: 2.0.14
cmdline: /usr/bin/python /usr/bin/dnf makecache
:__init__.py:235:_add_repo_to_hawkey:RuntimeException: load_yum_repo() failed.
:Traceback (most recent call last):
: File "/usr/bin/dnf", line 35, in <module>
: yummain.user_main(sys.argv[1:], exit_code=True)
: File "/usr/lib/python2.7/site-packages/dnf/cli/yummain.py", line 316, in user_main
: errcode = main(args)
: File "/usr/lib/python2.7/site-packages/dnf/cli/yummain.py", line 140, in main
: result, resultmsgs = base.doCommands()
: File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 481, in doCommands
: return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)
: File "/usr/lib/python2.7/site-packages/dnf/cli/yumcommands.py", line 972, in doCommand
: sack = base.sack # triggers metadata sync
: File "/usr/lib/python2.7/site-packages/dnf/yum/__init__.py", line 252, in sack
: File "/usr/lib/python2.7/site-packages/dnf/yum/__init__.py", line 235, in _add_repo_to_hawkey
: self._sack.load_yum_repo(repo, build_cache=True, load_filelists=True)
:RuntimeException: load_yum_repo() failed.
:Local variables in innermost frame:
:repo: <_hawkey.Repo object at 0x7f0c4807d240>
:self: <dnf.cli.cli.YumBaseCli object at 0x201b3d0>
:yum_repo: <dnf.yum.yumRepo.YumRepository object at 0x2034e10>
Created attachment 622580 [details]
can you please give some information about how this bug gets triggered? Is it 'dnf makecache' run as root manually, from the hourly cron job or as a normal user? Did you experiment with some settings or permissions on DNF's cache directory?
i did nothing manually with a normal user account or with the root credentials. May be the crash is triggered by the system's cron job.
Looking at the IO error handling code in hawkey there is currently little chance of debugging this directly. The steps I'll take into a future version to find out more are:
- improve the logging code for repo loading
- add abrt configuration file so hawkey.log is attached automatically to the abrt bugzillas.
Then we'll wait for someone to hit this again.
(In reply to comment #4)
> - improve the logging code for repo loading
Hawkey commit 93c0f3a / hawkey-0.2.12
Discovered related bug 864014 while working on the ABRT side of things.
(In reply to comment #4)
> - add abrt configuration file so hawkey.log is attached automatically to the
> abrt bugzillas.
Taken care of by dnf commit ba9dc87 / dnf-0.2.14
Hi Abhay, are you still seeing this?
(In reply to comment #8)
> Hi Abhay, are you still seeing this?
Hi Ales, i don't see this bug anymore.
I am closing this as WORKSFORME, as I am unable to reproduce this. Please reopen if you hit this again.