From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9b2) Gecko/2007121016 Firefox/3.0b2 Description of problem: Works when using up2date on RHEL4 and older through https connection to our rhn-proxy. Does not work when usinge yum on RHEL5 through https connection to our rhn-proxy. Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: as root on my RHEL5. 1. Changed the file /etc/sysconfig/rhn/up2date with my ServerURL and my SSLCert. 2. service rhnsd restart 3. yum update yum or 3. yum install joe Actual Results: Traceback (most recent call last): File "/usr/bin/yum", line 29, in ? yummain.main(sys.argv[1:]) File "/usr/share/yum-cli/yummain.py", line 180, in main base.doTransaction() File "/usr/share/yum-cli/cli.py", line 395, in doTransaction problems = self.downloadPkgs(downloadpkgs) File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 690, in downloadPkgs cache=po.repo.http_caching != 'none', File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 447, in getPackage cache=cache File "/usr/lib/yum-plugins/rhnplugin.py", line 209, in _getFile start, end, copy_local, checkfunc, text, reget, cache) File "/usr/lib/yum-plugins/rhnplugin.py", line 298, in _noExceptionWrappingGet return result UnboundLocalError: local variable 'result' referenced before assignment Yum can connect to the rhn-proxy, found needed packages, download them and they end up in /var/cache/yum/[...]/packages. For some reasons, these rpm packages are not installable, they looks truncated and they have different size. Expected Results: The selected packages should be installed. Additional info:
Please can you provide information about version you use? Should I assume you use Satellite 4.2.0 (or 5.0 or directly rhn.redhat.com) and proxy 4.2? Can you provide me your version of yum-rhn-plugin too?
Here's more details: Red Hat Network Proxy 4.2 (not satellite) running on a Red Hat Enterprise Linux AS release 4 (Nahant Update 6). on my RHEL5 Update 1 server: yum-metadata-parser-1.0-8.fc6 yum-updatesd-3.0.1-5.el5 yum-3.0.1-5.el5 yum-rhn-plugin-0.5.2-3.el5
Mathieu, are you sure you have in /etc/sysconfig/rhn/up2date set variable serverURL and not ServerURL? I.e. first letter is not upper case. According to my searching this is yum-rhn-plugin and happen when there is no base url. Hmm, the plugin should return some nice error like: You did not specify url of satelllite, proxy in serverURL. Reassign to yum-rhn-plugin component
This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux maintenance release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Update release for currently deployed products. This request is not yet committed for inclusion in an Update release.
Here is my current /etc/sysconfig/rhn/up2date serverURL[comment]=Remote server URL serverURL=https://xmlrpc.rhn.redhat.com/XMLRPC #serverURL=https://rhn-proxy.my-url.com/XMLRPC I've put in comments the line for my rhn-proxy because, well it does'nt work. You'll notice i have set the right variable. Thanks to all
Mathieu, Refer to this BZ: https://bugzilla.redhat.com/show_bug.cgi?id=378911 The "local variable 'result' referenced before assignment" is likely hiding the true error message. If you try the test package created by Justin Sherrill here: https://bugzilla.redhat.com/attachment.cgi?id=281351 It should allow the true error problem to be displayed.
*** This bug has been marked as a duplicate of 378911 ***