stevearc/pypicloud-docker

LDAP seems to be broken in alpine image

prezhdarov opened this issue · 1 comments

Hello,

Looks like there's something missing in alpine image:

ERROR 2020-06-30 11:47:20,398 [pypicloud.views] Error relocating /usr/local/lib/python3.6/site-packages/cryptography/hazmat/bindings/_openssl.abi3.so: RSA_get0_crt_params: symbol not found
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/pyramid/router.py", line 277, in default_execution_policy
return router.invoke_request(request)
File "/usr/local/lib/python3.6/site-packages/pyramid/router.py", line 252, in invoke_request
request._process_response_callbacks(response)
File "/usr/local/lib/python3.6/site-packages/pyramid/request.py", line 83, in _process_response_callbacks
callback(self, response)
File "/usr/local/lib/python3.6/site-packages/pyramid_beaker/init.py", line 30, in session_callback
self.persist()
File "/usr/local/lib/python3.6/site-packages/beaker/session.py", line 875, in persist
self._session().save()
File "/usr/local/lib/python3.6/site-packages/beaker/session.py", line 723, in save
self._create_cookie()
File "/usr/local/lib/python3.6/site-packages/beaker/session.py", line 737, in _create_cookie
val = self._encrypt_data()
File "/usr/local/lib/python3.6/site-packages/beaker/session.py", line 379, in _encrypt_data
return nonce + b64encode(self.crypto_module.aesEncrypt(data, encrypt_key))
File "/usr/local/lib/python3.6/site-packages/beaker/crypto/pyca_cryptography.py", line 21, in aesEncrypt
backend=default_backend()
File "/usr/local/lib/python3.6/site-packages/cryptography/hazmat/backends/init.py", line 15, in default_backend
from cryptography.hazmat.backends.openssl.backend import backend
File "/usr/local/lib/python3.6/site-packages/cryptography/hazmat/backends/openssl/init.py", line 7, in
from cryptography.hazmat.backends.openssl.backend import backend
File "/usr/local/lib/python3.6/site-packages/cryptography/hazmat/backends/openssl/backend.py", line 75, in
from cryptography.hazmat.bindings.openssl import binding
File "/usr/local/lib/python3.6/site-packages/cryptography/hazmat/bindings/openssl/binding.py", line 16, in
from cryptography.hazmat.bindings._openssl import ffi, lib
ImportError: Error relocating /usr/local/lib/python3.6/site-packages/cryptography/hazmat/bindings/_openssl.abi3.so: RSA_get0_crt_params: symbol not found

I pushed up a fix. It should now work in latest-alpine (build still needs to finish; might take ~30m), but the 1.1.1-py3-alpine container will stay as-is. The next point release will fix the 1.1.2-py3-alpine container.