ujcis Posted September 13 Posted September 13 Hi there. I just set up my flask app, but I'd like wsgi control since I'm in active development. username=ujcis, server name=ujcis.helioho.st (Johnny), and the domain name=ujcis.helioho.st/cis.ย Thank you!ย 1
KazVee Posted September 13 Posted September 13 This support request is being escalated to our root admins. 1
Krydos Posted September 14 Posted September 14 WSGI control access has been enabled on the domain ujcis.helioho.st. To restart your Flask app and load new code changes in simply edit /home/ujcis.helioho.st/httpdocs/ujcis/flask.wsgi. Adding a blank line, removing a blank line, adding a space, or removing a space are examples of editing the file. As long as the last modified timestamp changes it will clear the server cache. Let us know if you run into any issues. 1
ujcis Posted September 19 Author Posted September 19 (edited) Thanks! But one more thing...ย I've been using the modified /home/ujcis.helioho.st/httpdocs/ujcis/flask.wsgi to see newest changes on the /home/ujcis.helioho.st/httpdocs/ujcis/ project. However, I yesterday morning, added a newer project to the httpdocs project called "aluta...". Since then I've been on an unclear error with code 500 (unclear since it doesn't show up in my error_log, and modifying the new project's flask.wsgi doesn't refresh the project either. I thought I misunderstood the instructions and went ahead to modify the older project's flask.wsgi instead, but nothing happens either.ย I need a little help with this. Thank you!ย Edited September 19 by ujcis
Krydos Posted September 19 Posted September 19 Here is your error PermissionError: [Errno 13] Permission denied: '/home/ujcis.helioho.st/httpdocs/alutagram/instance I don't even see a directory called instance inside alutagram directory so maybe you forgot to create it or maybe you should edit your code to not try to access directories that don't exist?
ujcis Posted September 20 Author Posted September 20 Hmm... It's weird because I'm not trying to access any folder called "instance" in my code. My codebase is very small and I've crosscheckedย to ensure that I'm not doing that. Also, I tried just creating the folder called "instance" and even created an additional "instance" flask route just to see if it'll mitigate the error, but nothing. And my logs/error_log still doesn't display any errors from this project...it only does from my first httpdocs/ujcis flask project.ย Thanks for your help!ย ย
Krydos Posted September 21 Posted September 21 Have you tested this Flask app on your home PC at all? [Sat Sep 21 02:41:47.620973 2024] [wsgi:error] [pid 3105472:tid 3105514] [remote x.x.x.x:59714] mod_wsgi (pid=3105472): Failed to exec Python script file '/home/ujcis.helioho.st/httpdocs/alutagram/flask.wsgi'. [Sat Sep 21 02:41:47.621366 2024] [wsgi:error] [pid 3105472:tid 3105514] [remote x.x.x.x:59714] mod_wsgi (pid=3105472): Exception occurred processing WSGI script '/home/ujcis.helioho.st/httpdocs/alutagram/flask.wsgi'. [Sat Sep 21 02:41:47.622307 2024] [wsgi:error] [pid 3105472:tid 3105514] [remote x.x.x.x:59714] Traceback (most recent call last): [Sat Sep 21 02:41:47.623106 2024] [wsgi:error] [pid 3105472:tid 3105514] [remote x.x.x.x:59714] File "/home/ujcis.helioho.st/httpdocs/alutagram/flask.wsgi", line 7, in <module> [Sat Sep 21 02:41:47.623167 2024] [wsgi:error] [pid 3105472:tid 3105514] [remote x.x.x.x:59714] from main import app as application [Sat Sep 21 02:41:47.623228 2024] [wsgi:error] [pid 3105472:tid 3105514] [remote x.x.x.x:59714] File "/home/ujcis.helioho.st/httpdocs/alutagram/main.py", line 70, in <module> [Sat Sep 21 02:41:47.623308 2024] [wsgi:error] [pid 3105472:tid 3105514] [remote x.x.x.x:59714] @app.route('/signup/confirm/<student_id>', methods=['GET', 'POST']) [Sat Sep 21 02:41:47.623332 2024] [wsgi:error] [pid 3105472:tid 3105514] [remote x.x.x.x:59714] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [Sat Sep 21 02:41:47.623544 2024] [wsgi:error] [pid 3105472:tid 3105514] [remote x.x.x.x:59714] File "/usr/local/python3.12/lib/python3.12/site-packages/flask/sansio/scaffold.py", line 362, in decorator [Sat Sep 21 02:41:47.623631 2024] [wsgi:error] [pid 3105472:tid 3105514] [remote x.x.x.x:59714] self.add_url_rule(rule, endpoint, f, **options) [Sat Sep 21 02:41:47.623796 2024] [wsgi:error] [pid 3105472:tid 3105514] [remote x.x.x.x:59714] File "/usr/local/python3.12/lib/python3.12/site-packages/flask/sansio/scaffold.py", line 47, in wrapper_func [Sat Sep 21 02:41:47.623859 2024] [wsgi:error] [pid 3105472:tid 3105514] [remote x.x.x.x:59714] return f(self, *args, **kwargs) [Sat Sep 21 02:41:47.623970 2024] [wsgi:error] [pid 3105472:tid 3105514] [remote x.x.x.x:59714] ^^^^^^^^^^^^^^^^^^^^^^^^ [Sat Sep 21 02:41:47.624192 2024] [wsgi:error] [pid 3105472:tid 3105514] [remote x.x.x.x:59714] File "/usr/local/python3.12/lib/python3.12/site-packages/flask/sansio/app.py", line 657, in add_url_rule [Sat Sep 21 02:41:47.624257 2024] [wsgi:error] [pid 3105472:tid 3105514] [remote x.x.x.x:59714] raise AssertionError( [Sat Sep 21 02:41:47.624432 2024] [wsgi:error] [pid 3105472:tid 3105514] [remote x.x.x.x:59714] AssertionError: View function mapping is overwriting an existing endpoint function: confirm_signup ย 1
Recommended Posts