[ckan-dev] mod_wsgi error and mako templates
McDonaldR
McDonaldR at angus.gov.uk
Mon Feb 11 11:34:52 UTC 2019
Hi List
I've just upgraded to the latest 2.7.5 patch release (it's never as easy as the docs make out!) and I'm getting a 500 error in the apache2 logs:
mod_wsgi (pid=5269): Target WSGI script '/etc/ckan/default/apache.wsgi' cannot be loaded as Python module.
mod_wsgi (pid=5269): Exception occurred processing WSGI script '/etc/ckan/default/apache.wsgi'.
Traceback (most recent call last):
File "/etc/ckan/default/apache.wsgi", line 10, in <module>
application = loadapp('config:%s' % config_filepath)
File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 247, in loadapp
return loadobj(APP, uri, name=name, **kw)
File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 272, in loadobj
return context.create()
File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 710, in create
return self.object_type.invoke(self)
File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 146, in invoke
return fix_call(context.object, context.global_conf, **context.local_conf)
File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/deploy/util.py", line 55, in fix_call
val = callable(*args, **kw)
File "/usr/lib/ckan/default/src/ckan/ckan/config/middleware/__init__.py", line 49, in make_app
**app_conf)
File "/usr/lib/ckan/default/src/ckan/ckan/config/middleware/pylons_app.py", line 55, in make_pylons_stack
app = pylons_app = CKANPylonsApp()
File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/pylons/wsgiapp.py", line 80, in __init__
**def_eng['template_options'])
File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/pylons/templating.py", line 393, in __init__
self.prepare(default_engine, template_root, **config)
File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/pylons/templating.py", line 409, in prepare
'"%s" to use its functionality' % engine_name)
TemplateEngineMissing: Please install a plugin for "mako" to use its functionality
I'm running CKAN 2.7.5 on Ubuntu 14.04 with Apache2 and Nginx.
Permissions on apache.wsgi are
-rw-r--r-- 1 www-data root 405 Dec 12 12:25 apache.wsgi
Contents of apache.wsgi are
import os
activate_this = os.path.join('/usr/lib/ckan/default/bin/activate_this.py')
execfile(activate_this, dict(__file__=activate_this))
from paste.deploy import loadapp
config_filepath = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'production.ini')
from paste.script.util.logging_config import fileConfig
fileConfig(config_filepath)
application = loadapp('config:%s' % config_filepath)
Any pointers gratefully received
Ross
Ross McDonald | Geo-evangelist | Angus Council, People, IT | Angus House, Orchardbank Business Park, Sylvie Way, Forfar DD8 1AT | t: 01307 476419
This message is strictly confidential. If you have received this in error, please inform the sender and remove it from your system. If received in error you may not copy, print, forward or use it or any attachment in any way. This message is not capable of creating a legal contract or a binding representation and does not represent the views of Angus Council. Emails may be monitored for security and network management reasons. Messages containing inappropriate content may be intercepted. Angus Council does not accept any liability for any harm that may be caused to the recipient system or data on it by this message or any attachment.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20190211/bbf30611/attachment.html>
More information about the ckan-dev
mailing list