Eucaconsole version 4.3 cannot coexist with python-nss package


Eucaconsole version 4.3 will not function properly if the Python library python-nss is installed on the system. The python-nss library will not be installed by default if the system was built using a minimal Centos/RHEL ISO.

If python-nss is present, the error below will be seen when starting eucaconsole:

2016-07-05 08:42:42 ERROR Error handling request
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/gunicorn/workers/", line 45, in handle
self.handle_request(listener, req, client, addr)
File "/usr/lib/python2.7/site-packages/gunicorn/workers/", line 93, in handle_request
respiter = self.wsgi(environ, resp.start_response)
File "/usr/lib/python2.7/site-packages/pyramid/", line 242, in _call_
response = self.invoke_subrequest(request, use_tweens=True)
File "/usr/lib/python2.7/site-packages/pyramid/", line 220, in invoke_subrequest
File "/usr/lib/python2.7/site-packages/pyramid/", line 84, in _process_response_callbacks
callback(self, response)
File "/usr/lib/python2.7/site-packages/pyramid_beaker/", line 30, in session_callback
File "/usr/lib/python2.7/site-packages/Beaker-1.8.0-py2.7.egg/beaker/", line 735, in persist
File "/usr/lib/python2.7/site-packages/Beaker-1.8.0-py2.7.egg/beaker/", line 595, in save
File "/usr/lib/python2.7/site-packages/Beaker-1.8.0-py2.7.egg/beaker/", line 609, in _create_cookie
val = self._encrypt_data()
File "/usr/lib/python2.7/site-packages/Beaker-1.8.0-py2.7.egg/beaker/", line 273, in _encrypt_data
return nonce + b64encode(crypto.aesEncrypt(data, encrypt_key))
File "/usr/lib/python2.7/site-packages/Beaker-1.8.0-py2.7.egg/beaker/crypto/", line 16, in aesEncrypt
nss.nss.CKA_ENCRYPT, nss.nss.SecItem(key))
NSPRError: (SEC_ERROR_PKCS11_DEVICE_ERROR) A PKCS #11 module returned CKR_DEVICE_ERROR, indicating that a problem has occurred with the token or slot.

In order to correct this error and get eucaconsole to function properly, uninstall the python-nss RPM with the 'yum' or 'rpm' commands.

NOTE: This is only relevant to Eucaconsole version 4.3. Versions 4.2.x and below will not encounter this issue.

This is described in further detail in issue GUI-2700

Have more questions? Submit a request


Powered by Zendesk