RE: [rhelv5-list] Newb yum problem

2007-09-14 Thread McDougall, Marshall (FSH)
OK, making progress.  I had another look at /etc/sysconfig/rhn/up2date
and saw the lines:

disallowConfChanges[comment]=Config options that can not be overwritten
by a config update action
disallowConfChanges=noReboot;sslCACert;useNoSSLForPackages;noSSLServerUR
L;serverURL;disallowConfChanges;

So I rem'd out:

serverURL[comment]=Remote server URL
#serverURL=http://xmlrpc.rhn.redhat.com/XMLRPC

And added

noSSLServerURL=http://xmlrpc.rhn.redhat.com/XMLRPC

So now yum update is happily downloading packages.  Thanks for the prod
Hugh.

Regards, Marshall

>-Original Message-
>From: [EMAIL PROTECTED] 
>[mailto:[EMAIL PROTECTED] On Behalf Of 
>McDougall, Marshall (FSH)
>Sent: Friday, September 14, 2007 8:07 AM
>To: Red Hat Enterprise Linux 5 (Tikanga) discussion mailing-list
>Subject: RE: [rhelv5-list] Newb yum problem
>
>One of the basic tenets of computers that I have held fast to is that
>computers do what they are told.  My /etc/sysconfig/rhn/up2date file is
>telling it to use:
>
>serverURL[comment]=Remote server URL
>serverURL=http://xmlrpc.rhn.redhat.com/XMLRPC 
>
> which is not an ssl connection.  I know that it is using the proxy
>because when I run yum update I have another console open running:
>
>watch "netstat -a|grep tcp"
>
> and I can see it going out to the proxy. Is there another 
>file that yum
>sources for directives?  Thanks for the reply.
>
>Regards, Marshall
>
>>-Original Message-
>>From: [EMAIL PROTECTED] 
>>[mailto:[EMAIL PROTECTED] On Behalf Of Hugh Brown
>>Sent: Thursday, September 13, 2007 3:47 PM
>>To: Red Hat Enterprise Linux 5 (Tikanga) discussion mailing-list
>>Subject: Re: [rhelv5-list] Newb yum problem
>>
>>At the very bottom of the stack trace, you'll see:
>>
>>line 149, in connect_ssl
>> > return m2.ssl_connect(self.ssl, self._timeout)
>> > M2Crypto.SSL.SSLError: unknown protocol
>>
>>So, yum is unable to connect to the server listed in 
>>/etc/sysconfig/rhn/up2date  (search for serverURL).
>>
>>Since you are behind a proxy, I'd try to use
>>
>>openssl s_client -connect :
>>
>>to make sure you can make the connection.
>>
>>Hugh
>>
>>McDougall, Marshall (FSH) wrote:
>>> This is my first foray into RHEL5 and so far change is not 
>>so good.  I
>>> was quite comfortable with up2date, but alas it is not part of 5.
>>> Locate doesn't seem to work very well either, but that is 
>>another story.
>>> 
>>> 
>>> I am having some problems getting yum to run at all and I am 
>>not quite
>>> sure if it's yum or python, as I am familiar with neither 
>>one.  This is
>>> compounded by the fact that I am behind a proxy and I am not 
>>completely
>>> sure that I am getting through it with what ever yum is using to get
>>> there.  Currently, when I run yum I get the following:
>>> 
>>> [EMAIL PROTECTED] Server]# yum update
>>> Loading "installonlyn" plugin
>>> Loading "rhnplugin" plugin
>>> Setting up Update Process
>>> Setting up repositories
>>> Traceback (most recent call last):
>>>   File "/usr/bin/yum", line 29, in ?
>>> yummain.main(sys.argv[1:])
>>>   File "/usr/share/yum-cli/yummain.py", line 102, in main
>>> result, resultmsgs = do()
>>>   File "/usr/share/yum-cli/cli.py", line 359, in doCommands
>>> return self.yum_cli_commands[self.basecmd].doCommand(self,
>>> self.basecmd, self.extcmds)
>>>   File "/usr/share/yum-cli/yumcommands.py", line 150, in doCommand
>>> return base.updatePkgs(extcmds)
>>>   File "/usr/share/yum-cli/cli.py", line 628, in updatePkgs
>>> self.doRepoSetup()
>>>   File "/usr/share/yum-cli/cli.py", line 102, in doRepoSetup
>>> yum.YumBase.doRepoSetup(self, thisrepo=thisrepo)
>>>   File "/usr/lib/python2.4/site-packages/yum/__init__.py", 
>>line 299, in
>>> doRepoSetup
>>> repo.setup(self.conf.cache)
>>>   File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", 
>>line 503, in
>>> setup
>>> self._loadRepoXML(text=self)
>>>   File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", 
>>line 530, in
>>> _loadRepoXML
>>> cache=self.http_caching == 'all')
>>>   File "/usr/lib/yum-plugins/rhnplugin.py", line 208, in
>>> _YumRepository__get
>>> start, end, copy_local, checkfunc, text, reget, cache)
&

