running subprocess.Popen under apache+mod_wsgi is always returning an error with a returncode of -6

后端 未结 1 1780
长发绾君心
长发绾君心 2021-01-12 04:08

I\'m hoping someone\'s seen this -

I\'m running django-compressor, taking advantage of the lessc setup to render/compress the less into CSS on the file. It works pe

1条回答
  •  伪装坚强ぢ
    2021-01-12 04:28

    Are you using Python 2.7.2 by chance?

    That version of Python introduced a bug which cause fork() in sub interpreters to fail:

    http://bugs.python.org/issue13156

    You will have to force WSGI application to run in main Python interpreter of the process by setting:

    WSGIApplicationGroup %{GLOBAL}
    

    If running multiple Django applications you need to ensure that only the one affected has this configuration directive applied to it else you would cause all Django applications to run in one interpreter which isn't possible due to how Django configuration works.

    0 讨论(0)
提交回复
热议问题