nutra
-
Posts
9 -
Joined
-
Last visited
Posts posted by nutra
-
-
Ok so some such line as this was necessary early on in the .wsgi file,
os.chdir("/home/nutra/public_html/api")
However now I'm hitting a permissions error deep in the postgres driver Library code, I don't know if it's trying to write a log file or bind an HTTP port, but this is the new stacktrace:
port: 20000 PermissionError(13, 'Permission denied') File "/home/nutra/public_html/api/flask.wsgi", line 21, in <module> host="127.0.0.1", port=port, debug=True, File "/usr/local/python3.7/lib/python3.7/site-packages/flask/app.py", line 990, in run run_simple(host, port, self, **options) File "/usr/local/python3.7/lib/python3.7/site-packages/werkzeug/serving.py", line 1008, in run_simple run_with_reloader(inner, extra_files, reloader_interval, reloader_type) File "/usr/local/python3.7/lib/python3.7/site-packages/werkzeug/_reloader.py", line 339, in run_with_reloader sys.exit(reloader.restart_with_reloader()) File "/usr/local/python3.7/lib/python3.7/site-packages/werkzeug/_reloader.py", line 183, in restart_with_reloader exit_code = subprocess.call(args, env=new_environ, close_fds=False) File "/usr/local/python3.7/lib/python3.7/subprocess.py", line 339, in call with Popen(*popenargs, **kwargs) as p: File "/usr/local/python3.7/lib/python3.7/subprocess.py", line 800, in __init__ restore_signals, start_new_session) File "/usr/local/python3.7/lib/python3.7/subprocess.py", line 1551, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename)
-
Yes, sorry. I made some changes I mean. The page took some time to load now, indicating something is happening but then it gave same 500.
If theres a recommendation on how to pipe this error to a file, please share. After working on it the last two days, i also wonder to remove the .wsgi file and put that in the server.py file
-
What's the error now?
-
I had replaced the public_html/flask folder with a /api one, had assumed it was flask folder not file. Apologies for any issues this cause on your end.
But now I've updated it, and still have a generic 500. What would you recommend in this case, trying to log the error very early on, or?
RewriteEngine On RewriteBase / RewriteRule ^(media/.*)$ - [L] RewriteRule ^(admin_media/.*)$ - [L] RewriteRule ^(flask\.wsgi/.*)$ - [L] RewriteRule ^(.*)$ api/flask.wsgi/$1 [QSA,PT,L]
Thanks,
nutra
-
Copied from the Discord chat.
@Krydos
I just got your message. I am using your .htaccess file as set forward in the wiki.
<https://wiki.helionet.org/Flask>see: <http://nutra.heliohost.org/api>
original message:
nutra, AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error.Probably in your .htaccess fileYou have a redirect loopI have made only path modifcations renaming `/flask/` --> `/api/`
RewriteEngine On RewriteBase / RewriteRule ^(media/.*)$ - [L] RewriteRule ^(admin_media/.*)$ - [L] RewriteRule ^(api\.wsgi/.*)$ - [L] RewriteRule ^(.*)$ api/flask.wsgi/$1 [QSA,PT,L]
-
i believe when i set the demo up (the one Krydos provided in the Wiki), it said it was the 3.7 server
My code should be compatible 3.6.5 thru 3.8+
I'm assuming it is missing some of the requirements. Krydos has posted a list of what is installed in an old post [below], but the links are now broken
-
Hi, I found a guide saying to post if we received a general 500 error: http://nutra.heliohost.org/api/
I have this dependency list, we should not need to be exact versions. But I'm not sure which one(s) are missing, thanks.
gunicorn==20.0.4 psycopg2==2.8.4 pytest==5.3.4 stripe==2.42.0 Flask_Cors==3.0.8 Flask==1.1.1 PyJWT==1.7.1 python-dotenv==0.10.5 bcrypt==3.1.7 fuzzywuzzy==0.17.0 python-Levenshtein==0.12.0 ujson==1.35 python-dateutil==2.8.1 python-crontab==2.4.0
-
we hit some missing features in postgres
"WITH ORDINALITY" and, json_agg( json_build_object(
Let us know what can be done, thanks.
[Inactive] Flask error [.htaccess ?]
in Customer Service
Posted
No port results in this error?