taenada
-
Posts
6 -
Joined
-
Last visited
Posts posted by taenada
-
-
I have tried to solved the problem by adding this line to .htacess
RewriteCond %{ENV:REDIRECT_STATUS} ^$
And maybe I got improvement that the 500 Internal Error page not show anymore. But it's changed to another form of 500 Internal Error by showing this line (checked in browser network tab, request return 500 error)
(none) 14.165.129.32 / taenada.heliohost.org Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:76.0) Gecko/20100101 Firefox/76.0 500
Here, I think problem is in my code. Code works well on my local, but the version of Django does not match with the one on server. So I tried to run my code in local with virtualenv and downgraded version of Django (2.1.13). Code still worked well. So my thought is wrong.
It's also hard for me to trace error because I don't know where.
Please tell me what I should do. Thanks for your help and sorry for bothering you these days.
-
Usernames can't have capital letters. Your username is taenada, not Taenada.
Thank you. Fixed. But still error. It's hard for me to trace error because error page in cpanel seems not up to date.
-
Here is your error:
[Thu May 14 01:27:08.876704 2020] [core:error] [pid 8987] [client x.x.x.x:64300] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace., referer: http://taenada.heliohost.org/
That means you have a redirect loop. Usually that indicates an error in your .htaccess.Thank you for pointing out my error. I have fixed a little but still get 500 error. I checked error page in cpanel and got
[Thu May 14 04:39:51.146023 2020] [wsgi:error] [pid 693] [client 14.165.129.32:50895] File "/home/taenada/public_html/ThaidatGa/dispatch.wsgi", line 8, in <module> [Thu May 14 04:39:51.145796 2020] [wsgi:error] [pid 693] [client 14.165.129.32:50895] mod_wsgi (pid=693): Exception occurred processing WSGI script '/home/taenada/public_html/ThaidatGa/dispatch.wsgi'. [Thu May 14 04:39:51.145756 2020] [wsgi:error] [pid 693] [client 14.165.129.32:50895] mod_wsgi (pid=693): Failed to exec Python script file '/home/taenada/public_html/ThaidatGa/dispatch.wsgi'. [Thu May 14 04:39:51.144121 2020] [wsgi:error] [pid 693] [client 14.165.129.32:50895] File "/home/taenada/public_html/ThaidatGa/dispatch.wsgi", line 8, in <module> [Thu May 14 04:39:51.130275 2020] [wsgi:error] [pid 693] [client 14.165.129.32:50895] mod_wsgi (pid=693): Exception occurred processing WSGI script '/home/taenada/public_html/ThaidatGa/dispatch.wsgi'. [Thu May 14 04:39:51.130188 2020] [wsgi:error] [pid 693] [client 14.165.129.32:50895] mod_wsgi (pid=693): Failed to exec Python script file '/home/taenada/public_html/ThaidatGa/dispatch.wsgi'.
It seems that my current problem is now dispatch file.
My current dispatch file:
import os, sys # edit your username below sys.path.append("/home/Taenada/public_html/ThaidatGa") from django.core.wsgi import get_wsgi_application os.environ['PYTHON_EGG_CACHE'] = '/home/Taenada/.python_egg_cache' os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' application = get_wsgi_application()
-
I'm currently using default domain http://taenada.heliohost.org/
I plan to config it later after everything work well.
-
Hello. I'm trying to deploy my Django app on Johny server following instructions on Helio wiki. But it keeps having 500 Internal Server Error. Here is my project structure
My dispatch.wsgi
My .htaccess
Please show me my error. Thank you so much.
[Solved] Django - 500 Internal Server Error
in Escalated Requests
Posted
Thanks for this helpful information. I have fixed my main problem, there are still some minor one that I will work on later.
Eventually, my site is now running.
I will make a summary for other people who want to deploy django and be in trouble like me.
1) Check your .htacess, if you get
Adding this line may help you
2) Make sure you included your project path in dispatch.wsgi, and make sure your dir to module and application you written your own correctly.
In my case, I wrote this and got error,
It worked well with settings file, but not your own application. Because my application was put under public_html
I fixed by changed these lines to
Once again, thank you for your help.