Re: [rhelv5-list] Newb yum problem

2007-09-14 Thread Hugh Brown



McDougall, Marshall (FSH) wrote:

One of the basic tenets of computers that I have held fast to is that
computers do what they are told.  My /etc/sysconfig/rhn/up2date file is
telling it to use:

serverURL[comment]=Remote server URL
serverURL=http://xmlrpc.rhn.redhat.com/XMLRPC 


 which is not an ssl connection.  I know that it is using the proxy
because when I run yum update I have another console open running:

watch "netstat -a|grep tcp"

 and I can see it going out to the proxy. Is there another file that yum
sources for directives?  Thanks for the reply.

Regards, Marshall





Yum looks in /etc/yum.conf and /etc/yum.repos.d.  If you've not set up 
any extra yum repositories then /etc/sysconfig/rhn/up2date tells it 
where to connect for the RHN service.


You could strace the process to get more info about what it is doing.

Hugh


smime.p7s
Description: S/MIME Cryptographic Signature
___
rhelv5-list mailing list
rhelv5-list@redhat.com
https://www.redhat.com/mailman/listinfo/rhelv5-list


RE: [rhelv5-list] Newb yum problem

2007-09-14 Thread McDougall, Marshall (FSH)
>-Original Message-
>From: [EMAIL PROTECTED] 
>[mailto:[EMAIL PROTECTED] On Behalf Of John Summerfield
>Sent: Thursday, September 13, 2007 6:13 PM
>To: Red Hat Enterprise Linux 5 (Tikanga) discussion mailing-list
>Subject: Re: [rhelv5-list] Newb yum problem
>
>McDougall, Marshall (FSH) wrote:
>> This is my first foray into RHEL5 and so far change is not 
>so good.  I
>> was quite comfortable with up2date, but alas it is not part of 5.
>> Locate doesn't seem to work very well either, but that is 
>another story.
>> 
>> 
>> I am having some problems getting yum to run at all and I am 
>not quite
>> sure if it's yum or python, as I am familiar with neither 
>one.  This is
>> compounded by the fact that I am behind a proxy and I am not 
>completely
>> sure that I am getting through it with what ever yum is using to get
>> there.  Currently, when I run yum I get the following:
>> 
>> [EMAIL PROTECTED] Server]# yum update
>> Loading "installonlyn" plugin
>> Loading "rhnplugin" plugin
>> Setting up Update Process
>> Setting up repositories
>> Traceback (most recent call last):
>>   File "/usr/bin/yum", line 29, in ?
>> yummain.main(sys.argv[1:])
>>   File "/usr/share/yum-cli/yummain.py", line 102, in main
>> result, resultmsgs = do()
>>   File "/usr/share/yum-cli/cli.py", line 359, in doCommands
>> return self.yum_cli_commands[self.basecmd].doCommand(self,
>> self.basecmd, self.extcmds)
>>   File "/usr/share/yum-cli/yumcommands.py", line 150, in doCommand
>> return base.updatePkgs(extcmds)
>>   File "/usr/share/yum-cli/cli.py", line 628, in updatePkgs
>> self.doRepoSetup()
>>   File "/usr/share/yum-cli/cli.py", line 102, in doRepoSetup
>> yum.YumBase.doRepoSetup(self, thisrepo=thisrepo)
>>   File "/usr/lib/python2.4/site-packages/yum/__init__.py", 
>line 299, in
>> doRepoSetup
>> repo.setup(self.conf.cache)
>>   File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", 
>line 503, in
>> setup
>> self._loadRepoXML(text=self)
>>   File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", 
>line 530, in
>> _loadRepoXML
>> cache=self.http_caching == 'all')
>>   File "/usr/lib/yum-plugins/rhnplugin.py", line 208, in
>> _YumRepository__get
>> start, end, copy_local, checkfunc, text, reget, cache)
>>   File "/usr/lib/yum-plugins/rhnplugin.py", line 276, in
>> _noExceptionWrappingGet
>> http_headers=headers,
>>   File "/usr/lib/python2.4/site-packages/urlgrabber/grabber.py", line
>> 927, in urlgrab
>> return self._retry(opts, retryfunc, url, filename)
>>   File "/usr/lib/python2.4/site-packages/urlgrabber/grabber.py", line
>> 845, in _retry
>> r = apply(func, (opts,) + args, {})
>>   File "/usr/lib/python2.4/site-packages/urlgrabber/grabber.py", line
>> 913, in retryfunc
>> fo = URLGrabberFileObject(url, filename, opts)
>>   File "/usr/lib/python2.4/site-packages/urlgrabber/grabber.py", line
>> 1001, in __init__
>> self._do_open()
>>   File "/usr/lib/python2.4/site-packages/urlgrabber/grabber.py", line
>> 1072, in _do_open
>> fo, hdr = self._make_request(req, opener)
>>   File "/usr/lib/python2.4/site-packages/urlgrabber/grabber.py", line
>> 1172, in _make_request
>> fo = opener.open(req)
>>   File "/usr/lib/python2.4/urllib2.py", line 358, in open
>> response = self._open(req, data)
>>   File "/usr/lib/python2.4/urllib2.py", line 376, in _open
>> '_open', req)
>>   File "/usr/lib/python2.4/urllib2.py", line 337, in _call_chain
>> result = func(*args)
>>   File "/usr/lib/python2.4/urllib2.py", line 573, in 
>> lambda r, proxy=url, type=type, meth=self.proxy_open: \
>>   File "/usr/lib/python2.4/urllib2.py", line 597, in proxy_open
>> return self.parent.open(req)
>>   File "/usr/lib/python2.4/urllib2.py", line 358, in open
>> response = self._open(req, data)
>>   File "/usr/lib/python2.4/urllib2.py", line 376, in _open
>> '_open', req)
>>   File "/usr/lib/python2.4/urllib2.py", line 337, in _call_chain
>> result = func(*args)
>>   File "/usr/lib/python2.4/site-packages/M2Crypto/m2urllib2.py", line
>> 66, in https_open
>> h.request(req.get_method(), req.g

RE: [rhelv5-list] Newb yum problem

2007-09-14 Thread McDougall, Marshall (FSH)
One of the basic tenets of computers that I have held fast to is that
computers do what they are told.  My /etc/sysconfig/rhn/up2date file is
telling it to use:

serverURL[comment]=Remote server URL
serverURL=http://xmlrpc.rhn.redhat.com/XMLRPC 

 which is not an ssl connection.  I know that it is using the proxy
because when I run yum update I have another console open running:

watch "netstat -a|grep tcp"

 and I can see it going out to the proxy. Is there another file that yum
sources for directives?  Thanks for the reply.

Regards, Marshall

>-Original Message-
>From: [EMAIL PROTECTED] 
>[mailto:[EMAIL PROTECTED] On Behalf Of Hugh Brown
>Sent: Thursday, September 13, 2007 3:47 PM
>To: Red Hat Enterprise Linux 5 (Tikanga) discussion mailing-list
>Subject: Re: [rhelv5-list] Newb yum problem
>
>At the very bottom of the stack trace, you'll see:
>
>line 149, in connect_ssl
> > return m2.ssl_connect(self.ssl, self._timeout)
> > M2Crypto.SSL.SSLError: unknown protocol
>
>So, yum is unable to connect to the server listed in 
>/etc/sysconfig/rhn/up2date  (search for serverURL).
>
>Since you are behind a proxy, I'd try to use
>
>openssl s_client -connect :
>
>to make sure you can make the connection.
>
>Hugh
>
>McDougall, Marshall (FSH) wrote:
>> This is my first foray into RHEL5 and so far change is not 
>so good.  I
>> was quite comfortable with up2date, but alas it is not part of 5.
>> Locate doesn't seem to work very well either, but that is 
>another story.
>> 
>> 
>> I am having some problems getting yum to run at all and I am 
>not quite
>> sure if it's yum or python, as I am familiar with neither 
>one.  This is
>> compounded by the fact that I am behind a proxy and I am not 
>completely
>> sure that I am getting through it with what ever yum is using to get
>> there.  Currently, when I run yum I get the following:
>> 
>> [EMAIL PROTECTED] Server]# yum update
>> Loading "installonlyn" plugin
>> Loading "rhnplugin" plugin
>> Setting up Update Process
>> Setting up repositories
>> Traceback (most recent call last):
>>   File "/usr/bin/yum", line 29, in ?
>> yummain.main(sys.argv[1:])
>>   File "/usr/share/yum-cli/yummain.py", line 102, in main
>> result, resultmsgs = do()
>>   File "/usr/share/yum-cli/cli.py", line 359, in doCommands
>> return self.yum_cli_commands[self.basecmd].doCommand(self,
>> self.basecmd, self.extcmds)
>>   File "/usr/share/yum-cli/yumcommands.py", line 150, in doCommand
>> return base.updatePkgs(extcmds)
>>   File "/usr/share/yum-cli/cli.py", line 628, in updatePkgs
>> self.doRepoSetup()
>>   File "/usr/share/yum-cli/cli.py", line 102, in doRepoSetup
>> yum.YumBase.doRepoSetup(self, thisrepo=thisrepo)
>>   File "/usr/lib/python2.4/site-packages/yum/__init__.py", 
>line 299, in
>> doRepoSetup
>> repo.setup(self.conf.cache)
>>   File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", 
>line 503, in
>> setup
>> self._loadRepoXML(text=self)
>>   File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", 
>line 530, in
>> _loadRepoXML
>> cache=self.http_caching == 'all')
>>   File "/usr/lib/yum-plugins/rhnplugin.py", line 208, in
>> _YumRepository__get
>> start, end, copy_local, checkfunc, text, reget, cache)
>>   File "/usr/lib/yum-plugins/rhnplugin.py", line 276, in
>> _noExceptionWrappingGet
>> http_headers=headers,
>>   File "/usr/lib/python2.4/site-packages/urlgrabber/grabber.py", line
>> 927, in urlgrab
>> return self._retry(opts, retryfunc, url, filename)
>>   File "/usr/lib/python2.4/site-packages/urlgrabber/grabber.py", line
>> 845, in _retry
>> r = apply(func, (opts,) + args, {})
>>   File "/usr/lib/python2.4/site-packages/urlgrabber/grabber.py", line
>> 913, in retryfunc
>> fo = URLGrabberFileObject(url, filename, opts)
>>   File "/usr/lib/python2.4/site-packages/urlgrabber/grabber.py", line
>> 1001, in __init__
>> self._do_open()
>>   File "/usr/lib/python2.4/site-packages/urlgrabber/grabber.py", line
>> 1072, in _do_open
>> fo, hdr = self._make_request(req, opener)
>>   File "/usr/lib/python2.4/site-packages/urlgrabber/grabber.py", line
>> 1172, in _make_request
>> fo = opener.open(req)
>>   File "/usr/lib/python2.4/urllib2.py", line 358, in open
>> response = self._open(r

Re: [rhelv5-list] Newb yum problem

2007-09-13 Thread John Summerfield

McDougall, Marshall (FSH) wrote:

This is my first foray into RHEL5 and so far change is not so good.  I
was quite comfortable with up2date, but alas it is not part of 5.
Locate doesn't seem to work very well either, but that is another story.


I am having some problems getting yum to run at all and I am not quite
sure if it's yum or python, as I am familiar with neither one.  This is
compounded by the fact that I am behind a proxy and I am not completely
sure that I am getting through it with what ever yum is using to get
there.  Currently, when I run yum I get the following:

[EMAIL PROTECTED] Server]# yum update
Loading "installonlyn" plugin
Loading "rhnplugin" plugin
Setting up Update Process
Setting up repositories
Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in ?
yummain.main(sys.argv[1:])
  File "/usr/share/yum-cli/yummain.py", line 102, in main
