Bug 1121393

Summary: [abrt] yumex: __init__.py:461:getReposFromConfigFile:ConfigError: File contains no section headers.
Product: [Fedora] Fedora Reporter: Shankar <shankar.s99339>
Component: yumexAssignee: Tim Lauridsen <tim.lauridsen>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: tim.lauridsen
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/fa0b183678103fe70b3954185a38a7e2527f7b71
Whiteboard: abrt_hash:225731efd3267c5259b3168fbfc8a638aff65522
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-21 08:18:42 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 Shankar 2014-07-20 11:26:10 UTC
Version-Release number of selected component:
yumex-3.0.15-1.fc20

Additional info:
reporter:       libreport-2.2.2
cmdline:        /usr/bin/python -E /usr/share/yumex/yum_childtask.py 2 True False /etc/yum.conf
dso_list:       yum-3.4.3-152.fc20.noarch
executable:     /usr/share/yumex/yum_childtask.py
kernel:         3.15.5-200.fc20.i686+PAE
runlevel:       N 5
type:           Python
uid:            1000

Truncated backtrace:
__init__.py:461: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/share/yumex/yum_childtask.py", line 63, in <module>
    my = YumServer(debuglevel, plugins, offline, repos, yum_conf)
  File "/usr/lib/python2.7/site-packages/yumexbackend/yum_server.py", line 207, in __init__
    self.yumbase # init the YumBase attribute
  File "/usr/lib/python2.7/site-packages/yumexbackend/yum_server.py", line 231, in yumbase
    yumbase.repos.setProgressBar(self.dnlCallback)
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1078, in <lambda>
    repos = property(fget=lambda self: self._getRepos(),
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 702, in _getRepos
    self.getReposFromConfig()
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 575, in getReposFromConfig
    self.getReposFromConfigFile(repofn, repo_age=thisrepo_age)
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 461, 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 0x931bf6c>
parser: <iniparse.compat.RawConfigParser object at 0x9321ecc>
repo_age: 1405847593
validate: None
self: <yumexbackend.yum_server.YumexYumBase object at 0x92fe54c>

Comment 1 Shankar 2014-07-20 11:26:13 UTC
Created attachment 919373 [details]
File: backtrace

Comment 2 Shankar 2014-07-20 11:26:15 UTC
Created attachment 919374 [details]
File: environ

Comment 3 Tim Lauridsen 2014-07-21 08:18:42 UTC
the /etc/yum.repos.d/fedorautils.repo is not at valid .ini file, som it makes yum blow up.

fix the file at the problem will go away.