Bug 180047

Summary: IndexError: list index out of range
Product: [Fedora] Fedora Reporter: Thilo Pfennig <tpfennig>
Component: yumexAssignee: Tim Lauridsen <tim.lauridsen>
Status: CLOSED CANTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 4CC: extras-qa
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-02-10 07:32:09 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:

Description Thilo Pfennig 2006-02-05 02:04:34 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; de-DE; rv:1.7.12) Gecko/20060202 Fedora/1.0.7-1.2.fc4 Firefox/1.0.7

Description of problem:
Yumex stops processing while installing but gives no error messages besides the output (see below)

Version-Release number of selected component (if applicable):
yumex-0.44-1.0.fc4

How reproducible:
Didn't try

Steps to Reproduce:
1. install packages

  

Actual Results:  yumex stops but does not crash

Expected Results:  install everything or at least of there is a problem display what went wrong or tell me that yumex has stopped working.

Additional info:

Traceback (most recent call last):
  File "/usr/share/yumex/yumex.py", line 223, in on_button
    self.action.install_packages()
  File "/usr/share/yumex/yumexClasses/yumexBase.py", line 1003, in install_packages
    rc, msg = self.yw.install( sel)
  File "/usr/share/yumex/yumexClasses/yumexBase.py", line 466, in install
    return self.buildTransaction() 
  File "/usr/lib/python2.4/site-packages/PIL/__init__.py", line 343, in buildTransaction
    
  File "depsolve.py", line 211, in resolveDeps
  File "depsolve.py", line 169, in populateTs
  File "/usr/lib/python2.4/site-packages/PIL/__init__.py", line 685, in downloadHeader
    
  File "repos.py", line 624, in get
  File "/usr/lib/python2.4/site-packages/urlgrabber/mirror.py", line 414, in urlgrab
    return self._mirror_try(func, url, kw)
  File "/usr/lib/python2.4/site-packages/urlgrabber/mirror.py", line 392, in _mirror_try
    mirrorchoice = self._get_mirror(gr)
  File "/usr/lib/python2.4/site-packages/urlgrabber/mirror.py", line 290, in _get_mirror
    return gr.mirrors[gr._next]
IndexError: list index out of range

I also have a screenshot if needed.

Comment 1 Tim Lauridsen 2006-02-06 09:56:04 UTC
I look like urlgrabber runs out of mirrors to try when downloading headers.
What kind of mirrordection are you running ? (default,fastest,best).
What package are you trying to install, when the error occours.
Try to 'Tools->Clean Yum Metadata' and try again.

Comment 2 Thilo Pfennig 2006-02-06 12:43:53 UTC
I had "best" for mirror detection. I do not know exactly what the list of
packages was.  If I clean up metadata I get 
"Traceback (most recent call last):
  File "/usr/share/yumex/yumex.py", line 308, in on_menu
    self.errorlog(0,_('%s was not deleted') % item)
AttributeError: MainApplication instance has no attribute 'errorlog'
"

Comment 3 Tim Lauridsen 2006-02-10 07:31:28 UTC
> "Traceback (most recent call last):
>   File "/usr/share/yumex/yumex.py", line 308, in on_menu
>     self.errorlog(0,_('%s was not deleted') % item)
> AttributeError: MainApplication instance has no attribute 'errorlog'
> "

I have made a release 0.44.4 there fixes this traceback.

The IndexError is a problem in UrlGrabber, i hope it will be fixed soon.

https://lists.dulug.duke.edu/pipermail/yum-devel/2006-February/001911.html