2013-07-24 7 views
0

내가 여기에 게시 지시를 사용하여 AWS에 기본 CKAN 사이트를 설정하기 위해 노력하고있어 : https://github.com/okfn/ckan/wiki/How-to-Install-CKAN-2.0-from-source-on-Ubuntu-12.04-on-EC2#create-ckan-users-500 내부 서버 오류

튜토리얼을 통해 내 방식대로 작업 후, 나는 여기에 앉아있어 500 Internal Server Error (내부 서버 오류) 페이지를보고 있습니다. 파머.

저는 웹 응용 프로그램 용으로 파이썬을 사용하는 데 익숙하지 않고 wsgi 스크립트를 실제로 이해하지 못하기 때문에 뭔가 분명하지 않은 점을 용서해줍니다. 여기 내 오류 로그에서 추적합니다. 내가 어디에 있어야하는지에 대한 어떤 힌트라도 크게 감사 할 것입니다. 건배.

>[Wed Jul 24 21:02:40 2013] [error] [client 192.245.194.253] mod_wsgi (pid=13943): Target WSGI script '/home/ubuntu/public_html/mysite.com/pyenv/bin/mothership.py' can$ 
>[Wed Jul 24 21:02:40 2013] [error] [client 192.245.194.253] mod_wsgi (pid=13943): Exception occurred processing WSGI script '/home/ubuntu/public_html/mysite.com/pyenv$ 
>[Wed Jul 24 21:02:40 2013] [error] [client 192.245.194.253] Traceback (most recent call last): 
>[Wed Jul 24 21:02:40 2013] [error] [client 192.245.194.253] File "/home/ubuntu/public_html/mysite.com/pyenv/bin/mothership.py", line 10, in <module> 
>[Wed Jul 24 21:02:40 2013] [error] [client 192.245.194.253]  fileConfig(config_filepath) 
>[Wed Jul 24 21:02:40 2013] [error] [client 192.245.194.253] File "/home/ubuntu/public_html/mysite.com/pyenv/lib/python2.7/site-packages/paste/script/util/logging_co$ 
>[Wed Jul 24 21:02:40 2013] [error] [client 192.245.194.253]  handlers = _install_handlers(cp, formatters) 
>[Wed Jul 24 21:02:40 2013] [error] [client 192.245.194.253] File "/home/ubuntu/public_html/mysite.com/pyenv/lib/python2.7/site-packages/paste/script/util/logging_co$ 
>[Wed Jul 24 21:02:40 2013] [error] [client 192.245.194.253]  h = apply(klass, args) 
>[Wed Jul 24 21:02:40 2013] [error] [client 192.245.194.253] TypeError: __init__() takes at most 2 arguments (5 given) 
>[Wed Jul 24 21:02:40 2013] [error] [client 192.245.194.253] mod_wsgi (pid=13942): Target WSGI script '/home/ubuntu/public_html/mysite.com/pyenv/bin/mothership.py' can$ 
>[Wed Jul 24 21:02:40 2013] [error] [client 192.245.194.253] mod_wsgi (pid=13942): Exception occurred processing WSGI script '/home/ubuntu/public_html/mysite.com/pyenv$ 
>[Wed Jul 24 21:02:40 2013] [error] [client 192.245.194.253] Traceback (most recent call last): 
>[Wed Jul 24 21:02:40 2013] [error] [client 192.245.194.253] File "/home/ubuntu/public_html/mysite.com/pyenv/bin/mothership.py", line 10, in <module> 
>[Wed Jul 24 21:02:40 2013] [error] [client 192.245.194.253]  fileConfig(config_filepath) 
>[Wed Jul 24 21:02:40 2013] [error] [client 192.245.194.253] File "/home/ubuntu/public_html/mysite.com/pyenv/lib/python2.7/site-packages/paste/script/util/logging_co$ 
>[Wed Jul 24 21:02:40 2013] [error] [client 192.245.194.253]  handlers = _install_handlers(cp, formatters) 
>[Wed Jul 24 21:02:40 2013] [error] [client 192.245.194.253] File "/home/ubuntu/public_html/mysite.com/pyenv/lib/python2.7/site-packages/paste/script/util/logging_co$ 
>[Wed Jul 24 21:02:40 2013] [error] [client 192.245.194.253]  h = apply(klass, args) 
>[Wed Jul 24 21:02:40 2013] [error] [client 192.245.194.253] TypeError: __init__() takes at most 2 arguments (5 given) 

답변

3

This mailing thread seems to be the answer. (추적 파일의 일부를 검색하여 찾았습니다.)

구성 ini 파일의 로깅 구성. 로깅 인수는 다음과 같이 표시되어야합니다.

args = ("/var/log/ckan/[yoursite.com]/ckan.log", "a", 20000000, 9)