result, resultmsgs = do()
  File "/usr/share/yum-cli/cli.py", line 359, in doCommands
return self.yum_cli_commands[self.basecmd].doCommand(self,
self.basecmd, self.extcmds)
  File "/usr/share/yum-cli/yumcommands.py", line 150, in doCommand
return base.updatePkgs(extcmds)
  File "/usr/share/yum-cli/cli.py", line 628, in updatePkgs
self.doRepoSetup()
  File "/usr/share/yum-cli/cli.py", line 102, in doRepoSetup
yum.YumBase.doRepoSetup(self, thisrepo=thisrepo)
  File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 299, in
doRepoSetup
repo.setup(self.conf.cache)
  File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 503, in
setup
self._loadRepoXML(text=self)
  File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 530, in
_loadRepoXML
cache=self.http_caching == 'all')
  File "/usr/lib/yum-plugins/rhnplugin.py", line 208, in
_YumRepository__get
start, end, copy_local, checkfunc, text, reget, cache)
  File "/usr/lib/yum-plugins/rhnplugin.py", line 276, in
_noExceptionWrappingGet
http_headers=headers,
  File "/usr/lib/python2.4/site-packages/urlgrabber/grabber.py", line
927, in urlgrab
return self._retry(opts, retryfunc, url, filename)
  File "/usr/lib/python2.4/site-packages/urlgrabber/grabber.py", line
