Bug 69337
| Summary: | up2date traceback when using proxy | ||
|---|---|---|---|
| Product: | [Retired] Red Hat Public Beta | Reporter: | Michael Schwendt <bugs.michael> |
| Component: | up2date | Assignee: | Mihai Ibanescu <mihai.ibanescu> |
| Status: | CLOSED DUPLICATE | QA Contact: | |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | limbo | CC: | leenookx |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | i386 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2002-07-24 04:18:04 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: | 67217, 68104 | ||
Changing component to rhn_register, where the bug originally was, and was fixed a couple of days ago. A couple of days ago? Is rhnlib-0.8-8.noarch.rpm supposed to fix it? If so, it doesn't. Or is an updated rhn_register package available anywhere? The bug is not in rhnlib, it's in rhn_register Check out ftp://people.redhat.com/misa/fixes, there should be a newer up2date there as well now. No rhn_register there. Sorry for bugging you. ;) # rpm -q up2date
up2date-2.9.16-7.x.9
# rpm -q rhn_register
package rhn_register is not installed
* Thu Jul 18 2002 Adrian Likins <alikins>
- obsolete rhn_register
* Wed Jul 17 2002 Adrian Likins <alikins>
- merge in rhn_register
But:
# up2date
Traceback (most recent call last):
File "/usr/sbin/up2date", line 801, in ?
main()
File "/usr/sbin/up2date", line 579, in main
from up2date_client import gui
File "/usr/share/rhn/up2date_client/gui.py", line 46, in ?
import rhnreg
ImportError: No module named rhnreg
** (up2date:1061): WARNING **: CORBA_ORB_destroy: ORB still has 2 refs.
> File "/usr/share/rhn/up2date_client/gui.py", line 46, in ?
> import rhnreg
doh, fixed. 2.9.17 should fixed it. should be on misa's link
shortly
# rpm -e up2date up2date-gnome
# rm -rf /etc/sysconfig/rhn
# rpm -i up2date*2.9.17-7.x.9*
# rpm -q rhnlib
rhnlib-0.8-8
# rpm -q up2date up2date-gnome
up2date-2.9.17-7.x.9
up2date-gnome-2.9.17-7.x.9
# up2date-config
[change to use Proxy server]
/etc/sysconfig/rhn/up2date reads:
enableProxy=1
httpProxy=host.domain:3128
# up2date
Traceback (most recent call last):
File "/usr/sbin/up2date", line 17, in ?
from up2date_client import rpcServer
File "/usr/share/rhn/up2date_client/rpcServer.py", line 7, in ?
import up2dateAuth
File "/usr/share/rhn/up2date_client/up2dateAuth.py", line 4, in ?
import rpmSource
File "/usr/share/rhn/up2date_client/rpmSource.py", line 113, in ?
psc = PackageSourceConfig()
File "/usr/share/rhn/up2date_client/rpmSource.py", line 83, in __init__
self.serverSettings = ServerSettings()
File "/usr/share/rhn/up2date_client/rpmSource.py", line 62, in __init__
if cfg.readEntry("enableProxy") and rpcServer.getProxySetting():
AttributeError: 'module' object has no attribute 'getProxySetting'
I had a bit of trouble installing these updates. I removed up2date and
up2date-gnome from my machine using 'rpm -e up2date up2date-gnome'. Then tried
to install the newer version of up2date, and I got the following error:
[root@deepthought richard]# rpm -Uvh up2date-2.9.17-7.x.9.i386.rpm
error: cannot open Packages index using db3 - No such file or directory (2)
error: Failed dependencies:
rhn_register = 2.9.6 is needed by rhn_register-gnome-2.9.6-7.x.9
Which seems a bit odd to me. The error seems to be because of a manual entry in
the RPM...
[root@deepthought richard]# rpm -i up2date*2.9.17-7.x.9*
file /usr/sbin/rhnreg_ks from install of up2date-2.9.17-7.x.9 conflicts with
file from package rhn_register-2.9.6-7.x.9
file /usr/share/man/man8/rhnreg_ks.8.gz from install of up2date-2.9.17-7.x.9
conflicts with file from package rhn_register-2.9.6-7.x.9
However, when I did: 'rpm -Uvh up2date*2.9.17-7.x.9*' it all installed properly
- or at least I didn't get any warnings.
Do both of these packages provide this same man entry?
@ leenookx : When upgrading packages, always upgrade all packages at once with
-Uvh or -Fvh, respectively.
[...]
Anyway, just for the record, traceback from 2002-07-22 18:55:54 is also with:
# rpm -q rhnlib
rhnlib-0.8-9
# rpm -qa | grep ^up2date
up2date-gnome-2.9.20-7.x.9
up2date-2.9.20-7.x.9
The traceback comes also when running "up2date-config" after up2date has been
configured for proxy usage:
# up2date-config
Traceback (most recent call last):
File "/usr/sbin/up2date-config", line 17, in ?
from up2date_client import rpcServer
File "/usr/share/rhn/up2date_client/rpcServer.py", line 7, in ?
import up2dateAuth
File "/usr/share/rhn/up2date_client/up2dateAuth.py", line 4, in ?
import rpmSource
File "/usr/share/rhn/up2date_client/rpmSource.py", line 113, in ?
psc = PackageSourceConfig()
File "/usr/share/rhn/up2date_client/rpmSource.py", line 83, in __init__
self.serverSettings = ServerSettings()
File "/usr/share/rhn/up2date_client/rpmSource.py", line 62, in __init__
if cfg.readEntry("enableProxy") and rpcServer.getProxySetting():
AttributeError: 'module' object has no attribute 'getProxySetting'
[...]
Changing component to "up2date" since rhn_register has been integrated.
This bug is now the same as bug 68437 . *** This bug has been marked as a duplicate of 68437 *** |
From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020712 Description of problem: rhn_register through proxy server crashes with Python traceback. Version-Release number of selected component (if applicable): rhnlib up to and including 0.8-7 How reproducible: Always Steps to Reproduce: 1. configure rhn_register to use proxy 2. try to register at RHN ** (rhn_register:815): WARNING **: could not find handler `onPackagePageBack' ** (rhn_register:815): WARNING **: could not find handler `onStartPagePrepare' Traceback (most recent call last): File "/usr/sbin/rhn_register", line 228, in ? main() File "/usr/sbin/rhn_register", line 197, in main gui.main() File "/usr/share/rhn/register/gui.py", line 804, in main gui = Gui() File "/usr/share/rhn/register/gui.py", line 214, in __init__ text = rhnreg.welcomeText() File "/usr/share/rhn/register/rhnreg.py", line 432, in welcomeText s = getServer() File "/usr/share/rhn/register/rhnreg.py", line 422, in getServer password=proxyPassword) File "/usr/lib/python2.2/site-packages/rhn/rpclib.py", line 89, in __init__ self._transport.add_header("X-Info", AttributeError: 'str' object has no attribute 'add_header' ** (rhn_register:815): WARNING **: CORBA_ORB_destroy: ORB still has 2 refs.