Bug 1046161

Summary: [abrt] yum-utils: __init__.py:460:getReposFromConfigFile:ConfigError: File contains no section headers.
Product: [Fedora] Fedora Reporter: Wouter <heyveld>
Component: yum-utilsAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: admiller, packaging-team-maint, tim.lauridsen, zpavlas
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/51d5f753ac5f386eb4c18c5111ec1e22877faf93
Whiteboard: abrt_hash:910c7a36d2538167c4d6e4b6c09b2722e6b465d3
Fixed In Version: yum-utils-1.1.31-20.fc20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-12 05:01:16 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

Description Wouter 2013-12-23 21:39:50 UTC
Version-Release number of selected component:
yum-utils-1.1.31-19.fc20

Additional info:
reporter:       libreport-2.1.10
cmdline:        /usr/bin/python -tt /usr/bin/yum-config-manager --save --setopt=rpmfusion-free.skip_if_unavailable=1 --setopt=Rpmfusion-free.skip_if_unavailable=1
dso_list:       yum-3.4.3-122.fc20.noarch
executable:     /usr/bin/yum-config-manager
kernel:         3.12.5-302.fc20.x86_64
runlevel:       N 5
type:           Python
uid:            0

Truncated backtrace:
__init__.py:460:getReposFromConfigFile:ConfigError: File contains no section headers.
file: file://///etc/yum.repos.d/fedorautils.repo, line: 1
'<html>\r\n'

Traceback (most recent call last):
  File "/usr/bin/yum-config-manager", line 169, in <module>
    repos = yb.repos.listEnabled()
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1067, in <lambda>
    repos = property(fget=lambda self: self._getRepos(),
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 692, in _getRepos
    self.getReposFromConfig()
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 571, in getReposFromConfig
    self.getReposFromConfigFile(repofn, repo_age=thisrepo_age)
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 460, in getReposFromConfigFile
    raise Errors.ConfigError(exception2msg(e))
ConfigError: File contains no section headers.
file: file://///etc/yum.repos.d/fedorautils.repo, line: 1
'<html>\r\n'

Local variables in innermost frame:
e: File contains no section headers.
file: file://///etc/yum.repos.d/fedorautils.repo, line: 1
'<html>\r\n'
repofn: '///etc/yum.repos.d/fedorautils.repo'
confpp_obj: <yum.parser.ConfigPreProcessor instance at 0x28e5638>
parser: <iniparse.compat.RawConfigParser object at 0x28ea210>
repo_age: 1387832932
validate: None
self: <utils.YumUtilBase object at 0x275b1d0>

Comment 1 Wouter 2013-12-23 21:39:54 UTC
Created attachment 840960 [details]
File: backtrace

Comment 2 Wouter 2013-12-23 21:39:56 UTC
Created attachment 840961 [details]
File: environ

Comment 3 Zdeněk Pavlas 2014-01-08 16:57:09 UTC
Your /etc/yum.repos.d/fedorautils.repo file is invalid, that's the root cause.
Yum would complain too, just without the traceback.  I'll fix this in yum-config-manager.

Comment 4 Fedora Update System 2014-01-10 11:09:11 UTC
yum-utils-1.1.31-20.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/yum-utils-1.1.31-20.fc20

Comment 5 Fedora Update System 2014-01-11 08:47:03 UTC
Package yum-utils-1.1.31-20.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing yum-utils-1.1.31-20.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-0652/yum-utils-1.1.31-20.fc20
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2014-01-12 05:01:16 UTC
yum-utils-1.1.31-20.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.