[tools] mrepo up2date registration problem...

Dag Wieers dag at wieers.com
Wed Oct 10 15:07:59 CEST 2007


On Wed, 10 Oct 2007, Pienaar, Derek wrote:

> We are still getting the same error, even after setting configuring
> proxy settings in /etc/profile.d/proxy.sh.
> I have tested with yum, and proxy access is working. I am however also
> aware that proxy settings can be
> specified in the up2date tool as well.
>
> Is there a preference to which proxy settings are used?
>
> ... Stil getting same error ...
>
> Traceback (most recent call last):
>   File "/usr/bin/gensystemid", line 244, in ?
>     main()
>   File "/usr/bin/gensystemid", line 210, in main
>     systemid = rpcServer.doCall(s.registration.new_user, op.rhnusername,
> op.rhnpassword)
>   File "/usr/share/rhn/up2date_client/rpcServer.py", line 236, in doCall
>     ret = apply(method, args, kwargs)
>   File "/usr/lib/python2.3/xmlrpclib.py", line 1029, in __call__
>     return self.__send(self.__name, args)
>   File "/usr/share/rhn/up2date_client/rpcServer.py", line 46, in
> _request1
>     ret = self._request(methodname, params)
>   File "/usr/lib/python2.3/site-packages/rhn/rpclib.py", line 319, in
> _request
>     request, verbose=self._verbose)
>   File "/usr/lib/python2.3/site-packages/rhn/transports.py", line 168,
> in
> request
>     headers, fd = req.send_http(host, handler)
>   File "/usr/lib/python2.3/site-packages/rhn/transports.py", line 694,
> in
> send_http
>     self._connection.connect()
>   File "/usr/lib/python2.3/site-packages/rhn/connections.py", line 244,
> in
> connect
>     response = HTTPConnection.getresponse(self)
>   File "/usr/lib/python2.3/site-packages/rhn/connections.py", line 143,
> in
> getresponse
>     response.begin()
>   File "/usr/lib/python2.3/site-packages/rhn/connections.py", line 217,
> in
> begin
>     HTTPResponse.begin(self)
>   File "/usr/lib/python2.3/httplib.py", line 273, in begin
>     version, status, reason = self._read_status()
>   File "/usr/lib/python2.3/httplib.py", line 237, in _read_status
>     raise BadStatusLine(line)
> httplib.BadStatusLine
>
> What is also funny, although proxy.sh settings take effect, and can be
> successfully used wih yum, when I use the links browser, and try to
> browse to http://xmlrpc.rhn.redhat.com/XMLRPC as recommended, I get
> a connection refused?
>
> Is the links' browser proxy setting set somewhere else?

Yes, the proxy server can be specified in links (elinks).

I would look in the documentation for the file proxy-configuration.txt and
follow that. At least the mrepo will set the proxy-configuration right
before executing external commands.

If
	http://xmlrpc.rhn.redhat.com/XMLRPC

doesn't work, then try:

	https://xmlrpc.rhn.redhat.com/XMLRPC

This is similar to the difference with rhn:// and rhns://

-- 
--   dag wieers,  dag at wieers.com,  http://dag.wieers.com/   --
[Any errors in spelling, tact or fact are transmission errors]


More information about the tools mailing list