Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 236651 - pup crash Cannot find a valid baseurl for repo: development
Summary: pup crash Cannot find a valid baseurl for rep...
Alias: None
Product: Fedora
Classification: Fedora
Component: pirut
Version: rawhide
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Jeremy Katz
QA Contact:
Depends On:
Blocks: FC7Blocker
TreeView+ depends on / blocked
Reported: 2007-04-16 23:09 UTC by Ed Avis
Modified: 2007-11-30 22:12 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2007-05-03 02:23:12 UTC

Attachments (Terms of Use)

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,

Component: Software Updater
Summary: TB34bf4d7c Cannot find a valid baseurl
for repo: development

Traceback (most recent call last):
  File "/usr/sbin/pup", line 647, in <module>
  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/", line 123, in __init__
  File "/usr/lib/python2.5/site-packages/pirut/", line 221, in reset
  File "/usr/lib/python2.5/site-packages/yum/", line 295, in closeRpmDB
    self.comps = None
  File "/usr/lib/python2.5/site-packages/yum/", line 513, in <lambda>
    fset=lambda self, value: self._setGroups(value),
  File "/usr/lib/python2.5/site-packages/yum/", line 438, in _setGroups
    for repo in self.repos.listGroupsEnabled():
  File "/usr/lib/python2.5/site-packages/yum/", line 493, in <lambda>
    repos = property(fget=lambda self: self._getRepos(),
  File "/usr/lib/python2.5/site-packages/yum/", line 335, in _getRepos
    repo.setup(self.conf.cache, self.mediagrabber)
  File "/usr/lib/python2.5/site-packages/yum/", line 585, in setup
  File "/usr/lib/python2.5/site-packages/yum/", line 427, in baseurlSetup
  File "/usr/lib/python2.5/site-packages/yum/", line 312, in check
    'Cannot find a valid baseurl for repo: %s' %
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

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

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

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