[tools] mrepo up2date registration problem...
Pienaar, Derek
DPienaar at fnbcorporate.co.za
Wed Oct 10 16:14:00 CEST 2007
Thanks for the reply Dag,
... had a look at proxy-configuration.txt. I have one question... How
is a domain user and password specified if using the mrepo config file?
Is it the same as for when
specifying the uid and domain in /etc/profile.d/proxy.sh ? ... for
example:
http_proxy=http://DOMAIN\\domaccount":"P@ssw0rd@proxyserver:8080
HTTP_PROXY=http://DOMAIN\\domacc":" P at ssw0rd@proxyserver:8080
ftp_proxy=http://DOMAIN\\domacc":" P at ssw0rd@proxyserver:8080
FTP_PROXY=http://DOMAIN\\domacc":" P at ssw0rd@proxyserver:8080
Thank You for the help,
DP.
-----Original Message-----
From: Dag Wieers [mailto:dag at wieers.com]
Sent: 10 October 2007 03:08 PM
To: Pienaar, Derek
Cc: tools at lists.rpmforge.net
Subject: RE: [tools] mrepo up2date registration problem...
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]
To read FirstRand Bank's Disclaimer for this email click on the following address or copy into your Internet browser:
https://www.fnb.co.za/disclaimer.html
If you are unable to access the Disclaimer, send a blank e-mail to
firstrandbankdisclaimer at fnb.co.za and we will send you a copy of the Disclaimer.
More information about the tools
mailing list