2017-05-19 143 views
0

當我訪問一個CKAN的網站頁面,我得到一個錯誤:「服務器錯誤」狀態500: Server Error. An internal server error occurredCKAN錯誤:服務器錯誤500

如何制定出了什麼問題?

我該如何獲得幫助?

回答

0

這個錯誤可能意味着很多東西。 (從技術上講,服務器處理您的請求時出現異常。)

您的服務器日誌會告訴您發生了什麼事。在大多數情況下,你可以看到它在這個文件:

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

即會啓動與「回溯」,並用線<error-type>: <message>結束。

當尋求幫助時,提供所有這些行 - 不要只說你有一個「500服務器錯誤」。

你可以在這裏用StackOverflow詢問,使用標籤#ckan。或者加入ckan-dev電子郵件列表,並在那裏詢問。