845, in _retry
r = apply(func, (opts,) + args, {})
  File "/usr/lib/python2.4/site-packages/urlgrabber/grabber.py", line
913, in retryfunc
fo = URLGrabberFileObject(url, filename, opts)
  File "/usr/lib/python2.4/site-packages/urlgrabber/grabber.py", line
1001, in __init__
self._do_open()
  File "/usr/lib/python2.4/site-packages/urlgrabber/grabber.py", line
1072, in _do_open
fo, hdr = self._make_request(req, opener)
  File "/usr/lib/python2.4/site-packages/urlgrabber/grabber.py", line
1172, in _make_request
fo = opener.open(req)
  File "/usr/lib/python2.4/urllib2.py", line 358, in open
response = self._open(req, data)
  File "/usr/lib/python2.4/urllib2.py", line 376, in _open
'_open', req)
  File "/usr/lib/python2.4/urllib2.py", line 337, in _call_chain
result = func(*args)
  File "/usr/lib/python2.4/urllib2.py", line 573, in 
lambda r, proxy=url, type=type, meth=self.proxy_open: \
  File "/usr/lib/python2.4/urllib2.py", line 597, in proxy_open
return self.parent.open(req)
  File "/usr/lib/python2.4/urllib2.py", line 358, in open
response = self._open(req, data)
  File "/usr/lib/python2.4/urllib2.py", line 376, in _open
