Red Hat Bugzilla – Bug 426261
Good: only working with up2date client, not with yum clients
Last modified: 2016-02-08 08:40:58 EST
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):
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
3. yum install joe
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in ?
File "/usr/share/yum-cli/yummain.py", line 180, in main
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
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
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.
The selected packages should be installed.
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
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:
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
Here is my current /etc/sysconfig/rhn/up2date
serverURL[comment]=Remote server URL
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
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:
It should allow the true error problem to be displayed.
*** This bug has been marked as a duplicate of 378911 ***