[ckan-dev] UBUNTU package installation
Hildegard Gerlach
hildegard.gerlach at jrc.ec.europa.eu
Wed Dec 18 10:44:38 UTC 2013
Hi Nigel,
thank you, I tried it, but I get the same results. In fact in the
beginning I had it exactly as you say then I did some modifications. The
error message is Internal Server Error, and in the log file I get
[Wed Dec 18 11:13:26 2013] [error] [client 139.191.16.232] mod_wsgi
(pid=17609): Exception occurred processing WSGI script
'/etc/ckan/default/apache.wsgi'.
[Wed Dec 18 11:13:26 2013] [error] [client 139.191.16.232] Traceback
(most recent call last):
[Wed Dec 18 11:13:26 2013] [error] [client 139.191.16.232] File
"/usr/lib/ckan/default/lib/python2.7/site-packages/paste/cascade.py",
line 130, in __call__
[Wed Dec 18 11:13:26 2013] [error] [client 139.191.16.232] return
self.apps[-1](environ, start_response)
[Wed Dec 18 11:13:26 2013] [error] [client 139.191.16.232] File
"/usr/lib/ckan/default/src/ckan/ckan/config/middleware.py", line 213, in
__call__
[Wed Dec 18 11:13:26 2013] [error] [client 139.191.16.232] return
self.app(environ, start_response)
[Wed Dec 18 11:13:26 2013] [error] [client 139.191.16.232] File
"/usr/lib/ckan/default/lib/python2.7/site-packages/paste/registry.py",
line 379, in __call__
[Wed Dec 18 11:13:26 2013] [error] [client 139.191.16.232] app_iter =
self.application(environ, start_response)
[Wed Dec 18 11:13:26 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__
[Wed Dec 18 11:13:26 2013] [error] [client 139.191.16.232] app_iter =
app(environ, wrapper.wrap_start_response)
[Wed Dec 18 11:13:26 2013] [error] [client 139.191.16.232] File
"/usr/lib/ckan/default/lib/python2.7/site-packages/pylons/middleware.py", line
201, in __call__
[Wed Dec 18 11:13:26 2013] [error] [client 139.191.16.232] self.app,
environ, catch_exc_info=True)
[Wed Dec 18 11:13:26 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
[Wed Dec 18 11:13:26 2013] [error] [client 139.191.16.232] app_iter =
application(environ, start_response)
[Wed Dec 18 11:13:26 2013] [error] [client 139.191.16.232] File
"/usr/lib/ckan/default/lib/python2.7/site-packages/weberror/evalexception.py",
line 226, in __call__
[Wed Dec 18 11:13:26 2013] [error] [client 139.191.16.232] "The
EvalException middleware is not usable in a "
[Wed Dec 18 11:13:26 2013] [error] [client 139.191.16.232]
AssertionError: The EvalException middleware is not usable in a
multi-process environment
I found this article which seems the same problem but I don't understand
what I should change.
http://codeblow.com/questions/mod-wsgi-pylons-ckan-installation-no-longer-working/
Thanks
Hilde
On 12/17/2013 9:55 AM, Nigel Babu wrote:
> Hi HIlde,
>
> Can you try with your Apache config looking like this?
> http://dpaste.com/hold/1509259/
>
> Nigel Babu
>
> Developer | @nigelbabu <https://twitter.com/nigelbabu>
>
> TheOpen Knowledge Foundation <http://okfn.org/>
>
> Empowering through Open Knowledge
>
> http://okfn.org/| @okfn <http://twitter.com/OKFN>| OKF on Facebook
> <https://www.facebook.com/OKFNetwork>|Blog
> <http://blog.okfn.org/>|Newsletter <http://okfn.org/about/newsletter>
>
>
> CKAN |http://ckan.org/|@CKANproject
> <http://twitter.com/CKANproject>|the world’s leading open-source data
> portal platform
>
>
> On 16 December 2013 21:20, Hildegard Gerlach
> <hildegard.gerlach at jrc.ec.europa.eu
> <mailto:hildegard.gerlach at jrc.ec.europa.eu>> wrote:
>
> 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 <http://d01ri0702475.jrc.it>
> #ServerAlias www.default.ckanhosted.com
> <http://www.default.ckanhosted.com>
> ServerAlias d01ri0702475.jrc.it <http://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
> <http://d01ri0702475.jrc.it> display-name=ckan_default processes=2
> threads=15
> #WSGIDaemonProcess d01ri0702475.jrc.it
> <http://d01ri0702475.jrc.it> display-name=ckan_default threads=15
> #WSGIProcessGroup d01ri0702475.jrc.it <http://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
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org <mailto:ckan-dev at lists.okfn.org>
> https://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>
>
>
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
More information about the ckan-dev
mailing list