使用CentIOS中的datapsuher权限被拒绝错误

时间:2015-10-21 17:22:34

标签: centos ckan

在CentOS上的CKAN(版本2.4.1)的实例中安装/配置扩展datapusher,按照源(生产步骤)中的安装指南的步骤,将datapusher安装在默认位置,配置Apache等。 ,用wsgi模块启动apache whitin错误:

[Wed Oct 21 17:54:53 2015] [info] mod_wsgi (pid=29799): Starting process 'ckan_gva_dp' with uid=48, gid=48 and threads=15.
[Wed Oct 21 17:54:53 2015] [info] mod_wsgi (pid=29800): Initializing Python.
[Wed Oct 21 17:54:53 2015] [info] mod_wsgi (pid=29804): Initializing Python.
[Wed Oct 21 17:54:53 2015] [info] mod_wsgi (pid=29805): Initializing Python.
[Wed Oct 21 17:54:53 2015] [notice] Apache/2.2.15 (Unix) DAV/2 mod_wsgi/3.2 Python/2.6.6 configured -- resuming normal operations
[Wed Oct 21 17:54:53 2015] [info] Server built: Aug 24 2015 17:50:06
[Wed Oct 21 17:54:53 2015] [info] mod_wsgi (pid=29806): Initializing Python.

但是当测试数据器调用端口8800时,请尝试回复500错误,并在日志中显示以下消息:

[Wed Oct 21 19:00:55 2015] [info] [client 10.115.100.69] mod_wsgi (pid=29800, process='ckan_gva_dp', application='ckan-gva:8800|'): Loading WSGI script '/etc/ckan/datapusher.wsgi'.
[Wed Oct 21 19:00:55 2015] [error] [client 10.115.100.69] mod_wsgi (pid=29800): Target WSGI script '/etc/ckan/datapusher.wsgi' cannot be loaded as Python module.
[Wed Oct 21 19:00:55 2015] [error] [client 10.115.100.69] mod_wsgi (pid=29800): Exception occurred processing WSGI script '/etc/ckan/datapusher.wsgi'.
[Wed Oct 21 19:00:55 2015] [error] [client 10.115.100.69] Traceback (most recent call last):
[Wed Oct 21 19:00:55 2015] [error] [client 10.115.100.69]   File "/etc/ckan/datapusher.wsgi", line 10, in <module>
[Wed Oct 21 19:00:55 2015] [error] [client 10.115.100.69]     web.init()
[Wed Oct 21 19:00:55 2015] [error] [client 10.115.100.69]   File "/usr/lib/ckan/datapusher/lib/python2.6/site-packages/ckanserviceprovider/web.py", line 50, in init
[Wed Oct 21 19:00:55 2015] [error] [client 10.115.100.69]     _configure_logger()
[Wed Oct 21 19:00:55 2015] [error] [client 10.115.100.69]   File "/usr/lib/ckan/datapusher/lib/python2.6/site-packages/ckanserviceprovider/web.py", line 121, in _configure_logger
[Wed Oct 21 19:00:55 2015] [error] [client 10.115.100.69]     _configure_logger_for_production(logging.getLogger())
[Wed Oct 21 19:00:55 2015] [error] [client 10.115.100.69]   File "/usr/lib/ckan/datapusher/lib/python2.6/site-packages/ckanserviceprovider/web.py", line 98, in _configure_logger_for_production
[Wed Oct 21 19:00:55 2015] [error] [client 10.115.100.69]     app.config.get('LOG_FILE'), maxBytes=67108864, backupCount=5)
[Wed Oct 21 19:00:55 2015] [error] [client 10.115.100.69]   File "/usr/lib/python2.6/logging/handlers.py", line 112, in __init__
[Wed Oct 21 19:00:55 2015] [error] [client 10.115.100.69]     BaseRotatingHandler.__init__(self, filename, mode, encoding, delay)
[Wed Oct 21 19:00:55 2015] [error] [client 10.115.100.69]   File "/usr/lib/python2.6/logging/handlers.py", line 64, in __init__
[Wed Oct 21 19:00:55 2015] [error] [client 10.115.100.69]     logging.FileHandler.__init__(self, filename, mode, encoding, delay)
[Wed Oct 21 19:00:55 2015] [error] [client 10.115.100.69]   File "/usr/lib/python2.6/logging/__init__.py", line 835, in __init__
[Wed Oct 21 19:00:55 2015] [error] [client 10.115.100.69]     StreamHandler.__init__(self, self._open())
[Wed Oct 21 19:00:55 2015] [error] [client 10.115.100.69]   File "/usr/lib/python2.6/logging/__init__.py", line 854, in _open
[Wed Oct 21 19:00:55 2015] [error] [client 10.115.100.69]     stream = open(self.baseFilename, self.mode)
[Wed Oct 21 19:00:55 2015] [error] [client 10.115.100.69] IOError: [Errno 13] Permission denied: '/tmp/ckan_service.log'

我尝试更改文件夹/ tmp(777)的权限,为wsgi脚本添加执行权限,检查requeriments.txt中指定的所有依赖项是否已安装,以及datapusher的活动环境等,ckan_service。日志是空的......

¿有些想法?

0 个答案:

没有答案