sjimmie Posted March 31, 2020 Posted March 31, 2020 (edited) Hi All! I've used the wiki page to deploy my Django website.However unfortunately I get an error 500.I would love to have a look at the errorlog to get a handle on where to look but I don't know how to access these.Can anyone give me a hint? website: www.borisaelen.nl/borisaelen I've used https://wiki.helionet.org/Django as a reference and used the configs specified there.I only had to modify this line in the .htaccess:RewriteRule ^(.*)$ hello/hello/dispatch.wsgi/$1 [QSA,PT,L] I had to remove 1 time the hello/ because I've deployed my project directely into the public_html directory.(as is suggested in this wiki if I'm correct?) I've also had a look at this config:http://www.heliohost.org/classic/features/languages/python But that results in the same 500 error. I'm sure it's a permission or settings things in my django project but would love to get some more output.Is there amywhere I can look? Thanks! BTW my development environment is my Windows Laptop with:Django 3.0Python 3.6Visual Studio Code. I found this article where the line-endings are mentioned: https://www.helionet.org/index/topic/38835-python37-throws-500-but-python27-works/ I've tried to save all my files with Linux line endings (\n) and reupload with filezilla. no luck, still error 500. Edited March 31, 2020 by sjimmie
Krydos Posted April 1, 2020 Posted April 1, 2020 [Tue Mar 31 05:06:26.834308 2020] [wsgi:error] [pid 18336] [client 171.6.230.10:13486] mod_wsgi (pid=18336): Failed to exec Python script file '/home/sjimmie/public_html/borisaelen/dispatch.wsgi'., referer: http://borisaelen.nl/ [Tue Mar 31 05:06:26.834450 2020] [wsgi:error] [pid 18336] [client 171.6.230.10:13486] mod_wsgi (pid=18336): Exception occurred processing WSGI script '/home/sjimmie/public_html/borisaelen/dispatch.wsgi'., referer: http://borisaelen.nl/ [Tue Mar 31 05:06:26.836882 2020] [wsgi:error] [pid 18336] [client 171.6.230.10:13486] Traceback (most recent call last):, referer: http://borisaelen.nl/ [Tue Mar 31 05:06:26.837038 2020] [wsgi:error] [pid 18336] [client 171.6.230.10:13486] File "/home/sjimmie/public_html/borisaelen/dispatch.wsgi", line 12, in <module>, referer: http://borisaelen.nl/ [Tue Mar 31 05:06:26.837067 2020] [wsgi:error] [pid 18336] [client 171.6.230.10:13486] application = get_wsgi_application(), referer: http://borisaelen.nl/ [Tue Mar 31 05:06:26.837095 2020] [wsgi:error] [pid 18336] [client 171.6.230.10:13486] File "/usr/local/python3.7/lib/python3.7/site-packages/django/core/wsgi.py", line 12, in get_wsgi_application, referer: http://borisaelen.nl/ [Tue Mar 31 05:06:26.837112 2020] [wsgi:error] [pid 18336] [client 171.6.230.10:13486] django.setup(set_prefix=False), referer: http://borisaelen.nl/ [Tue Mar 31 05:06:26.837136 2020] [wsgi:error] [pid 18336] [client 171.6.230.10:13486] File "/usr/local/python3.7/lib/python3.7/site-packages/django/__init__.py", line 24, in setup, referer: http://borisaelen.nl/ [Tue Mar 31 05:06:26.837152 2020] [wsgi:error] [pid 18336] [client 171.6.230.10:13486] apps.populate(settings.INSTALLED_APPS), referer: http://borisaelen.nl/ [Tue Mar 31 05:06:26.837207 2020] [wsgi:error] [pid 18336] [client 171.6.230.10:13486] File "/usr/local/python3.7/lib/python3.7/site-packages/django/apps/registry.py", line 89, in populate, referer: http://borisaelen.nl/ [Tue Mar 31 05:06:26.837229 2020] [wsgi:error] [pid 18336] [client 171.6.230.10:13486] app_config = AppConfig.create(entry), referer: http://borisaelen.nl/ [Tue Mar 31 05:06:26.837256 2020] [wsgi:error] [pid 18336] [client 171.6.230.10:13486] File "/usr/local/python3.7/lib/python3.7/site-packages/django/apps/config.py", line 90, in create, referer: http://borisaelen.nl/ [Tue Mar 31 05:06:26.837273 2020] [wsgi:error] [pid 18336] [client 171.6.230.10:13486] module = import_module(entry), referer: http://borisaelen.nl/ [Tue Mar 31 05:06:26.837296 2020] [wsgi:error] [pid 18336] [client 171.6.230.10:13486] File "/usr/local/python3.7/lib/python3.7/importlib/__init__.py", line 127, in import_module, referer: http://borisaelen.nl/ [Tue Mar 31 05:06:26.837311 2020] [wsgi:error] [pid 18336] [client 171.6.230.10:13486] return _bootstrap._gcd_import(name[level:], package, level), referer: http://borisaelen.nl/ [Tue Mar 31 05:06:26.837334 2020] [wsgi:error] [pid 18336] [client 171.6.230.10:13486] File "<frozen importlib._bootstrap>", line 1006, in _gcd_import, referer: http://borisaelen.nl/ [Tue Mar 31 05:06:26.837359 2020] [wsgi:error] [pid 18336] [client 171.6.230.10:13486] File "<frozen importlib._bootstrap>", line 983, in _find_and_load, referer: http://borisaelen.nl/ [Tue Mar 31 05:06:26.837397 2020] [wsgi:error] [pid 18336] [client 171.6.230.10:13486] File "<frozen importlib._bootstrap>", line 965, in _find_and_load_unlocked, referer: http://borisaelen.nl/ [Tue Mar 31 05:06:26.837459 2020] [wsgi:error] [pid 18336] [client 171.6.230.10:13486] ModuleNotFoundError: No module named 'django_summernote', referer: http://borisaelen.nl/ [Tue Mar 31 05:06:26.840504 2020] [wsgi:error] [pid 18336] [client 171.6.230.10:13486] mod_wsgi (pid=18336): Failed to exec Python script file '/home/sjimmie/public_html/borisaelen/dispatch.wsgi'., referer: http://borisaelen.nl/ [Tue Mar 31 05:06:26.840601 2020] [wsgi:error] [pid 18336] [client 171.6.230.10:13486] mod_wsgi (pid=18336): Exception occurred processing WSGI script '/home/sjimmie/public_html/borisaelen/dispatch.wsgi'., referer: http://borisaelen.nl/ [Tue Mar 31 05:06:26.840882 2020] [wsgi:error] [pid 18336] [client 171.6.230.10:13486] Traceback (most recent call last):, referer: http://borisaelen.nl/ [Tue Mar 31 05:06:26.840991 2020] [wsgi:error] [pid 18336] [client 171.6.230.10:13486] File "/home/sjimmie/public_html/borisaelen/dispatch.wsgi", line 12, in <module>, referer: http://borisaelen.nl/ [Tue Mar 31 05:06:26.841017 2020] [wsgi:error] [pid 18336] [client 171.6.230.10:13486] application = get_wsgi_application(), referer: http://borisaelen.nl/ [Tue Mar 31 05:06:26.841046 2020] [wsgi:error] [pid 18336] [client 171.6.230.10:13486] File "/usr/local/python3.7/lib/python3.7/site-packages/django/core/wsgi.py", line 12, in get_wsgi_application, referer: http://borisaelen.nl/ [Tue Mar 31 05:06:26.841063 2020] [wsgi:error] [pid 18336] [client 171.6.230.10:13486] django.setup(set_prefix=False), referer: http://borisaelen.nl/ [Tue Mar 31 05:06:26.841087 2020] [wsgi:error] [pid 18336] [client 171.6.230.10:13486] File "/usr/local/python3.7/lib/python3.7/site-packages/django/__init__.py", line 24, in setup, referer: http://borisaelen.nl/ [Tue Mar 31 05:06:26.841103 2020] [wsgi:error] [pid 18336] [client 171.6.230.10:13486] apps.populate(settings.INSTALLED_APPS), referer: http://borisaelen.nl/ [Tue Mar 31 05:06:26.841126 2020] [wsgi:error] [pid 18336] [client 171.6.230.10:13486] File "/usr/local/python3.7/lib/python3.7/site-packages/django/apps/registry.py", line 81, in populate, referer: http://borisaelen.nl/ [Tue Mar 31 05:06:26.841141 2020] [wsgi:error] [pid 18336] [client 171.6.230.10:13486] raise RuntimeError("populate() isn't reentrant"), referer: http://borisaelen.nl/ [Tue Mar 31 05:06:26.841223 2020] [wsgi:error] [pid 18336] [client 171.6.230.10:13486] RuntimeError: populate() isn't reentrant, referer: http://borisaelen.nl/
sjimmie Posted April 1, 2020 Author Posted April 1, 2020 OMG offcourse it's the bloody summernote app!Can I put in a request for this python package? pip install django-summernoteIt's a nice WYSIWYG editor that is in development:https://summernote.org/ thanksss
Krydos Posted April 1, 2020 Posted April 1, 2020 There you go https://krydos2.heliohost.org/cgi-bin/modules37.py
sjimmie Posted April 1, 2020 Author Posted April 1, 2020 You rock! Unfortunately still have that 500 error.Can you show me that apache errorlog from mod_wsgi again pretty please?
Krydos Posted April 1, 2020 Posted April 1, 2020 It's just a redirect loop now. [Wed Apr 01 19:54:29.988122 2020] [core:error] [pid 12997] [client 65.19.141.66:57021] 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. [Wed Apr 01 19:54:29.988237 2020] [core:error] [pid 12997] [client 65.19.141.66:57021] 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.
sjimmie Posted April 2, 2020 Author Posted April 2, 2020 Thanks Krydos!! Everything is online now :-)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now