Jump to content

Recommended Posts

Posted
3 minutes ago, Krydos said:

Installed. You can see the current list of installed modules for Morty's Python 3.12 at https://krydos3.heliohost.org/pyinfo/info3.12.py

Keep in mind that you don't have WSGI restart access on any of your domains right now, so after you change code you may see the old code and the old errors popping up again. If you want WSGI access again just let us know which domain you're using now.

please enable the  WSGI restart access on arniskali.com and thelema93.com.br

  • Replies 33
  • Created
  • Last Reply

Top Posters In This Topic

Posted

WSGI control access has been enabled on the domain arniskali.com. To restart your Flask app and load new code changes in simply edit /home/talesaz.heliohost.us/arniskali.com/bma/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.

WSGI control access has been enabled on the domain thelema93.com.br. To restart your Flask app and load new code changes in simply edit /home/talesaz.heliohost.us/thelema93.com.br/oeto/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.

Posted

Since I moved to the Morty server, the performance of the apps has improved significantly. Occasionally, I still encounter a 500 error, but it's nothing critical.

That said, could you provide more details about the logs for the timestamps below? I'd like to check if there's anything I can improve in my code.

 

domain: thelema93.com.br
2025-04-26 13:26:09    Error    186.205.7.186    500    GET /oeto/flask.wsgi/turmas/aulas?turma=8 HTTP/1.0   https://thelema93.com.br/oeto/flask.wsgi/turmas/aulas  Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36    1000    Apache SSL/TLS access


domain: arniskali.com
2025-04-26 04:39:00    Error    186.205.7.186    500    GET /bma/flask.wsgi/conteudo HTTP/1.0   https://arniskali.com/bma/flask.wsgi/logins  Mozilla/5.0 (iPhone; CPU iPhone OS 18_3_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/135.0.7049.83 Mobile/15E148 Safari/604.1    1000    Apache SSL/TLS access

Posted
4 hours ago, talesaz said:

domain: thelema93.com.br
2025-04-26 13:26:09    Error    186.205.7.186    500    GET /oeto/flask.wsgi/turmas/aulas?turma=8 HTTP/1.0   https://thelema93.com.br/oeto/flask.wsgi/turmas/aulas  Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36    1000    Apache SSL/TLS access

Still the same as before

