简体   繁体   English

通过apache2在ckan 2.0上部署问题

[英]deploy issue on ckan 2.0 over apache2

I have the following problem after try to deploy ckan 2.0 over apache2. 尝试通过apache2部署ckan 2.0后,出现以下问题。 here is the log from apache: 这是来自Apache的日志:

tail -f /var/log/apache2/demo.ckan.net.error.log
[Tue Apr 02 10:34:34 2013] [error] [client 127.0.0.1]     return context.create()
[Tue Apr 02 10:34:34 2013] [error] [client 127.0.0.1]   File "/home/ubuntu-ckan-last/pyenv/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line 710, in create
[Tue Apr 02 10:34:34 2013] [error] [client 127.0.0.1]     return self.object_type.invoke(self)
[Tue Apr 02 10:34:34 2013] [error] [client 127.0.0.1]   File "/home/ubuntu-ckan-last/pyenv/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line 146, in invoke
[Tue Apr 02 10:34:34 2013] [error] [client 127.0.0.1]     return fix_call(context.object, context.global_conf, **context.local_conf)
[Tue Apr 02 10:34:34 2013] [error] [client 127.0.0.1]   File "/home/ubuntu-ckan-last/pyenv/lib/python2.6/site-packages/paste/deploy/util.py", line 56, in fix_call
[Tue Apr 02 10:34:34 2013] [error] [client 127.0.0.1]     val = callable(*args, **kw)
[Tue Apr 02 10:34:34 2013] [error] [client 127.0.0.1]   File "/home/ubuntu-ckan-last/pyenv/src/ckan/ckan/config/middleware.py", line 104, in make_app
[Tue Apr 02 10:34:34 2013] [error] [client 127.0.0.1]     who_parser.parse(open(app_conf['who.config_file']))
[Tue Apr 02 10:34:34 2013] [error] [client 127.0.0.1] KeyError: 'who.config_file'

i followed the latest documentation on how to deploy a ckan 2.1a instance over apache or nginx... 我遵循有关如何在apache或nginx上部署ckan 2.1a实例的最新文档...

thanks ! 谢谢 !

The error suggests it cannot find the who.config_file bit of your CKAN config file (eg std.ini): 该错误表明它找不到您的CKAN配置文件的who.config_file位(例如std.ini):

 [app:main]
 ...
 who.config_file = %(here)s/who.ini

However this is the first point in the code which accesses this config file, so it suggests the something more fundamental is up with the config file. 但是,这是访问此配置文件的代码中的第一点,因此它暗示了更基本的内容是配置文件。

Check your wsgi script file contains the correct path to your config file. 检查您的wsgi脚本文件是否包含配置文件的正确路径。 The line looks like this: 该行如下所示:

config_file = '/usr/local/demo.ckan.net/pyenv/src/ckan/development.ini'

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM