Specific error message: M2Crypto.SSL.SSLError: sslv3 alert handshake failure
Had wanted to direct error messages to do the title, later found the length is not allowed.
Today, a server disk IO some exceptions, then install iotop tools to view, find the installation error.
Some of the specific error message:
File "/usr/lib64/python2.4/urllib2.py", line 358, in open response = self._open(req, data) File "/usr/lib64/python2.4/urllib2.py", line 376, in _open '_open', req) File "/usr/lib64/python2.4/urllib2.py", line 337, in _call_chain result = func(*args) File "/usr/lib64/python2.4/site-packages/M2Crypto/m2urllib2.py", line 82, in https_open h.request(req.get_method(), req.get_selector(), req.data, headers) File "/usr/lib64/python2.4/httplib.py", line 810, in request self._send_request(method, url, body, headers) File "/usr/lib64/python2.4/httplib.py", line 833, in _send_request self.endheaders() File "/usr/lib64/python2.4/httplib.py", line 804, in endheaders self._send_output() File "/usr/lib64/python2.4/httplib.py", line 685, in _send_output self.send(msg) File "/usr/lib64/python2.4/httplib.py", line 652, in send self.connect() File "/usr/lib64/python2.4/site-packages/M2Crypto/httpslib.py", line 47, in connect self.sock.connect((self.host, self.port)) File "/usr/lib64/python2.4/site-packages/M2Crypto/SSL/Connection.py", line 174, in connect ret = self.connect_ssl() File "/usr/lib64/python2.4/site-packages/M2Crypto/SSL/Connection.py", line 167, in connect_ssl return m2.ssl_connect(self.ssl, self._timeout) M2Crypto.SSL.SSLError: sslv3 alert handshake failure
Check moment, originally I thought it was the lack of a certificate or module, but can not use yum, python upgrade does not work, yum still need to point to the original version of the old python.
So according to M2Crypto.SSL.SSLError: sslv3 alert handshake failure to search to see if there is no harvest. Most of the time on the use of requests urllib2 module or modules to operate, because the site sslv3 certificate is disabled due. But the situation is not much yum.
I stumbled upon a https://blog.csdn.net/aoerqileng/article/details/90545553 article, as is the case with me.
It turned out to be a warehouse repo add the address in question
[saltstack-repo] name=SaltStack repo for RHEL/CentOS $releasever baseurl=https://repo.saltstack.com/yum/redhat/$releasever/$basearch/latest enabled=1 gpgcheck=1 gpgkey=https://repo.saltstack.com/yum/redhat/$releasever/$basearch/latest/SALTSTACK-EL5-GPG-KEY.pub
Before adding the saltstack warehouse now there is a problem, it may be the reason saltstack official repository banned sslv3 leads.
The warehouse commented saltstack
cd /etc/yum.repo.d/ etc. salt stack rhel5.repo salt stack rhel5.repo.bak
Then yum can normally performed.