0

Starting up a dockerised django application as a mod wsgi app via apache. Getting an endless stream of below errors.

Errors:

2022-06-02 16:05:12.225137 [notice] [pid 10002] mpm_unix.c(436): [client AH00052: child pid 10992 exit signal Aborted (6)
2022-06-02 16:05:12.225382 [info] [pid 10002] src/server/mod_wsgi.c(7761): [client mod_wsgi (pid=10992): Process 'some.someapp.com' has died, deregister and restart it.
2022-06-02 16:05:12.225411 [info] [pid 10002] src/server/mod_wsgi.c(7775): [client mod_wsgi (pid=10992): Process 'some.someapp.com' terminated by signal 6
2022-06-02 16:05:12.225433 [info] [pid 10002] src/server/mod_wsgi.c(7846): [client mod_wsgi (pid=10992): Process 'some.someapp.com' has been deregistered and will no longer be monitored.
2022-06-02 16:05:12.227789 [notice] [pid 10002] mpm_unix.c(436): [client AH00052: child pid 10993 exit signal Aborted (6)
2022-06-02 16:05:12.227856 [info] [pid 10002] src/server/mod_wsgi.c(7761): [client mod_wsgi (pid=10993): Process 'some.someapp.com' has died, deregister and restart it.
2022-06-02 16:05:12.227874 [info] [pid 10002] src/server/mod_wsgi.c(7775): [client mod_wsgi (pid=10993): Process 'some.someapp.com' terminated by signal 6
2022-06-02 16:05:12.227896 [info] [pid 10002] src/server/mod_wsgi.c(7846): [client mod_wsgi (pid=10993): Process 'some.someapp.com' has been deregistered and will no longer be monitored.
2022-06-02 16:05:12.228150 [info] [pid 10994] src/server/mod_wsgi.c(9381): [client mod_wsgi (pid=10994): Starting process 'some.someapp.com' with uid=2, gid=2 and threads=30.
2022-06-02 16:05:12.229803 [info] [pid 10995] src/server/mod_wsgi.c(9381): [client mod_wsgi (pid=10995): Starting process 'some.someapp.com' with uid=2, gid=2 and threads=30.
2022-06-02 16:05:12.230033 [info] [pid 10994] src/server/wsgi_interp.c(2260): [client mod_wsgi (pid=10994): Initializing Python.
2022-06-02 16:05:12.231306 [info] [pid 10995] src/server/wsgi_interp.c(2260): [client mod_wsgi (pid=10995): Initializing Python.

Fatal Python error: Can't initialize list type
Fatal Python error: Can't initialize list type


2022-06-02 16:03:45.844931 [notice] [pid 10002] mpm_unix.c(436): [client AH00052: child pid 10819 exit signal Aborted (6)
2022-06-02 16:03:45.845108 [info] [pid 10002] src/server/mod_wsgi.c(7761): [client mod_wsgi (pid=10819): Process 'some.someapp.com' has died, deregister and restart it.
2022-06-02 16:03:45.845125 [info] [pid 10002] src/server/mod_wsgi.c(7775): [client mod_wsgi (pid=10819): Process 'some.someapp.com' terminated by signal 6
2022-06-02 16:03:45.845139 [info] [pid 10002] src/server/mod_wsgi.c(7846): [client mod_wsgi (pid=10819): Process 'some.someapp.com' has been deregistered and will no longer be monitored.
2022-06-02 16:03:45.846905 [notice] [pid 10002] mpm_unix.c(436): [client AH00052: child pid 10820 exit signal Aborted (6)
2022-06-02 16:03:45.846964 [info] [pid 10002] src/server/mod_wsgi.c(7761): [client mod_wsgi (pid=10820): Process 'some.someapp.com' has died, deregister and restart it.
2022-06-02 16:03:45.846977 [info] [pid 10002] src/server/mod_wsgi.c(7775): [client mod_wsgi (pid=10820): Process 'some.someapp.com' terminated by signal 6
2022-06-02 16:03:45.846988 [info] [pid 10002] src/server/mod_wsgi.c(7846): [client mod_wsgi (pid=10820): Process 'some.someapp.com' has been deregistered and will no longer be monitored.
2022-06-02 16:03:45.847698 [info] [pid 10821] src/server/mod_wsgi.c(9381): [client mod_wsgi (pid=10821): Starting process 'some.someapp.com' with uid=2, gid=2 and threads=30.
2022-06-02 16:03:45.848454 [info] [pid 10822] src/server/mod_wsgi.c(9381): [client mod_wsgi (pid=10822): Starting process 'some.someapp.com' with uid=2, gid=2 and threads=30.
2022-06-02 16:03:45.850028 [info] [pid 10822] src/server/wsgi_interp.c(2260): [client mod_wsgi (pid=10822): Initializing Python.
2022-06-02 16:03:45.850029 [info] [pid 10821] src/server/wsgi_interp.c(2260): [client mod_wsgi (pid=10821): Initializing Python.
Fatal Python error: Can't initialize xrange type
Fatal Python error: Can't initialize xrange type

2022-06-02 16:03:21.742509 [notice] [pid 10002] mpm_unix.c(436): [client AH00052: child pid 10771 exit signal Aborted (6)
2022-06-02 16:03:21.742664 [info] [pid 10002] src/server/mod_wsgi.c(7761): [client mod_wsgi (pid=10771): Process 'some.someapp.com' has died, deregister and restart it.
2022-06-02 16:03:21.742680 [info] [pid 10002] src/server/mod_wsgi.c(7775): [client mod_wsgi (pid=10771): Process 'some.someapp.com' terminated by signal 6
2022-06-02 16:03:21.742695 [info] [pid 10002] src/server/mod_wsgi.c(7846): [client mod_wsgi (pid=10771): Process 'some.someapp.com' has been deregistered and will no longer be monitored.
2022-06-02 16:03:21.744302 [notice] [pid 10002] mpm_unix.c(436): [client AH00052: child pid 10772 exit signal Aborted (6)
2022-06-02 16:03:21.744356 [info] [pid 10002] src/server/mod_wsgi.c(7761): [client mod_wsgi (pid=10772): Process 'some.someapp.com' has died, deregister and restart it.
2022-06-02 16:03:21.744368 [info] [pid 10002] src/server/mod_wsgi.c(7775): [client mod_wsgi (pid=10772): Process 'some.someapp.com' terminated by signal 6
2022-06-02 16:03:21.744380 [info] [pid 10002] src/server/mod_wsgi.c(7846): [client mod_wsgi (pid=10772): Process 'some.someapp.com' has been deregistered and will no longer be monitored.
2022-06-02 16:03:21.745156 [info] [pid 10773] src/server/mod_wsgi.c(9381): [client mod_wsgi (pid=10773): Starting process 'some.someapp.com' with uid=2, gid=2 and threads=30.
2022-06-02 16:03:21.746628 [info] [pid 10774] src/server/mod_wsgi.c(9381): [client mod_wsgi (pid=10774): Starting process 'some.someapp.com' with uid=2, gid=2 and threads=30.
2022-06-02 16:03:21.746991 [info] [pid 10773] src/server/wsgi_interp.c(2260): [client mod_wsgi (pid=10773): Initializing Python.
2022-06-02 16:03:21.750834 [info] [pid 10774] src/server/wsgi_interp.c(2260): [client mod_wsgi (pid=10774): Initializing Python.
Fatal Python error: Can't initialize dict type
Fatal Python error: Can't initialize dict type

My httd-vhosts file has below

** some code above

     WSGIDaemonProcess some.someapp.com processes=2 threads=30 display-name=httpd-dummy-name request-timeout=30
     WSGIProcessGroup some.someapp.com
     WSGIApplicationGroup %{GLOBAL}

** some code below

I am able to ssh into the docker container and do the following

  1. /usr/local/myapp/python2.7/bin/python2.7 manage.py shell. ---> this successfully starts manage.py shell
  2. /usr/local/myapp/python2.7/bin/python2.7 manage.py runserver --> this successfully starts the server at Starting development server at http://127.0.0.1:8000/ and is successfully able to serve requests when i run curl on localhost inside the container

But when i try to run it via apache and mod wsgi it starts giving an endless stream of above errors.

Note : Getting errors for below as well

Can't initialize set type, Can't initialize unicode type, Can't initialize static method type

  • Did you try to deploy some version of a software that was left unmaintained for *10 years*? In any case, I would not expect that to work in current environments: Python 2 has been EoL since 2020-01-01. – anx Jun 08 '22 at 06:02

0 Answers0