[Spacewalk-list] rhn-clone-errata.py thru a squid proxy
Eric
linux_4_u at yahoo.com
Tue Apr 20 19:47:05 UTC 2010
Hello,
I am having issues with the script rhn-clone-errata.py using a forwarding proxy.
I tried setting the environment variables
http_proxy=http://webprox1.local:3128
https_proxy=http://webprox1.local:3128
Then I run the rhn-clone-errata.py script on the server running spacewalk as follows:
export
/usr/local/sbin/rhn-clone-errata.py -s spacewalk.local -l swadmin -p secret -v -u -c rhel-i386-server-5
The issue is that the server which spacewalk is running on is firewalled from the Internet, but it has access
via a squid proxy.
I tried the following to no avail: http://www.mail-archive.com/spacewalk-devel@redhat.com/msg01974.html
Traceback (most recent call last):
File "/usr/local/sbin/rhn-clone-errata.py", line 586, in ?
main()
File "/usr/local/sbin/rhn-clone-errata.py", line 502, in main
myRHN = RHNServer(svrRHN,userRHN,passRHN)
File "/usr/local/sbin/rhn-clone-errata.py", line 69, in __init__
self.rhnSession = self.rhnLogin(self.login,self.password,0)
File "/usr/local/sbin/rhn-clone-errata.py", line 73, in rhnLogin
rhnSession=self.server.auth.login(login,password)
File "/usr/lib/python2.4/xmlrpclib.py", line 1096, in __call__
return self.__send(self.__name, args)
File "/usr/lib/python2.4/xmlrpclib.py", line 1383, in __request
verbose=self.__verbose
File "/usr/lib/python2.4/xmlrpclib.py", line 1129, in request
self.send_content(h, request_body)
File "/usr/lib/python2.4/xmlrpclib.py", line 1243, in send_content
connection.endheaders()
File "/usr/lib/python2.4/httplib.py", line 798, in endheaders
self._send_output()
File "/usr/lib/python2.4/httplib.py", line 679, in _send_output
self.send(msg)
File "/usr/lib/python2.4/httplib.py", line 646, in send
self.connect()
File "/usr/lib/python2.4/httplib.py", line 1072, in connect
sock.connect((self.host, self.port))
File "<string>", line 1, in connect
socket.error: (110, 'Connection timed out')
Thanks,
-Eric
More information about the Spacewalk-list
mailing list