Bug 245885

Summary: pup crashes when you hit "apply updates"
Product: [Fedora] Fedora Reporter: Ian Laurie <ian.laurie>
Component: pirutAssignee: Jeremy Katz <katzj>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 6CC: james.antill
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-08-10 19:52:40 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 Ian Laurie 2007-06-27 06:50:09 UTC
Description of problem:
pup crashes when you hit "apply updates"

Version-Release number of selected component (if applicable):
pirut-1.2.8-1.fc6

How reproducible:
Always.

Steps to Reproduce:
1. Launch pup.
2. Try to apply updates when pidgin-2.0.2-3.fc6.1.i386 is selected.
3.
  
Actual results:
Crash (unhandled exception".

Expected results:
Should begin to check dependancies.

Additional info:

Component: Software Updater
Summary: TB0d6d4bb3 __init__.py:774:downloadHeader:RepoError: failure:
pidgin-2.0.2-3.fc6.1.i386.rpm from extras: [Errno 256] No more mirrors to try.

Traceback (most recent call last):
  File "/usr/sbin/pup", line 433, in _apply
    self.applyChanges(self.mainwin)
  File "/usr/lib/python2.4/site-packages/pirut/__init__.py", line 559, in
applyChanges
    self.checkDeps(mainwin)
  File "/usr/lib/python2.4/site-packages/pirut/__init__.py", line 324, in checkDeps
    self.populateTs(keepold=0)
  File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 150, in populateTs
    self.downloadHeader(txmbr.po)
  File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 774, in
downloadHeader
    raise Errors.RepoError, saved_repo_error
RepoError: failure: pidgin-2.0.2-3.fc6.1.i386.rpm from extras: [Errno 256] No
more mirrors to try.

Local variables in innermost frame:
errors: {}
e: [Errno 2] No such file or directory:
'//var/cache/yum/extras/headers/pidgin-2.0.2-3.fc6.1.i386.hdr'
self: <__main__.PackageUpdater object at 0x86f8a4c>
saved_repo_error: failure: pidgin-2.0.2-3.fc6.1.i386.rpm from extras: [Errno
256] No more mirrors to try.
repo: extras
checkfunc: (<bound method PackageUpdater.verifyHeader of
<__main__.PackageUpdater object at 0x86f8a4c>>,
(<yum.sqlitesack.YumAvailablePackageSqlite object at 0x926662c>, 1), {})
local: //var/cache/yum/extras/headers/pidgin-2.0.2-3.fc6.1.i386.hdr
po: pidgin - 2.0.2-3.fc6.1.i386

Comment 1 Jeremy Katz 2007-06-27 15:53:24 UTC
Is this reproducible? 

Comment 2 Ian Laurie 2007-06-27 23:53:06 UTC
It was 100% reproducible for most of yesterday.  I guess when the update needed
made it to the mirrors late yesterday my time, it eventually worked.  However it
failed at least 10 times with a similar traceback.

I've had similar issues with other updates.  Trial and error allows me to find
the update that's causing the trouble and I de-select it and install what I can.
Then later on, I can install the one causing the trouble.

I think it happens when the mirrors are missing needed files, but it should say
that rather than crashing.  If you want me to do something specific next time
it happens let me know.


Comment 3 Jeremy Katz 2007-08-10 19:52:40 UTC
I've put some improvements to handle some of these cases into CVS.  Please
reopen or file a new bug if you continue to have problems with pirut > 1.3.10
and yum >= 3.2.2