First time here? Check out the FAQ!
0

What would cause a SystemExit exception?

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
mrB's avatar
51
mrB
asked 2012-12-06 14:30:10 -0500
Evgeny's avatar
13.2k
Evgeny
updated 2012-12-07 06:31:45 -0500
edit flag offensive 0 remove flag close merge delete

Comments

cooool answer for a newbye

filippo_810's avatar filippo_810 (2015-03-26 07:23:26 -0500) edit
add a comment see more comments

3 Answers

0

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

alphydan's avatar
1
alphydan
answered 2012-12-17 06:47:43 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments
0

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.

Evgeny's avatar
13.2k
Evgeny
answered 2012-12-07 06:30:57 -0500, updated 2012-12-07 06:31:17 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments
0

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

SystemExit exception raised by WSGI script...

Leonss's avatar
1
Leonss
answered 2015-03-25 11:10:51 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments