Hi - I hope someone can help as I'm not really familiar with ansible. When
I try to install OpenWISP2 on a Raspberry Pi 3 (Rasbian stretch 4.14.79)
using the following command
ansible-playbook -i hosts playbook.yml -u pi -k --become -K
everything runs normal until the "pip install django-redis" command (see
below). I tried to manually install django-redis from the commandline, but
this didn't help (as I guess ansible works in its own environment). It
looks like the ansible environment simply misses some ssl certs to validate
the https connection to the repository, but I don't know how to fix. Any
ideas?
Dirk
TASK [openwisp.openwisp2 : Install django-redis]
**********************************************************************
fatal: [10.0.2.241]: FAILED! => {"changed": false, "cmd":
["/opt/openwisp2/env/bin/pip", "install", "django-redis>=4.9.0"], "msg":
"stdout: Looking in indexes: https://pypi.org/simple,
https://www.piwheels.org/simple\nCollecting django-redis>=4.9.0\n Could
not fetch URL https://pypi.org/simple/django-redis/: There was a problem
confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org',
port=443): Max retries exceeded with url: /simple/django-redis/ (Caused by
SSLError(SSLError(\"bad handshake: Error([('SSL routines',
'tls_process_server_certificate', 'certificate verify failed')],)\",),)) -
skipping\n Could not fetch URL
https://www.piwheels.org/simple/django-redis/: There was a problem
confirming the ssl certificate:
HTTPSConnectionPool(host='www.piwheels.org', port=443): Max retries
exceeded with url: /simple/django-redis/ (Caused by SSLError(SSLError(\"bad
handshake: Error([('SSL routines', 'tls_process_server_certificate',
'certificate verify failed')],)\",),)) - skipping\n\n:stderr: From cffi
callback <function _verify_callback at 0x756e6c48>:\nTraceback (most recent
call last):\n File
\"/opt/openwisp2/env/lib/python3.5/site-packages/OpenSSL/SSL.py\", line
309, in wrapper\n _lib.X509_up_ref(x509)\nAttributeError: module 'lib'
has no attribute 'X509_up_ref'\n Retrying (Retry(total=4, connect=None,
read=None, redirect=None, status=None)) after connection broken by
'SSLError(SSLError(\"bad handshake: Error([('SSL routines',
'tls_process_server_certificate', 'certificate verify failed')],)\",),)':
/simple/django-redis/\nFrom cffi callback <function _verify_callback at
0x75707198>:\nTraceback (most recent call last):\n File
\"/opt/openwisp2/env/lib/python3.5/site-packages/OpenSSL/SSL.py\", line
309, in wrapper\n _lib.X509_up_ref(x509)\nAttributeError: module 'lib'
has no attribute 'X509_up_ref'\n Retrying (Retry(total=3, connect=None,
read=None, redirect=None, status=None)) after connection broken by
'SSLError(SSLError(\"bad handshake: Error([('SSL routines',
'tls_process_server_certificate', 'certificate verify failed')],)\",),)':
/simple/django-redis/\nFrom cffi callback <function _verify_callback at
0x757072b8>:\nTraceback (most recent call last):\n File
\"/opt/openwisp2/env/lib/python3.5/site-packages/OpenSSL/SSL.py\", line
309, in wrapper\n _lib.X509_up_ref(x509)\nAttributeError: module 'lib'
has no attribute 'X509_up_ref'\n Retrying (Retry(total=2, connect=None,
read=None, redirect=None, status=None)) after connection broken by
'SSLError(SSLError(\"bad handshake: Error([('SSL routines',
'tls_process_server_certificate', 'certificate verify failed')],)\",),)':
/simple/django-redis/\nFrom cffi callback <function _verify_callback at
0x757073d8>:\nTraceback (most recent call last):\n File
\"/opt/openwisp2/env/lib/python3.5/site-packages/OpenSSL/SSL.py\", line
309, in wrapper\n _lib.X509_up_ref(x509)\nAttributeError: module 'lib'
has no attribute 'X509_up_ref'\n Retrying (Retry(total=1, connect=None,
read=None, redirect=None, status=None)) after connection broken by
'SSLError(SSLError(\"bad handshake: Error([('SSL routines',
'tls_process_server_certificate', 'certificate verify failed')],)\",),)':
/simple/django-redis/\nFrom cffi callback <function _verify_callback at
0x757074f8>:\nTraceback (most recent call last):\n File
\"/opt/openwisp2/env/lib/python3.5/site-packages/OpenSSL/SSL.py\", line
309, in wrapper\n _lib.X509_up_ref(x509)\nAttributeError: module 'lib'
has no attribute 'X509_up_ref'\n Retrying (Retry(total=0, connect=None,
read=None, redirect=None, status=None)) after connection broken by
'SSLError(SSLError(\"bad handshake: Error([('SSL routines',
'tls_process_server_certificate', 'certificate verify failed')],)\",),)':
/simple/django-redis/\nFrom cffi callback <function _verify_callback at
0x75707618>:\nTraceback (most recent call last):\n File
\"/opt/openwisp2/env/lib/python3.5/site-packages/OpenSSL/SSL.py\", line
309, in wrapper\n _lib.X509_up_ref(x509)\nAttributeError: module 'lib'
has no attribute 'X509_up_ref'\nFrom cffi callback <function
_verify_callback at 0x756e6978>:\nTraceback (most recent call last):\n
File \"/opt/openwisp2/env/lib/python3.5/site-packages/OpenSSL/SSL.py\",
line 309, in wrapper\n _lib.X509_up_ref(x509)\nAttributeError: module
'lib' has no attribute 'X509_up_ref'\n Retrying (Retry(total=4,
connect=None, read=None, redirect=None, status=None)) after connection
broken by 'SSLError(SSLError(\"bad handshake: Error([('SSL routines',
'tls_process_server_certificate', 'certificate verify failed')],)\",),)':
/simple/django-redis/\nFrom cffi callback <function _verify_callback at
0x75707618>:\nTraceback (most recent call last):\n File
\"/opt/openwisp2/env/lib/python3.5/site-packages/OpenSSL/SSL.py\", line
309, in wrapper\n _lib.X509_up_ref(x509)\nAttributeError: module 'lib'
has no attribute 'X509_up_ref'\n Retrying (Retry(total=3, connect=None,
read=None, redirect=None, status=None)) after connection broken by
'SSLError(SSLError(\"bad handshake: Error([('SSL routines',
'tls_process_server_certificate', 'certificate verify failed')],)\",),)':
/simple/django-redis/\nFrom cffi callback <function _verify_callback at
0x75707540>:\nTraceback (most recent call last):\n File
\"/opt/openwisp2/env/lib/python3.5/site-packages/OpenSSL/SSL.py\", line
309, in wrapper\n _lib.X509_up_ref(x509)\nAttributeError: module 'lib'
has no attribute 'X509_up_ref'\n Retrying (Retry(total=2, connect=None,
read=None, redirect=None, status=None)) after connection broken by
'SSLError(SSLError(\"bad handshake: Error([('SSL routines',
'tls_process_server_certificate', 'certificate verify failed')],)\",),)':
/simple/django-redis/\nFrom cffi callback <function _verify_callback at
0x757073d8>:\nTraceback (most recent call last):\n File
\"/opt/openwisp2/env/lib/python3.5/site-packages/OpenSSL/SSL.py\", line
309, in wrapper\n _lib.X509_up_ref(x509)\nAttributeError: module 'lib'
has no attribute 'X509_up_ref'\n Retrying (Retry(total=1, connect=None,
read=None, redirect=None, status=None)) after connection broken by
'SSLError(SSLError(\"bad handshake: Error([('SSL routines',
'tls_process_server_certificate', 'certificate verify failed')],)\",),)':
/simple/django-redis/\nFrom cffi callback <function _verify_callback at
0x757072b8>:\nTraceback (most recent call last):\n File
\"/opt/openwisp2/env/lib/python3.5/site-packages/OpenSSL/SSL.py\", line
309, in wrapper\n _lib.X509_up_ref(x509)\nAttributeError: module 'lib'
has no attribute 'X509_up_ref'\n Retrying (Retry(total=0, connect=None,
read=None, redirect=None, status=None)) after connection broken by
'SSLError(SSLError(\"bad handshake: Error([('SSL routines',
'tls_process_server_certificate', 'certificate verify failed')],)\",),)':
/simple/django-redis/\nFrom cffi callback <function _verify_callback at
0x75707198>:\nTraceback (most recent call last):\n File
\"/opt/openwisp2/env/lib/python3.5/site-packages/OpenSSL/SSL.py\", line
309, in wrapper\n _lib.X509_up_ref(x509)\nAttributeError: module 'lib'
has no attribute 'X509_up_ref'\n Could not find a version that satisfies
the requirement django-redis>=4.9.0 (from versions: )\nNo matching
distribution found for django-redis>=4.9.0\n"}
to retry, use: --limit
@/home/pi/openwisp2-ansible-playbook/playbook.retry
PLAY RECAP
************************************************************************************************************
10.0.2.241 : ok=26 changed=0 unreachable=0 failed=1
--
You received this message because you are subscribed to the Google Groups
"OpenWISP" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.