Bug 236651

Summary: pup crash yumRepo.py:312:check:RepoError: Cannot find a valid baseurl for repo: development
Product: [Fedora] Fedora Reporter: Ed Avis <ed>
Component: pirutAssignee: Jeremy Katz <katzj>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-05-03 02:23:12 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:
Bug Depends On:    
Bug Blocks: 150226    

Description Ed Avis 2007-04-16 23:09:51 UTC
This is a bug against pup, but for whatever reason there is no component 'pup'
in the dropdown list on the Bugzilla page, and it doesn't let you type in your
own component name.

This bug is against Fedora 7 test 2 - again, there is no such version on the
'Fedora Core' bug reporting page, and no reporting page for just 'Fedora', so I
chose the closest thing.

Anyway, I started the computer and logged in.  The normal GNOME desktop appeared
but with a message in the top left saying two packages needed updating.  I
pressed the button for more details but then a crash notification box appeared,
saying

Component: Software Updater
Summary: TB34bf4d7c yumRepo.py:312:check:RepoError: Cannot find a valid baseurl
for repo: development

Traceback (most recent call last):
  File "/usr/sbin/pup", line 647, in <module>
    main()
  File "/usr/sbin/pup", line 640, in main
    pup = PackageUpdater(not options.autoapply)
  File "/usr/sbin/pup", line 88, in __init__
    GraphicalYumBase.__init__(self, False)
  File "/usr/lib/python2.5/site-packages/pirut/__init__.py", line 123, in __init__
    self.reset()
  File "/usr/lib/python2.5/site-packages/pirut/__init__.py", line 221, in reset
    self.closeRpmDB()
  File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 295, in closeRpmDB
    self.comps = None
  File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 513, in <lambda>
    fset=lambda self, value: self._setGroups(value),
  File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 438, in _setGroups
    for repo in self.repos.listGroupsEnabled():
  File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 493, in <lambda>
    repos = property(fget=lambda self: self._getRepos(),
  File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 335, in _getRepos
    repo.setup(self.conf.cache, self.mediagrabber)
  File "/usr/lib/python2.5/site-packages/yum/yumRepo.py", line 585, in setup
    self.baseurlSetup()
  File "/usr/lib/python2.5/site-packages/yum/yumRepo.py", line 427, in baseurlSetup
    self.check()
  File "/usr/lib/python2.5/site-packages/yum/yumRepo.py", line 312, in check
    'Cannot find a valid baseurl for repo: %s' % self.id
RepoError: Cannot find a valid baseurl for repo: development

Local variables in innermost frame:
self: development


As far as I know I haven't changed the package configuration since I did a clean
install of Fedora 7 test 2.  The updating thing has worked up to now, I believe.

Comment 1 Jeremy Katz 2007-04-19 20:46:51 UTC
What versions of pirut and yum do you have installed?

Comment 2 Ed Avis 2007-04-19 21:49:53 UTC
% rpm -q pirut yum
pirut-1.3.6-1.fc7
yum-3.1.6-1.fc7


Comment 3 Ed Avis 2007-04-21 19:55:04 UTC
As far as I can tell, this is caused by a network failure of some kind so yum
cannot get the mirrorlist from the Fedora website.  You can reproduce it with

% su
# export http_proxy=http://nonexistent:8080
# pup
(and press yes to start downloading updates)

Expected behaviour: an error message box appears saying that a particular URI
could not be fetched, and ideally some reason why.

Actual behaviour: a long stack trace like the above with 'cannot find a valid
baseurl'.

Comment 4 Jeremy Katz 2007-05-03 02:23:12 UTC
This should be getting handled better with yum 3.1.7