'_open', req)
  File "/usr/lib/python2.4/urllib2.py", line 337, in _call_chain
result = func(*args)
  File "/usr/lib/python2.4/site-packages/M2Crypto/m2urllib2.py", line
66, in https_open
h.request(req.get_method(), req.get_full_url(), req.data, headers)
  File "/usr/lib/python2.4/httplib.py", line 804, in request
self._send_request(method, url, body, headers)
  File "/usr/lib/python2.4/httplib.py", line 827, in _send_request
self.endheaders()
  File "/usr/lib/python2.4/site-packages/M2Crypto/httpslib.py", line
145, in endheaders
HTTPSConnection.endheaders(self)
  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/site-packages/M2Crypto/httpslib.py", line
161, in connect
self._start_ssl()
  File "/usr/lib/python2.4/site-packages/M2Crypto/httpslib.py", line
176, in _start_ssl
self.sock.connect_ssl()
  File "/usr/lib/python2.4/site-packages/M2Crypto/SSL/Connection.py",
line 149, in connect_ssl
return m2.ssl_connect(self.ssl, self._timeout)
M2Crypto.SSL.SSLError: unknown protocol

As I said before, I am not familiar with either yum or python.  I have
read the faqs and docs and wiki at DUKE and been through RH KB and am no
further ahead.  I really don't want to open a ticket with RH until I
have to because that in itself is kinda painful.  If anyone can point me
in a proper direction I would appreciate.  Thanks.


