[ckan-dev] UBUNTU package installation

Hildegard Gerlach hildegard.gerlach at jrc.ec.europa.eu
Mon Dec 16 15:50:29 UTC 2013


Hello,

I had installed CKAN on UBUNTU as package installation and it had 
worked. Now I get errors but don't understand why. Some other software 
had been installed in the meantime and I am not sure if this can have 
changed something.
apache2 is used as WebServer

the configuration file for CKAN in sites-enabled is


WSGISocketPrefix /var/run/wsgi
<VirtualHost *:84>

     ServerName d01ri0702475.jrc.it
     #ServerAlias www.default.ckanhosted.com
     ServerAlias d01ri0702475.jrc.it
     WSGIScriptAlias / /etc/ckan/default/apache.wsgi

     # pass authorization info on (needed for rest api)
     WSGIPassAuthorization On

     # Deploy as a daemon (avoids conflicts between CKAN instances)
     #WSGIDaemonProcess ckan_default display-name=ckan_default 
processes=2 threads=15
     #WSGIDaemonProcess d01ri0702475.jrc.it display-name=ckan_default 
processes=2 threads=15
     #WSGIDaemonProcess d01ri0702475.jrc.it display-name=ckan_default 
threads=15
     #WSGIProcessGroup d01ri0702475.jrc.it

     ErrorLog /var/log/apache2/ckan_default.error.log
     CustomLog /var/log/apache2/ckan_default.custom.log combined
</VirtualHost>

The error message is
[Mon Dec 16 16:42:31 2013] [error] [client 139.191.16.232] mod_wsgi 
(pid=32003): Exception occurred processing WSGI script 
'/etc/ckan/default/apache.wsgi'.
[Mon Dec 16 16:42:31 2013] [error] [client 139.191.16.232] Traceback 
(most recent call last):
[Mon Dec 16 16:42:31 2013] [error] [client 139.191.16.232]   File 
"/usr/lib/ckan/default/lib/python2.7/site-packages/paste/cascade.py", 
line 130, in __call__
[Mon Dec 16 16:42:31 2013] [error] [client 139.191.16.232] return 
self.apps[-1](environ, start_response)
[Mon Dec 16 16:42:31 2013] [error] [client 139.191.16.232]   File 
"/usr/lib/ckan/default/src/ckan/ckan/config/middleware.py", line 213, in 
__call__
[Mon Dec 16 16:42:31 2013] [error] [client 139.191.16.232] return 
self.app(environ, start_response)
[Mon Dec 16 16:42:31 2013] [error] [client 139.191.16.232]   File 
"/usr/lib/ckan/default/lib/python2.7/site-packages/paste/registry.py", 
line 379, in __call__
[Mon Dec 16 16:42:31 2013] [error] [client 139.191.16.232] app_iter = 
self.application(environ, start_response)
[Mon Dec 16 16:42:31 2013] [error] [client 139.191.16.232]   File 
"/usr/lib/ckan/default/lib/python2.7/site-packages/repoze/who/middleware.py", 
line 107, in __call__
[Mon Dec 16 16:42:31 2013] [error] [client 139.191.16.232] app_iter = 
app(environ, wrapper.wrap_start_response)
[Mon Dec 16 16:42:31 2013] [error] [client 139.191.16.232]   File 
"/usr/lib/ckan/default/lib/python2.7/site-packages/pylons/middleware.py", line 
201, in __call__
[Mon Dec 16 16:42:31 2013] [error] [client 139.191.16.232] self.app, 
environ, catch_exc_info=True)
[Mon Dec 16 16:42:31 2013] [error] [client 139.191.16.232]   File 
"/usr/lib/ckan/default/lib/python2.7/site-packages/pylons/util.py", line 
94, in call_wsgi_application
[Mon Dec 16 16:42:31 2013] [error] [client 139.191.16.232] app_iter = 
application(environ, start_response)
[Mon Dec 16 16:42:31 2013] [error] [client 139.191.16.232]   File 
"/usr/lib/ckan/default/lib/python2.7/site-packages/weberror/evalexception.py", 
line 226, in __call__
[Mon Dec 16 16:42:31 2013] [error] [client 139.191.16.232]     "The 
EvalException middleware is not usable in a "
[Mon Dec 16 16:42:31 2013] [error] [client 139.191.16.232] 
AssertionError: The EvalException middleware is not usable in a 
multi-process environment


I don't understand what I have to change. Do I need these 
WSGIDaemonProcess lines, and if yes, how ?

Thanks

Hilde



More information about the ckan-dev mailing list