Bug 112686
Summary: | up2date hangs when retrieving package headers | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Peter Robinson <pbrobinson> |
Component: | up2date | Assignee: | Adrian Likins <alikins> |
Status: | CLOSED WONTFIX | QA Contact: | Fanny Augustin <fmoquete> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 1 | CC: | david_costanzo |
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: | 2006-02-22 17:53:58 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: | 124619 |
Description
Peter Robinson
2003-12-28 05:48:50 UTC
I get the same behavior on my Fedora Core 4 Test 2 using up2date-gnome-4.4.17. If I run "up2date-nox -u" or uninstall "up2date-gnome" and run "up2date -u", then up2date does not hang or display any exceptions. Instead it aborts because one of the packages does not have a GPG signature (I think that's a separate problem). When up2date hangs, there is no CPU or network activity. My output is: Error in sys.excepthook: Traceback (most recent call last): File "/usr/sbin/up2date", line 1231, in exceptionHandler log = up2dateLog.initLog() NameError: global name 'up2dateLog' is not defined Original exception was: Traceback (most recent call last): File "/usr/share/rhn/up2date_client/gui.py", line 1311, in onChannelsPageNext self.pList.run() File "/usr/share/rhn/up2date_client/packageList.py", line 125, in run self.progressCallback) File "/usr/share/rhn/up2date_client/rhnPackageInfo.py", line 331, in getAvailableAllArchPackageList package_list = availablePackageList( File "/usr/share/rhn/up2date_client/rhnPackageInfo.py", line 153, in availablePackageList repos = repoDirector.initRepoDirector() File "/usr/share/rhn/up2date_client/repoDirector.py", line 75, in initRepoDirector from repoBackends import repomdRepo File "/usr/share/rhn/up2date_client/repoBackends/repomdRepo.py", line 16, in ? import yumBaseRepo File "/usr/share/rhn/up2date_client/repoBackends/yumBaseRepo.py", line 14, in ? import yum File "/usr/share/rhn/__init__.py", line 32, in ? ImportError: No module named updates Error in sys.excepthook: Traceback (most recent call last): File "/usr/sbin/up2date", line 1231, in exceptionHandler log = up2dateLog.initLog() NameError: global name 'up2dateLog' is not defined Original exception was: Traceback (most recent call last): File "/usr/share/rhn/up2date_client/gui.py", line 1393, in onSkippedPagePrepare maxlength = max(map(lambda x: len(x[0][0]), self.skipPkgList)) * 8 ValueError: max() arg is an empty sequence There are three exceptions. The only one that I have in common with the original bug report is the one in /usr/share/rhn/up2date_client/gui.py:1393: maxlength = max(map(lambda x: len(x[0][0]), self.skipPkgList)) * 8 The problem seems to be that the code does not gracefully handle when self.skipPkgList is empty. I tried making the code look like: maxlength = 100 if len(self.skipPkgList) != 0 : maxlength = max(map(lambda x: len(x[0][0]), self.skipPkgList)) * 8 And this did remove the exception, but it did not fix the hang. Here is a packet sniff of all network activity when running up2date: > GET /pub/fedora/development/i386//headers/header.info HTTP/1.1 > Accept-Encoding: identity > Host: sunsite.mff.cuni.cz > If-modified-since: Sat, 14 May 2005 10:53:23 GMT > Connection: close > User-agent: Up2date /Yum > < HTTP/1.1 304 Not Modified < Date: Sun, 15 May 2005 04:00:30 GMT < Server: Apache/2.0.52 (Fedora) < Connection: close < ETag: "32b8068-2f45a-3f70ed4dd2ec0" < Seeing as up2date isn't used anymore and this was in FC1 I think this should be closed (it is after all my bug :-) I think its the right status.... |