You cut off the end of the Python exception traceback and the description of 
the exception, so I cannot suggest anything. If can post the full traceback and 
exception type and description that may help.

> On 16 Aug 2020, at 1:53 pm, Daanish Faiz <[email protected]> wrote:
> 
> Hi 
> 
> I am trying to deploy a django app on aws eb and am getting an error that I 
> have been trying to get passed for a few days.
> 
> My server httpd error_log file:
> [Sat Aug 15 05:54:03.377524 2020] [suexec:notice] [pid 3086] AH01232: suEXEC 
> mechanism enabled (wrapper: /usr/sbin/suexec)
> [Sat Aug 15 05:54:03.392927 2020] [http2:warn] [pid 3086] AH10034: The mpm 
> module (prefork.c) is not supported by mod_http2. The mpm determines how 
> things are processed in your server. HTTP/2 has more demands in this regard 
> and the currently selected mpm will just not do. This is an advisory warning. 
> Your server will continue to work, but the HTTP/2 protocol will be inactive.
> [Sat Aug 15 05:54:03.392941 2020] [http2:warn] [pid 3086] AH02951: mod_ssl 
> does not seem to be enabled
> [Sat Aug 15 05:54:03.393376 2020] [lbmethod_heartbeat:notice] [pid 3086] 
> AH02282: No slotmem from mod_heartmonitor
> [Sat Aug 15 05:54:03.393447 2020] [:warn] [pid 3086] mod_wsgi: Compiled for 
> Python/3.6.2.
> [Sat Aug 15 05:54:03.393453 2020] [:warn] [pid 3086] mod_wsgi: Runtime using 
> Python/3.6.11.
> [Sat Aug 15 05:54:03.395279 2020] [mpm_prefork:notice] [pid 3086] AH00163: 
> Apache/2.4.43 (Amazon) mod_wsgi/3.5 Python/3.6.11 configured -- resuming 
> normal operations
> [Sat Aug 15 05:54:03.395293 2020] [core:notice] [pid 3086] AH00094: Command 
> line: '/usr/sbin/httpd -D FOREGROUND'
> [Sat Aug 15 05:55:10.368312 2020] [mpm_prefork:notice] [pid 3086] AH00169: 
> caught SIGTERM, shutting down
> [Sat Aug 15 05:55:11.424908 2020] [suexec:notice] [pid 3406] AH01232: suEXEC 
> mechanism enabled (wrapper: /usr/sbin/suexec)
> [Sat Aug 15 05:55:11.440322 2020] [so:warn] [pid 3406] AH01574: module 
> wsgi_module is already loaded, skipping
> [Sat Aug 15 05:55:11.442493 2020] [http2:warn] [pid 3406] AH10034: The mpm 
> module (prefork.c) is not supported by mod_http2. The mpm determines how 
> things are processed in your server. HTTP/2 has more demands in this regard 
> and the currently selected mpm will just not do. This is an advisory warning. 
> Your server will continue to work, but the HTTP/2 protocol will be inactive.
> [Sat Aug 15 05:55:11.442504 2020] [http2:warn] [pid 3406] AH02951: mod_ssl 
> does not seem to be enabled
> [Sat Aug 15 05:55:11.443031 2020] [lbmethod_heartbeat:notice] [pid 3406] 
> AH02282: No slotmem from mod_heartmonitor
> [Sat Aug 15 05:55:11.443090 2020] [:warn] [pid 3406] mod_wsgi: Compiled for 
> Python/3.6.2.
> [Sat Aug 15 05:55:11.443094 2020] [:warn] [pid 3406] mod_wsgi: Runtime using 
> Python/3.6.11.
> [Sat Aug 15 05:55:11.445338 2020] [mpm_prefork:notice] [pid 3406] AH00163: 
> Apache/2.4.43 (Amazon) mod_wsgi/3.5 Python/3.6.11 configured -- resuming 
> normal operations
> [Sat Aug 15 05:55:11.445354 2020] [core:notice] [pid 3406] AH00094: Command 
> line: '/usr/sbin/httpd -D FOREGROUND'
> [Sat Aug 15 05:55:14.437391 2020] [:error] [pid 3411] [remote 127.0.0.1:0] 
> mod_wsgi (pid=3411): Target WSGI script 
> '/opt/python/current/app/cliquefit/wsgi.py' cannot be loaded as Python module.
> [Sat Aug 15 05:55:14.437468 2020] [:error] [pid 3411] [remote 127.0.0.1:0] 
> mod_wsgi (pid=3411): Exception occurred processing WSGI script 
> '/opt/python/current/app/cliquefit/wsgi.py'.
> [Sat Aug 15 05:55:14.437913 2020] [:error] [pid 3411] [remote 127.0.0.1:0] 
> Traceback (most recent call last):
> [Sat Aug 15 05:55:14.437954 2020] [:error] [pid 3411] [remote 127.0.0.1:0]   
> File "/opt/python/current/app/cliquefit/wsgi.py", line 7, in <module>
> [Sat Aug 15 05:55:14.437959 2020] [:error] [pid 3411] [remote 127.0.0.1:0]    
>  application = get_wsgi_application()
> [Sat Aug 15 05:55:14.437966 2020] [:error] [pid 3411] [remote 127.0.0.1:0]   
> File 
> "/opt/python/run/venv/local/lib/python3.6/site-packages/django/core/wsgi.py", 
> line 12, in get_wsgi_application
> [Sat Aug 15 05:55:14.437970 2020] [:error] [pid 3411] [remote 127.0.0.1:0]    
>  django.setup(set_prefix=False)
> [Sat Aug 15 05:55:14.437976 2020] [:error] [pid 3411] [remote 127.0.0.1:0]   
> File 
> 
> My wsgi.py file
> import os
> 
> from django.core.wsgi import get_wsgi_application
> 
> os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'cliquefit.settings')
> 
> application = get_wsgi_application()
> 
> My .ebextensions/django.config file:
> option_settings:
>   aws:elasticbeanstalk:container:python:
>     WSGIPath: "cliquefit/wsgi.py"
> 
> packages:
>     yum:
>         httpd24-devel: []
> 
> What I have tried:
> 
> verifying my python 3.6 build and mod_wsgi version.
> 
> checking httpd.config in my apache2.4 setup and troubleshooting. I also tried 
> rerunning through the flow of setting up apache2.4
> 
> Sorry if this is rudimental question - i've been working incredibly hard on 
> this. Thank you for all your help in advance!
> 
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "modwsgi" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/modwsgi/9fd06c1e-3bc3-4233-8650-dec05ee02365o%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/modwsgi/9fd06c1e-3bc3-4233-8650-dec05ee02365o%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/modwsgi/53F88041-D282-40F3-A1B4-A4EB7E50CC4D%40gmail.com.

Reply via email to