To begin with, there's at least one bug here. Thi

Re: [rhelv5-list] Newb yum problem

2007-09-13 Thread John Haxby

McDougall, Marshall (FSH) wrote:



Locate doesn't seem to work very well either, but that is another story.


I'm guessing that because this is a new installation the cron job that 
builds the locate database hasn't been built yet.


jch

___
rhelv5-list mailing list
rhelv5-list@redhat.com
https://www.redhat.com/mailman/listinfo/rhelv5-list


Re: [rhelv5-list] Newb yum problem

2007-09-13 Thread Hugh Brown

At the very bottom of the stack trace, you'll see:

line 149, in connect_ssl
> return m2.ssl_connect(self.ssl, self._timeout)
> M2Crypto.SSL.SSLError: unknown protocol

So, yum is unable to connect to the server listed in 
/etc/sysconfig/rhn/up2date  (search for serverURL).


Since you are behind a proxy, I'd try to use

openssl s_client -connect :

to make sure you can make the connection.

Hugh

McDougall, Marshall (FSH) wrote:

This is my first foray into RHEL5 and so far change is not so good.  I
was quite comfortable with up2date, but alas it is not part of 5.
Locate doesn't seem to work very well either, but that is another story.


I am having some problems getting yum to run at all and I am not quite
sure if it's yum or python, as I am familiar with neither one.  This is
compounded by the fact that I am behind a proxy and I am not completely
sure that I am getting through it with what ever yum is using to get
there.  Currently, when I run yum I get the following:

[EMAIL PROTECTED] Server]# yum update
Loading "installonlyn" plugin
Loading "rhnplugin" plugin
Setting up Update Process
Setting up repositories
Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in ?
yummain.main(sys.argv[1:])
  File "/usr/share/yum-cli/yummain.py", line 102, in main
result, resultmsgs = do()
  File "/usr/share/yum-cli/cli.py", line 359, in doCommands
return self.yum_cli_commands[self.basecmd].doCommand(self,
self.basecmd, self.extcmds)
  File "/usr/share/yum-cli/yumcommands.py", line 150, in doCommand
return base.updatePkgs(extcmds)
  File "/usr/share/yum-cli/cli.py", line 628, in updatePkgs
self.doRepoSetup()
  File "/usr/share/yum-cli/cli.py", line 102, in doRepoSetup
yum.YumBase.doRepoSetup(self, thisrepo=thisrepo)
  File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 299, in
doRepoSetup
repo.setup(self.conf.cache)
  File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 503, in
setup
self._loadRepoXML(text=self)
  File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 530, in
_loadRepoXML
cache=self.http_caching == 'all')
  File "/usr/lib/yum-plugins/rhnplugin.py", line 208, in
_YumRepository__get
start, end, copy_local, checkfunc, text, reget, cache)
  File "/usr/lib/yum-plugins/rhnplugin.py", line 276, in
