First time here? Check out the FAQ!
0

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?

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
andreysolo's avatar
1
andreysolo
asked 12 years ago
Evgeny's avatar
13.2k
Evgeny
updated 12 years ago

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.

Evgeny's avatar Evgeny (12 years ago)

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

andreysolo's avatar andreysolo (12 years ago)

Is this an upgrade or a new install? Have you tried to do what the messages suggest?

Evgeny's avatar Evgeny (12 years ago)

Package askbot took here https://github.com/ASKBOT/askbot-девел Yes, all the tasks of the message made.

andreysolo's avatar andreysolo (12 years ago)
see more comments

2 Answers

0

add this command on your settings.py file

ASKBOT_SELF_TEST = False

and
try this : "python manage.py collectstatic"
try this : "python manage.py syncdb --migrate --noinput"

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Sindbad's avatar
23
Sindbad
answered 10 years ago
link

Comments

see more comments
0

The startup procedures test your setup configuration, and in the case of error give you feedback about what can be incorrect and what can be done to fix the issues.

The best thing I can suggest is to make sure that the site works with the django's built-in webserver, which can be started with a command:

python manage.py runserver #if you run from your local computer or
python manage.py runserver  <ip_address/domain_name>:<port number> #for a remote server

After your site works this way - create a production deployment.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
answered 12 years ago
link

Comments

^C[scriptology@web325 myproject]$ python2.7 manage.py runserver 95.211.73.1:8000 Validating models...

Your output encoding is not UTF-8, there may be issues with the software when anything is printed to the terminal or log files


  • *
  • Askbot self-test *
  • *

Please attend to the following:

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

andreysolo's avatar andreysolo (12 years ago)

all is done, but the messages are still

andreysolo's avatar andreysolo (12 years ago)

Can you show your STATICFILES_DIRS? I think there is still some error.

Evgeny's avatar Evgeny (12 years ago)

my: STATICFILES_DIRS = ( ('default/media', os.path.join(ASKBOT_ROOT, 'media')), )

andreysolo's avatar andreysolo (12 years ago)

Ok, looks right. What is your version of askbot? How did you download the software. Can you email me your settings.py? (support@askbot.com).

Evgeny's avatar Evgeny (12 years ago)
see more comments