[Sat Apr 26 13:26:09.435132 2025] [wsgi:error] [pid 2391634:tid 2391645] [remote 186.205.7.186:36982] [2025-04-26 13:26:09,411] ERROR in app: Exception on /turmas/aulas [GET]
[Sat Apr 26 13:26:09.435328 2025] [wsgi:error] [pid 2391634:tid 2391645] [remote 186.205.7.186:36982] Traceback (most recent call last):
[Sat Apr 26 13:26:09.435339 2025] [wsgi:error] [pid 2391634:tid 2391645] [remote 186.205.7.186:36982]   File "/usr/local/python3.12/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1812, in _execute_context
[Sat Apr 26 13:26:09.435345 2025] [wsgi:error] [pid 2391634:tid 2391645] [remote 186.205.7.186:36982]     context = constructor(
[Sat Apr 26 13:26:09.435351 2025] [wsgi:error] [pid 2391634:tid 2391645] [remote 186.205.7.186:36982]               ^^^^^^^^^^^^
[Sat Apr 26 13:26:09.435356 2025] [wsgi:error] [pid 2391634:tid 2391645] [remote 186.205.7.186:36982]   File "/usr/local/python3.12/lib/python3.12/site-packages/sqlalchemy/engine/default.py", line 1429, in _init_compiled
[Sat Apr 26 13:26:09.435362 2025] [wsgi:error] [pid 2391634:tid 2391645] [remote 186.205.7.186:36982]     self.cursor = self.create_cursor()
[Sat Apr 26 13:26:09.435367 2025] [wsgi:error] [pid 2391634:tid 2391645] [remote 186.205.7.186:36982]                   ^^^^^^^^^^^^^^^^^^^^
[Sat Apr 26 13:26:09.435373 2025] [wsgi:error] [pid 2391634:tid 2391645] [remote 186.205.7.186:36982]   File "/usr/local/python3.12/lib/python3.12/site-packages/sqlalchemy/engine/default.py", line 1768, in create_cursor
[Sat Apr 26 13:26:09.435379 2025] [wsgi:error] [pid 2391634:tid 2391645] [remote 186.205.7.186:36982]     return self.create_default_cursor()
[Sat Apr 26 13:26:09.435384 2025] [wsgi:error] [pid 2391634:tid 2391645] [remote 186.205.7.186:36982]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[Sat Apr 26 13:26:09.435390 2025] [wsgi:error] [pid 2391634:tid 2391645] [remote 186.205.7.186:36982]   File "/usr/local/python3.12/lib/python3.12/site-packages/sqlalchemy/dialects/mysql/mysqlconnector.py", line 59, in create_default_cursor
[Sat Apr 26 13:26:09.435397 2025] [wsgi:error] [pid 2391634:tid 2391645] [remote 186.205.7.186:36982]     return self._dbapi_connection.cursor(buffered=True)
[Sat Apr 26 13:26:09.435402 2025] [wsgi:error] [pid 2391634:tid 2391645] [remote 186.205.7.186:36982]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[Sat Apr 26 13:26:09.435407 2025] [wsgi:error] [pid 2391634:tid 2391645] [remote 186.205.7.186:36982]   File "/usr/local/python3.12/lib/python3.12/site-packages/sqlalchemy/pool/base.py", line 1486, in cursor
[Sat Apr 26 13:26:09.435414 2025] [wsgi:error] [pid 2391634:tid 2391645] [remote 186.205.7.186:36982]     return self.dbapi_connection.cursor(*args, **kwargs)
[Sat Apr 26 13:26:09.435419 2025] [wsgi:error] [pid 2391634:tid 2391645] [remote 186.205.7.186:36982]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[Sat Apr 26 13:26:09.435425 2025] [wsgi:error] [pid 2391634:tid 2391645] [remote 186.205.7.186:36982]   File "/usr/local/python3.12/lib/python3.12/site-packages/mysql/connector/connection_cext.py", line 841, in cursor
[Sat Apr 26 13:26:09.435431 2025] [wsgi:error] [pid 2391634:tid 2391645] [remote 186.205.7.186:36982]     raise OperationalError("MySQL Connection not available.")
[Sat Apr 26 13:26:09.435453 2025] [wsgi:error] [pid 2391634:tid 2391645] [remote 186.205.7.186:36982] mysql.connector.errors.OperationalError: MySQL Connection not available.

 

4 hours ago, talesaz said:

domain: arniskali.com
2025-04-26 04:39:00    Error    186.205.7.186    500    GET /bma/flask.wsgi/conteudo HTTP/1.0   https://arniskali.com/bma/flask.wsgi/logins  Mozilla/5.0 (iPhone; CPU iPhone OS 18_3_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/135.0.7049.83 Mobile/15E148 Safari/604.1    1000    Apache SSL/TLS access

Also the same

[Sat Apr 26 04:39:00.925777 2025] [wsgi:error] [pid 184463:tid 184471] [remote 186.205.7.186:40958] [2025-04-26 04:39:00,910] ERROR in app: Exception on /conteudo [GET]
[Sat Apr 26 04:39:00.925920 2025] [wsgi:error] [pid 184463:tid 184471] [remote 186.205.7.186:40958] Traceback (most recent call last):
[Sat Apr 26 04:39:00.925931 2025] [wsgi:error] [pid 184463:tid 184471] [remote 186.205.7.186:40958]   File "/usr/local/python3.12/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1812, in _execute_context
[Sat Apr 26 04:39:00.925935 2025] [wsgi:error] [pid 184463:tid 184471] [remote 186.205.7.186:40958]     context = constructor(
[Sat Apr 26 04:39:00.925939 2025] [wsgi:error] [pid 184463:tid 184471] [remote 186.205.7.186:40958]               ^^^^^^^^^^^^
[Sat Apr 26 04:39:00.925943 2025] [wsgi:error] [pid 184463:tid 184471] [remote 186.205.7.186:40958]   File "/usr/local/python3.12/lib/python3.12/site-packages/sqlalchemy/engine/default.py", line 1429, in _init_compiled
[Sat Apr 26 04:39:00.925947 2025] [wsgi:error] [pid 184463:tid 184471] [remote 186.205.7.186:40958]     self.cursor = self.create_cursor()
[Sat Apr 26 04:39:00.925950 2025] [wsgi:error] [pid 184463:tid 184471] [remote 186.205.7.186:40958]                   ^^^^^^^^^^^^^^^^^^^^
[Sat Apr 26 04:39:00.925954 2025] [wsgi:error] [pid 184463:tid 184471] [remote 186.205.7.186:40958]   File "/usr/local/python3.12/lib/python3.12/site-packages/sqlalchemy/engine/default.py", line 1768, in create_cursor
[Sat Apr 26 04:39:00.925958 2025] [wsgi:error] [pid 184463:tid 184471] [remote 186.205.7.186:40958]     return self.create_default_cursor()
[Sat Apr 26 04:39:00.925962 2025] [wsgi:error] [pid 184463:tid 184471] [remote 186.205.7.186:40958]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[Sat Apr 26 04:39:00.925966 2025] [wsgi:error] [pid 184463:tid 184471] [remote 186.205.7.186:40958]   File "/usr/local/python3.12/lib/python3.12/site-packages/sqlalchemy/dialects/mysql/mysqlconnector.py", line 59, in create_default_cursor
[Sat Apr 26 04:39:00.925970 2025] [wsgi:error] [pid 184463:tid 184471] [remote 186.205.7.186:40958]     return self._dbapi_connection.cursor(buffered=True)
[Sat Apr 26 04:39:00.925974 2025] [wsgi:error] [pid 184463:tid 184471] [remote 186.205.7.186:40958]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[Sat Apr 26 04:39:00.925978 2025] [wsgi:error] [pid 184463:tid 184471] [remote 186.205.7.186:40958]   File "/usr/local/python3.12/lib/python3.12/site-packages/sqlalchemy/pool/base.py", line 1486, in cursor
[Sat Apr 26 04:39:00.925982 2025] [wsgi:error] [pid 184463:tid 184471] [remote 186.205.7.186:40958]     return self.dbapi_connection.cursor(*args, **kwargs)
[Sat Apr 26 04:39:00.925985 2025] [wsgi:error] [pid 184463:tid 184471] [remote 186.205.7.186:40958]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[Sat Apr 26 04:39:00.925989 2025] [wsgi:error] [pid 184463:tid 184471] [remote 186.205.7.186:40958]   File "/usr/local/python3.12/lib/python3.12/site-packages/mysql/connector/connection_cext.py", line 841, in cursor
[Sat Apr 26 04:39:00.925993 2025] [wsgi:error] [pid 184463:tid 184471] [remote 186.205.7.186:40958]     raise OperationalError("MySQL Connection not available.")
[Sat Apr 26 04:39:00.926008 2025] [wsgi:error] [pid 184463:tid 184471] [remote 186.205.7.186:40958] mysql.connector.errors.OperationalError: MySQL Connection not available.

The only reason I can think of why MySQL connection would be unavailable is if you're still hitting the max_connection limit.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...