Skip to content
This repository has been archived by the owner on Aug 27, 2023. It is now read-only.

LDAP seems to be broken in alpine image #30

Open
prezhdarov opened this issue Jun 30, 2020 · 1 comment
Open

LDAP seems to be broken in alpine image #30

prezhdarov opened this issue Jun 30, 2020 · 1 comment

Comments

@prezhdarov
Copy link

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

@stevearc
Copy link
Owner

stevearc commented Jul 6, 2020

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants