Erro after updating python-pyOpenSSL and/or python3-pyOpenSSL: "AttributeError: type object 'X509' has no attribute '_from_raw_x509_ptr'"
This document (7023582) is provided subject to the disclaimer at the end of this document.
Environment
SUSE Manager 3.2
SUSE Manager 3.1
Situation
vm-leberkaese:~ # systemctl -l status osa-dispatcher.service ● osa-dispatcher.service - OSA Dispatcher daemon Loaded: loaded (/usr/lib/systemd/system/osa-dispatcher.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since mar 2018-12-11 08:20:43 CET; 1h 34min ago Main PID: 2283 (code=killed, signal=TERM) dic 11 08:20:43 vm-leberkaese osa-dispatcher[18742]: Traceback (most recent call last): dic 11 08:20:43 vm-leberkaese osa-dispatcher[18742]: File "/usr/lib/python2.7/site-packages/OpenSSL/SSL.py", line 215, in wrapper dic 11 08:20:43 vm-leberkaese osa-dispatcher[18742]: cert = X509._from_raw_x509_ptr(x509) dic 11 08:20:43 vm-leberkaese osa-dispatcher[18742]: AttributeError: type object 'X509' has no attribute '_from_raw_x509_ptr' dic 11 08:20:43 vm-leberkaese osa-dispatcher[18742]: SUSE Manager 18742 2018/12/11 08:20:43 +02:00: ('Traceback caught:',) dic 11 08:20:43 vm-leberkaese osa-dispatcher[18742]: SUSE Manager 18742 2018/12/11 08:20:43 +02:00: ('Traceback (most recent call last):\n File "/usr/share/rhn/osad/jabber_lib.py", line 662, in connect\n ssl.do_handshake()\n File "/usr/lib/python2.7/site-packages/OpenSSL/SSL.py", line 1444, in do_handshake\n self._raise_ssl_error(self._ssl, result)\n File "/usr/lib/python2.7/site-packages/OpenSSL/SSL.py", line 1192, in _raise_ssl_error\n _raise_current_error()\n File "/usr/lib/python2.7/site-packages/OpenSSL/_util.py", line 48, in exception_from_error_queue\n raise exception_type(errors)\nError: [(\'SSL routines\', \'ssl3_get_server_certificate\', \'certificate verify failed\')]\n',) dic 11 08:20:43 vm-leberkaese systemd[1]: osa-dispatcher.service: Control process exited, code=exited status=1 dic 11 08:20:43 vm-leberkaese systemd[1]: Failed to start OSA Dispatcher daemon. dic 11 08:20:43 vm-leberkaese systemd[1]: osa-dispatcher.service: Unit entered failed state. dic 11 08:20:43 vm-leberkaese systemd[1]: osa-dispatcher.service: Failed with result 'exit-code'.
Resolution
Cause
Additional Information
Disclaimer
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:7023582
- Creation Date: 13-Dec-2018
- Modified Date:03-Mar-2020
-
- SUSE Linux Enterprise Server
- SUSE Manager
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com