How to fix "SystemExit" error in the startup_procedures?
After installation I see the error in the log:
[Sat Nov 24 14:04:10 2012] [error] [client 127.0.0.1] mod_wsgi (pid=12194): SystemExit exception raised by WSGI script '/home/scriptology/webapps/django_forum/myproject/myproject/wsgi.py' ignored.
[Sat Nov 24 14:04:10 2012] [error] [client 127.0.0.1] Traceback (most recent call last):
[Sat Nov 24 14:04:10 2012] [error] [client 127.0.0.1] File "/home/scriptology/webapps/django_forum/lib/python2.7/django/core/handlers/wsgi.py", line 219, in __call__
[Sat Nov 24 14:04:10 2012] [error] [client 127.0.0.1] self.load_middleware()
[Sat Nov 24 14:04:10 2012] [error] [client 127.0.0.1] File "/home/scriptology/webapps/django_forum/lib/python2.7/django/core/handlers/base.py", line 45, in load_middleware
[Sat Nov 24 14:04:10 2012] [error] [client 127.0.0.1] mod = import_module(mw_module)
[Sat Nov 24 14:04:10 2012] [error] [client 127.0.0.1] File "/home/scriptology/webapps/django_forum/lib/python2.7/django/utils/importlib.py", line 35, in import_module
[Sat Nov 24 14:04:10 2012] [error] [client 127.0.0.1] __import__(name)
[Sat Nov 24 14:04:10 2012] [error] [client 127.0.0.1] File "/home/scriptology/lib/python2.7/askbot-0.7.44-py2.7.egg/askbot/middleware/view_log.py", line 7, in <module>
[Sat Nov 24 14:04:10 2012] [error] [client 127.0.0.1] from askbot.models import signals
[Sat Nov 24 14:04:10 2012] [error] [client 127.0.0.1] File "/home/scriptology/lib/python2.7/askbot-0.7.44-py2.7.egg/askbot/models/__init__.py", line 2, in <module>
[Sat Nov 24 14:04:10 2012] [error] [client 127.0.0.1] startup_procedures.run()
[Sat Nov 24 14:04:10 2012] [error] [client 127.0.0.1] File "/home/scriptology/webapps/django_forum/lib/python2.7/django/db/transaction.py", line 209, in inner
[Sat Nov 24 14:04:10 2012] [error] [client 127.0.0.1] return func(*args, **kwargs)
[Sat Nov 24 14:04:10 2012] [error] [client 127.0.0.1] File "/home/scriptology/lib/python2.7/askbot-0.7.44-py2.7.egg/askbot/startup_procedures.py", line 886, in run
[Sat Nov 24 14:04:10 2012] [error] [client 127.0.0.1] sys.exit(1)
[Sat Nov 24 14:04:10 2012] [error] [client 127.0.0.1] SystemExit: 1
How to fix the problem?
Comments
Have you tried running with django's runserver? Also - of the two of your questions - could you delete one please, they look the same.
Yes. I see the message: 1) Add to STATICFILES_DIRS the following entry: ('default / media', os.path.join (ASKBOT_ROOT, 'media')),
2) Run command (after fixing the above errors) python manage.py collectstatic
Is this an upgrade or a new install? Have you tried to do what the messages suggest?
Package askbot took here https://github.com/ASKBOT/askbot-девел Yes, all the tasks of the message made.