_noExceptionWrappingGet
http_headers=headers,
  File "/usr/lib/python2.4/site-packages/urlgrabber/grabber.py", line
927, in urlgrab
return self._retry(opts, retryfunc, url, filename)
  File "/usr/lib/python2.4/site-packages/urlgrabber/grabber.py", line
845, in _retry
r = apply(func, (opts,) + args, {})
  File "/usr/lib/python2.4/site-packages/urlgrabber/grabber.py", line
913, in retryfunc
fo = URLGrabberFileObject(url, filename, opts)
  File "/usr/lib/python2.4/site-packages/urlgrabber/grabber.py", line
1001, in __init__
self._do_open()
  File "/usr/lib/python2.4/site-packages/urlgrabber/grabber.py", line
1072, in _do_open
fo, hdr = self._make_request(req, opener)
  File "/usr/lib/python2.4/site-packages/urlgrabber/grabber.py", line
1172, in _make_request
fo = opener.open(req)
  File "/usr/lib/python2.4/urllib2.py", line 358, in open
response = self._open(req, data)
  File "/usr/lib/python2.4/urllib2.py", line 376, in _open
'_open', req)
  File "/usr/lib/python2.4/urllib2.py", line 337, in _call_chain
result = func(*args)
  File "/usr/lib/python2.4/urllib2.py", line 573, in 
lambda r, proxy=url, type=type, meth=self.proxy_open: \
  File "/usr/lib/python2.4/urllib2.py", line 597, in proxy_open
return self.parent.open(req)
  File "/usr/lib/python2.4/urllib2.py", line 358, in open
response = self._open(req, data)
  File "/usr/lib/python2.4/urllib2.py", line 376, in _open
'_open', req)
  File "/usr/lib/python2.4/urllib2.py", line 337, in _call_chain
result = func(*args)
  File "/usr/lib/python2.4/site-packages/M2Crypto/m2urllib2.py", line
66, in https_open
h.request(req.get_method(), req.get_full_url(), req.data, headers)
  File "/usr/lib/python2.4/httplib.py", line 804, in request
self._send_request(method, url, body, headers)
  File "/usr/lib/python2.4/httplib.py", line 827, in _send_request
self.endheaders()
  File "/usr/lib/python2.4/site-packages/M2Crypto/httpslib.py", line
145, in endheaders
HTTPSConnection.endheaders(self)
  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/site-packages/M2Crypto/httpslib.py", line
161, in connect
self._start_ssl()
  File "/usr/lib/python2.4/site-packages/M2Crypto/httpslib.py", line
176, in _start_ssl
self.sock.connect_ssl()
  File "/usr/lib/python2.4/site-packages/M2Crypto/SSL/Connection.py",
line 149, in connect_ssl
return m2.ssl_connect(self.ssl, self._timeout)
M2Crypto.SSL.SSLError: u

[rhelv5-list] Newb yum problem

2007-09-13 Thread McDougall, Marshall (FSH)
This is my first foray into RHEL5 and so far change is not so good.  I
was quite comfortable with up2date, but alas it is not part of 5.
Locate doesn't seem to work very well either, but that is another story.


I am having some problems getting yum to run at all and I am not quite
sure if it's yum or python, as I am familiar with neither one.  This is
compounded by the fact that I am behind a proxy and I am not completely
sure that I am getting through it with what ever yum is using to get
there.  Currently, when I run yum I get the following:

[EMAIL PROTECTED] Server]# yum update
Loading "installonlyn" plugin
Loading "rhnplugin" plugin
Setting up Update Process
Setting up repositories
Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in ?
yummain.main(sys.argv[1:])
  File "/usr/share/yum-cli/yummain.py", line 102, in main
result, resultmsgs = do()
  File "/usr/share/yum-cli/cli.py", line 359, in doCommands
return self.yum_cli_commands[self.basecmd].doCommand(self,
self.basecmd, self.extcmds)
  File "/usr/share/yum-cli/yumcommands.py", line 150, in doCommand
