CKAN错误:服务器错误500

时间:2017-05-19 16:04:19

标签: ckan

当我访问CKAN网站的页面时,出现错误:"服务器错误"状态500: Server Error. An internal server error occurred

我如何弄清楚出了什么问题?

我如何获得帮助?

1 个答案:

答案 0 :(得分:1)

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

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

/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'

即。它始于&#34; Traceback&#34;以<error-type>: <message>行结束。

在寻求帮助时,请提供所有这些内容 - 不要只是说你有一个&#34; 500服务器错误&#34;。

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