CKAN error: Server Error 500

CKAN error: Server Error 500

当我访问 CKAN 站点的页面时,出现错误:"Server Error",状态为 500:

如何找出问题所在?

我如何获得帮助?

这个错误可能意味着很多事情。 (从技术上讲,服务器在处理您的请求时发生异常。)

您的服务器日志会告诉您发生了什么。在大多数情况下,您可以在这个文件中看到它:

/var/log/apache2/ckan_default.error.log

一个错误的详细信息如下所示:

[Sat Sep 28 10:50:14 2013] [error] [client 81.102.118.195] Traceback (most recent call last):
[Sat Sep 28 10:50:14 2013] [error] [client 81.102.118.195]   File "/var/ckan/wsgi_app.py", line 8, in 
[Sat Sep 28 10:50:14 2013] [error] [client 81.102.118.195]     fileConfig(config_filepath)
[Sat Sep 28 10:50:14 2013] [error] [client 81.102.118.195]   File "/home/co/ckan/lib/python2.7/site-packages/paste/script/util/logging_config.py", line 85, in fileConfig
[Sat Sep 28 10:50:14 2013] [error] [client 81.102.118.195]     handlers = _install_handlers(cp, formatters)
[Sat Sep 28 10:50:14 2013] [error] [client 81.102.118.195]   File "/home/co/ckan/lib/python2.7/site-packages/paste/script/util/logging_config.py", line 158, in _install_handlers
[Sat Sep 28 10:50:14 2013] [error] [client 81.102.118.195]     h = apply(klass, args)
[Sat Sep 28 10:50:14 2013] [error] [client 81.102.118.195]   File "/usr/lib/python2.7/logging/handlers.py", line 118, in __init__
[Sat Sep 28 10:50:14 2013] [error] [client 81.102.118.195]     BaseRotatingHandler.__init__(self, filename, mode, encoding, delay)
[Sat Sep 28 10:50:14 2013] [error] [client 81.102.118.195]   File "/usr/lib/python2.7/logging/handlers.py", line 65, in __init__
[Sat Sep 28 10:50:14 2013] [error] [client 81.102.118.195]     logging.FileHandler.__init__(self, filename, mode, encoding, delay)
[Sat Sep 28 10:50:14 2013] [error] [client 81.102.118.195]   File "/usr/lib/python2.7/logging/__init__.py", line 897, in __init__
[Sat Sep 28 10:50:14 2013] [error] [client 81.102.118.195]     StreamHandler.__init__(self, self._open())
[Sat Sep 28 10:50:14 2013] [error] [client 81.102.118.195]   File "/usr/lib/python2.7/logging/__init__.py", line 916, in _open
[Sat Sep 28 10:50:14 2013] [error] [client 81.102.118.195]     stream = open(self.baseFilename, self.mode)
[Sat Sep 28 10:50:14 2013] [error] [client 81.102.118.195] IOError: [Errno 13] Permission denied: '/var/log/ckan/ckan.log'

即它以 "Traceback" 开头,以 <error-type>: <message>.

行结束

寻求帮助时,提供所有这些行 - 不要只说您有“500 服务器错误”。

您可以在 Whosebug 上使用标签 #ckan 提问。或者加入 ckan-dev 电子邮件列表并在那里询问。