return base.updatePkgs(extcmds)
  File "/usr/share/yum-cli/cli.py", line 628, in updatePkgs
self.doRepoSetup()
  File "/usr/share/yum-cli/cli.py", line 102, in doRepoSetup
yum.YumBase.doRepoSetup(self, thisrepo=thisrepo)
  File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 299, in
doRepoSetup
repo.setup(self.conf.cache)
  File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 503, in
setup
self._loadRepoXML(text=self)
  File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 530, in
_loadRepoXML
cache=self.http_caching == 'all')
  File "/usr/lib/yum-plugins/rhnplugin.py", line 208, in
_YumRepository__get
start, end, copy_local, checkfunc, text, reget, cache)
  File "/usr/lib/yum-plugins/rhnplugin.py", line 276, in
_noExceptionWrappingGet
http_headers=headers,
  File "/usr/lib/python2.4/site-packages/urlgrabber/grabber.py", line
927, in urlgrab
return self._retry(opts, retryfunc, url, filename)
  File "/usr/lib/python2.4/site-packages/urlgrabber/grabber.py", line
845, in _retry
r = apply(func, (opts,) + args, {})
  File "/usr/lib/python2.4/site-packages/urlgrabber/grabber.py", line
913, in retryfunc
fo = URLGrabberFileObject(url, filename, opts)
  File "/usr/lib/python2.4/site-packages/urlgrabber/grabber.py", line
1001, in __init__
self._do_open()
  File "/usr/lib/python2.4/site-packages/urlgrabber/grabber.py", line
1072, in _do_open
fo, hdr = self._make_request(req, opener)
  File "/usr/lib/python2.4/site-packages/urlgrabber/grabber.py", line
1172, in _make_request
fo = opener.open(req)
  File "/usr/lib/python2.4/urllib2.py", line 358, in open
response = self._open(req, data)
  File "/usr/lib/python2.4/urllib2.py", line 376, in _open
'_open', req)
  File "/usr/lib/python2.4/urllib2.py", line 337, in _call_chain
result = func(*args)
  File "/usr/lib/python2.4/urllib2.py", line 573, in 
lambda r, proxy=url, type=type, meth=self.proxy_open: \
  File "/usr/lib/python2.4/urllib2.py", line 597, in proxy_open
return self.parent.open(req)
  File "/usr/lib/python2.4/urllib2.py", line 358, in open
response = self._open(req, data)
  File "/usr/lib/python2.4/urllib2.py", line 376, in _open
'_open', req)
  File "/usr/lib/python2.4/urllib2.py", line 337, in _call_chain
result = func(*args)
  File "/usr/lib/python2.4/site-packages/M2Crypto/m2urllib2.py", line
66, in https_open
h.request(req.get_method(), req.get_full_url(), req.data, headers)
  File "/usr/lib/python2.4/httplib.py", line 804, in request
self._send_request(method, url, body, headers)
  File "/usr/lib/python2.4/httplib.py", line 827, in _send_request
self.endheaders()
  File "/usr/lib/python2.4/site-packages/M2Crypto/httpslib.py", line
145, in endheaders
HTTPSConnection.endheaders(self)
  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/site-packages/M2Crypto/httpslib.py", line
161, in connect
self._start_ssl()
  File "/usr/lib/python2.4/site-packages/M2Crypto/httpslib.py", line
176, in _start_ssl
self.sock.connect_ssl()
  File "/usr/lib/python2.4/site-packages/M2Crypto/SSL/Connection.py",
line 149, in connect_ssl
return m2.ssl_connect(self.ssl, self._timeout)
M2Crypto.SSL.SSLError: unknown protocol

As I said before, I am not familiar with either yum or python.  I have
read the faqs and docs and wiki at DUKE and been through RH KB and am no
further ahead.  I really don't want to open a ticket with RH until I
have to because that in itself is kinda painful.  If anyone can point me
in a proper direction I would appreciate.  Thanks.

Regards, Marshall

___
rhelv5-list mailin