500 Internal Server Error

97 views
Skip to first unread message

Adnan Beganović

unread,
Jun 22, 2023, 3:24:44 AM6/22/23
to QATrack+
Hi everyone!

I'm in a process of installation of QATrack+ on Ubuntu 22.04.2. After all the installation is done, I get "500 Internal Server Error".

Django is installed and running. 
I had chosen Python 3.8 instead of Python 3.10. I had issues with scipy when installing requirements, so I did it to 
I've checked and changed file permissions and ownership to www-data for "~/web/qatrackplus"

Please help! :)

This is what it shows up in my Apache log file:

[Thu Jun 22 08:57:07.336930 2023] [proxy:debug] [pid 1430753:tid 140408402798464] proxy_util.c(2122): AH00925: initializing worker proxy:reverse shared
[Thu Jun 22 08:57:07.336936 2023] [proxy:debug] [pid 1430753:tid 140408402798464] proxy_util.c(2182): AH00927: initializing worker proxy:reverse local
[Thu Jun 22 08:57:07.336951 2023] [proxy:debug] [pid 1430753:tid 140408402798464] proxy_util.c(2213): AH00930: initialized pool in child 1430753 for (*) min=0 max=25 smax=25
[Thu Jun 22 08:57:07.337099 2023] [mpm_event:debug] [pid 1430753:tid 140408392656448] event.c(2373): AH02471: start_threads: Using epoll (wakeable)
[Thu Jun 22 08:57:07.366940 2023] [wsgi:info] [pid 1430751:tid 140408402798464] mod_wsgi (pid=1430751): Attach interpreter ''.
[Thu Jun 22 08:57:07.373550 2023] [wsgi:info] [pid 1430751:tid 140408402798464] mod_wsgi (pid=1430751): Adding '/home/fizika/web/qatrackplus' to path.
[Thu Jun 22 08:57:07.381793 2023] [wsgi:info] [pid 1430751:tid 140408402798464] mod_wsgi (pid=1430751, process='qatrackplus', application=''): Loading Python script file '/home/fizika/web/qatrackplus/qatrack/wsgi.py'.
[Thu Jun 22 08:57:07.382131 2023] [wsgi:error] [pid 1430751:tid 140408402798464] mod_wsgi (pid=1430751): Failed to exec Python script file '/home/fizika/web/qatrackplus/qatrack/wsgi.py'.
[Thu Jun 22 08:57:07.382154 2023] [wsgi:error] [pid 1430751:tid 140408402798464] mod_wsgi (pid=1430751): Exception occurred processing WSGI script '/home/fizika/web/qatrackplus/qatrack/wsgi.py'.
[Thu Jun 22 08:57:07.386500 2023] [wsgi:error] [pid 1430751:tid 140408402798464] Traceback (most recent call last):
[Thu Jun 22 08:57:07.386522 2023] [wsgi:error] [pid 1430751:tid 140408402798464]   File "/home/fizika/web/qatrackplus/qatrack/wsgi.py", line 23, in <module>
[Thu Jun 22 08:57:07.386526 2023] [wsgi:error] [pid 1430751:tid 140408402798464]     from django.core.wsgi import get_wsgi_application
[Thu Jun 22 08:57:07.386536 2023] [wsgi:error] [pid 1430751:tid 140408402798464] ModuleNotFoundError: No module named 'django'
[Thu Jun 22 08:57:07.386709 2023] [wsgi:debug] [pid 1430751:tid 140408372307520] src/server/mod_wsgi.c(9142): mod_wsgi (pid=1430751): Started thread 0 in daemon process 'qatrackplus'.
[Thu Jun 22 08:57:07.386775 2023] [wsgi:debug] [pid 1430751:tid 140408363914816] src/server/mod_wsgi.c(9142): mod_wsgi (pid=1430751): Started thread 1 in daemon process 'qatrackplus'.
[Thu Jun 22 08:57:07.386816 2023] [wsgi:debug] [pid 1430751:tid 140408347129408] src/server/mod_wsgi.c(9142): mod_wsgi (pid=1430751): Started thread 3 in daemon process 'qatrackplus'.
[Thu Jun 22 08:57:07.386833 2023] [wsgi:debug] [pid 1430751:tid 140408338736704] src/server/mod_wsgi.c(9142): mod_wsgi (pid=1430751): Started thread 4 in daemon process 'qatrackplus'.
[Thu Jun 22 08:57:07.386849 2023] [wsgi:debug] [pid 1430751:tid 140408330344000] src/server/mod_wsgi.c(9142): mod_wsgi (pid=1430751): Started thread 5 in daemon process 'qatrackplus'.
[Thu Jun 22 08:57:07.386867 2023] [wsgi:debug] [pid 1430751:tid 140408321951296] src/server/mod_wsgi.c(9142): mod_wsgi (pid=1430751): Started thread 6 in daemon process 'qatrackplus'.
[Thu Jun 22 08:57:07.386889 2023] [wsgi:debug] [pid 1430751:tid 140408313558592] src/server/mod_wsgi.c(9142): mod_wsgi (pid=1430751): Started thread 7 in daemon process 'qatrackplus'.
[Thu Jun 22 08:57:07.386910 2023] [wsgi:debug] [pid 1430751:tid 140408355522112] src/server/mod_wsgi.c(9142): mod_wsgi (pid=1430751): Started thread 2 in daemon process 'qatrackplus'.
[Thu Jun 22 08:57:07.386945 2023] [wsgi:debug] [pid 1430751:tid 140408305165888] src/server/mod_wsgi.c(9142): mod_wsgi (pid=1430751): Started thread 8 in daemon process 'qatrackplus'.
[Thu Jun 22 08:57:07.386974 2023] [wsgi:debug] [pid 1430751:tid 140408296773184] src/server/mod_wsgi.c(9142): mod_wsgi (pid=1430751): Started thread 9 in daemon process 'qatrackplus'.
[Thu Jun 22 08:57:07.386986 2023] [wsgi:debug] [pid 1430751:tid 140408288380480] src/server/mod_wsgi.c(9142): mod_wsgi (pid=1430751): Started thread 10 in daemon process 'qatrackplus'.
[Thu Jun 22 08:57:07.387006 2023] [wsgi:debug] [pid 1430751:tid 140408279987776] src/server/mod_wsgi.c(9142): mod_wsgi (pid=1430751): Started thread 11 in daemon process 'qatrackplus'.
[Thu Jun 22 08:57:07.387024 2023] [wsgi:debug] [pid 1430751:tid 140408271595072] src/server/mod_wsgi.c(9142): mod_wsgi (pid=1430751): Started thread 12 in daemon process 'qatrackplus'.
[Thu Jun 22 08:57:07.387042 2023] [wsgi:debug] [pid 1430751:tid 140408263202368] src/server/mod_wsgi.c(9142): mod_wsgi (pid=1430751): Started thread 13 in daemon process 'qatrackplus'.
[Thu Jun 22 08:57:07.387061 2023] [wsgi:debug] [pid 1430751:tid 140408254809664] src/server/mod_wsgi.c(9142): mod_wsgi (pid=1430751): Started thread 14 in daemon process 'qatrackplus'.
[Thu Jun 22 08:57:10.666097 2023] [authz_core:debug] [pid 1430752:tid 140408218695232] mod_authz_core.c(815): [client 10.17.0.61:50967] AH01626: authorization result of Require all granted: granted
[Thu Jun 22 08:57:10.666124 2023] [authz_core:debug] [pid 1430752:tid 140408218695232] mod_authz_core.c(815): [client 10.17.0.61:50967] AH01626: authorization result of <RequireAny>: granted
[Thu Jun 22 08:57:10.666203 2023] [authz_core:debug] [pid 1430752:tid 140408218695232] mod_authz_core.c(815): [client 10.17.0.61:50967] AH01626: authorization result of Require all granted: granted
[Thu Jun 22 08:57:10.666207 2023] [authz_core:debug] [pid 1430752:tid 140408218695232] mod_authz_core.c(815): [client 10.17.0.61:50967] AH01626: authorization result of <RequireAny>: granted
[Thu Jun 22 08:57:10.666439 2023] [wsgi:info] [pid 1430751:tid 140408372307520] [remote 10.17.0.61:50967] mod_wsgi (pid=1430751, process='qatrackplus', application=''): Loading Python script file '/home/fizika/web/qatrackplus/qatrack/wsgi.py'.
[Thu Jun 22 08:57:10.666907 2023] [wsgi:error] [pid 1430751:tid 140408372307520] [remote 10.17.0.61:50967] mod_wsgi (pid=1430751): Failed to exec Python script file '/home/fizika/web/qatrackplus/qatrack/wsgi.py'.
[Thu Jun 22 08:57:10.666941 2023] [wsgi:error] [pid 1430751:tid 140408372307520] [remote 10.17.0.61:50967] mod_wsgi (pid=1430751): Exception occurred processing WSGI script '/home/fizika/web/qatrackplus/qatrack/wsgi.py'.
[Thu Jun 22 08:57:10.667010 2023] [wsgi:error] [pid 1430751:tid 140408372307520] [remote 10.17.0.61:50967] Traceback (most recent call last):
[Thu Jun 22 08:57:10.667026 2023] [wsgi:error] [pid 1430751:tid 140408372307520] [remote 10.17.0.61:50967]   File "/home/fizika/web/qatrackplus/qatrack/wsgi.py", line 23, in <module>
[Thu Jun 22 08:57:10.667029 2023] [wsgi:error] [pid 1430751:tid 140408372307520] [remote 10.17.0.61:50967]     from django.core.wsgi import get_wsgi_application
[Thu Jun 22 08:57:10.667041 2023] [wsgi:error] [pid 1430751:tid 140408372307520] [remote 10.17.0.61:50967] ModuleNotFoundError: No module named 'django'
[Thu Jun 22 08:57:10.786249 2023] [authz_core:debug] [pid 1430752:tid 140408201909824] mod_authz_core.c(815): [client 10.17.0.61:50968] AH01626: authorization result of Require all granted: granted, referer: http://10.100.2.232/
[Thu Jun 22 08:57:10.786264 2023] [authz_core:debug] [pid 1430752:tid 140408201909824] mod_authz_core.c(815): [client 10.17.0.61:50968] AH01626: authorization result of <RequireAny>: granted, referer: http://10.100.2.232/
[Thu Jun 22 08:57:10.786292 2023] [authz_core:debug] [pid 1430752:tid 140408201909824] mod_authz_core.c(815): [client 10.17.0.61:50968] AH01626: authorization result of Require all granted: granted, referer: http://10.100.2.232/
[Thu Jun 22 08:57:10.786296 2023] [authz_core:debug] [pid 1430752:tid 140408201909824] mod_authz_core.c(815): [client 10.17.0.61:50968] AH01626: authorization result of <RequireAny>: granted, referer: http://10.100.2.232/
[Thu Jun 22 08:57:10.786474 2023] [wsgi:info] [pid 1430751:tid 140408254809664] [remote 10.17.0.61:50968] mod_wsgi (pid=1430751, process='qatrackplus', application=''): Loading Python script file '/home/fizika/web/qatrackplus/qatrack/wsgi.py'.
[Thu Jun 22 08:57:10.786873 2023] [wsgi:error] [pid 1430751:tid 140408254809664] [remote 10.17.0.61:50968] mod_wsgi (pid=1430751): Failed to exec Python script file '/home/fizika/web/qatrackplus/qatrack/wsgi.py'.
[Thu Jun 22 08:57:10.786900 2023] [wsgi:error] [pid 1430751:tid 140408254809664] [remote 10.17.0.61:50968] mod_wsgi (pid=1430751): Exception occurred processing WSGI script '/home/fizika/web/qatrackplus/qatrack/wsgi.py'.
[Thu Jun 22 08:57:10.786961 2023] [wsgi:error] [pid 1430751:tid 140408254809664] [remote 10.17.0.61:50968] Traceback (most recent call last):
[Thu Jun 22 08:57:10.786976 2023] [wsgi:error] [pid 1430751:tid 140408254809664] [remote 10.17.0.61:50968]   File "/home/fizika/web/qatrackplus/qatrack/wsgi.py", line 23, in <module>
[Thu Jun 22 08:57:10.786979 2023] [wsgi:error] [pid 1430751:tid 140408254809664] [remote 10.17.0.61:50968]     from django.core.wsgi import get_wsgi_application
[Thu Jun 22 08:57:10.786991 2023] [wsgi:error] [pid 1430751:tid 140408254809664] [remote 10.17.0.61:50968] ModuleNotFoundError: No module named 'django'

tbe...@gmail.com

unread,
Jun 22, 2023, 4:16:39 AM6/22/23
to QATrack+
Hi,

the python version has to match the mod_wsgi version as far as I understand the older threads here on the list. You might want to try with python 3.10 which comes with 22.04 and use the branch randle created. Please read the following thread https://groups.google.com/g/qatrack/c/bpBfur1EjGM/m/dSlxQHorAgAJ

regards
Thomas
Reply all
Reply to author
Forward
0 new messages