From Bugzilla Helper: User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461) Description of problem: When I try to execute up2date --nox -p, I get the following messages: Traceback (most recent call last): File "/usr/sbin/up2date", line 801, in ? main() File "/usr/sbin/up2date", line 339, in main up2dateAuth.updateLoginInfo() File "/usr/share/rhn/up2date_client/up2dateAuth.py", line 114, in updateLoginInfo loginInfo = login() File "/usr/share/rhn/up2date_client/up2dateAuth.py", line 96, in login server = rpcServer.getServer() File "/usr/share/rhn/up2date_client/rpcServer.py", line 100, in getServer username=proxyUser, UnboundLocalError: local variable 'proxyUser' referenced before assignment Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1. up2date --configure --nox no proxyPassword or proxyUser specified 2. up2date --nox -p Actual Results: The above error messages. Expected Results: An indication that my system's profile has been updated. Additional info: Results of "rpm -q rhnlib up2date up2date-gnome": rhnlib-0.8-8 up2date-2.9.17-7.x.9 up2date-gnome-2.9.17-7.x.9 up2date --configure --nox shows the following: 0. noReplaceConfig Yes 1. networkSetup Yes 2. noBootLoader No 3. storageDir /var/spool/up2date 4. adminAddress ['root@localhost'] 5. pkgSkipList ['kernel*'] 6. serverURL https://xmlrpc.rhn.redhat.com/XMLRPC 7. fileSkipList [] 8. sslCACert /usr/share/rhn/RHNS-CA-CERT 9. retrieveOnly No 10. useNoSSLForPackage No 11. systemIdPath /etc/sysconfig/rhn/systemid 12. enableProxyAuth Yes 13. retrieveSource No 14. versionOverride 15. networkRetries 5 16. headerFetchCount 10 17. enableProxy No 18. proxyPassword 19. noSSLServerURL http://xmlrpc.rhn.redhat.com/XMLRPC 20. keepAfterInstall No 21. proxyUser 22. removeSkipList ['kernel*'] 23. useGPG Yes 24. gpgKeyRing /etc/sysconfig/rhn/up2date-keyring.gpg 25. debug No 26. httpProxy cache.online.ee:80 27. headerCacheSize 40 28. forceInstall No I edited /usr/share/rhn/up2date_client/rpcServer.py, placing proxyUser = None proxyPassword = None just before s = rpclib.Server(serverUrl, refreshCallback=refreshCallback, This resulted in a successful run.
Looking at the code of rpcServer.py a little closer, I see that enableProxyAuth should be "No" if I'm not going to specify a proxyUser or a proxyPassword. In fact, I tried changing enableProxyAuth everything ran fine with the original rpcServer.py. I believe enableProxyAuth was already "Yes" when I first ran --configure, but I wouldn't rely on changing the initial value to fix this problem.
I belive misa fixed in this about version 2.9.21 or so.
Fix confirmed with up2date-3.0.2-2.