Ask Your Question
0

What would cause a SystemExit exception?

asked 2012-12-06 14:30:10 -0500

mrB gravatar image

updated 2012-12-07 06:31:45 -0500

Evgeny gravatar image

I just updated askbot-discussion.

The django.wsgi configuration is identical to what I had before the update.

$ cat django.wsgi

import os  
import sys  

current_directory = os.path.dirname(__file__)  
parent_directory = os.path.dirname(current_directory)  
module_name = os.path.basename(current_directory)  

sys.path.append(parent_directory)  
sys.path.append(current_directory)  
os.environ['DJANGO_SETTINGS_MODULE'] = '%s.settings' % module_name  
import django.core.handlers.wsgi  
application = django.core.handlers.wsgi.WSGIHandler()

Here is the traceback:

[Thu Dec 06 11:24:02 2012] [error] [client 127.0.0.1] mod_wsgi (pid=7183): SystemExit exception raised by WSGI script '/home/username/webapps/askbot/askbotSpirit/django.wsgi' ignored.  
[Thu Dec 06 11:24:02 2012] [error] [client 127.0.0.1] Traceback (most recent call last):  
[Thu Dec 06 11:24:02 2012] [error] [client 127.0.0.1]   File "/home/username/lib/python2.7/Django-1.3.1-py2.7.egg/django/core/handlers/wsgi.py", line 250, in __call__  
[Thu Dec 06 11:24:02 2012] [error] [client 127.0.0.1]     self.load_middleware()  
[Thu Dec 06 11:24:02 2012] [error] [client 127.0.0.1]   File "/home/username/lib/python2.7/Django-1.3.1-py2.7.egg/django/core/handlers/base.py", line 45, in load_middleware  
[Thu Dec 06 11:24:02 2012] [error] [client 127.0.0.1]     mod = import_module(mw_module)  
[Thu Dec 06 11:24:02 2012] [error] [client 127.0.0.1]   File "/home/username/lib/python2.7/Django-1.3.1-py2.7.egg/django/utils/importlib.py", line 35, in import_module  
[Thu Dec 06 11:24:02 2012] [error] [client 127.0.0.1]     __import__(name)  
[Thu Dec 06 11:24:02 2012] [error] [client 127.0.0.1]   File "/home/username/webapps/askbot/askbot-discussion/askbot/middleware/view_log.py", line 7, in <module>  
[Thu Dec 06 11:24:02 2012] [error] [client 127.0.0.1]     from askbot.models import signals  
[Thu Dec 06 11:24:02 2012] [error] [client 127.0.0.1]   File "/home/username/webapps/askbot/askbot-discussion/askbot/models/__init__.py", line 2, in <module>  
[Thu Dec 06 11:24:02 2012] [error] [client 127.0.0.1]     startup_procedures.run()  
[Thu Dec 06 11:24:02 2012] [error] [client 127.0.0.1]   File "/home/username/lib/python2.7/Django-1.3.1-py2.7.egg/django/db/transaction.py", line 217, in inner  
[Thu Dec 06 11:24:02 2012] [error] [client 127.0.0.1]     res = func(*args, **kwargs)  
[Thu Dec 06 11:24:02 2012] [error] [client 127.0.0.1]   File "/home/username/webapps/askbot/askbot-discussion/askbot/startup_procedures.py", line 886, in run  
[Thu Dec 06 11:24:02 2012] [error] [client 127.0.0.1]     sys.exit(1)  
[Thu Dec 06 11:24:02 2012] [error] [client 127.0.0.1] SystemExit: 1
edit retag flag offensive close merge delete

Comments

cooool answer for a newbye

filippo_810 gravatar imagefilippo_810 ( 2015-03-26 07:23:26 -0500 )edit

3 Answers

Sort by ยป oldest newest most voted
0

answered 2012-12-17 06:47:43 -0500

I get the same error on webfaction, It doesn't give any errors when I

python manage.py runserver 127.0.0.1:8500

but I'm getting the same

SystemExit exception raised by WSGI script
 '/home/username/webapps/askbot_app/askbot/django.wsgi' ignored.

in my log file, together with a 500 on the test site. I'm running Django 1.3.5 (mod_wsgi 3.3/Python 2.7), and I changed all the 1.3.1 to 1.3.5 as suggested in askbot.org/.../need-step-by-step-installation-procedure-in

What else can I try (edit the settings.py ... anything more specific?)

Thank you in advance, Alvaro

edit flag offensive delete link more
0

answered 2012-12-07 06:30:57 -0500

Evgeny gravatar image

updated 2012-12-07 06:31:17 -0500

Most likely either settings.py needs to be updated, database migrations run or some module installed.

As a rule of thumb it is good to have staging and production environments so that there is no chance to put your live site down by accident upon upgrades.

When upgrading - always first test the new version with django runserver command and you will get some useful hints.

edit flag offensive delete link more
0

answered 2015-03-25 11:10:51 -0500

Leonss gravatar image

was this ever solved? i face same problem installing ask bot on webfaction. In the logs it says

SystemExit exception raised by WSGI script...

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2012-12-06 14:30:10 -0500

Seen: 1,102 times

Last updated: Mar 25 '15