
talesaz
Members-
Posts
30 -
Joined
-
Last visited
Everything posted by talesaz
-
[Solved] Error Adjusting Outgoing Email Limit on Plesk
talesaz replied to talesaz's topic in Escalated Requests
Hi, I would like to request the configuration of DKIM, SPF, and DMARC for the domains thelema93.com.br and arniskali.com. Also, could you increase the sending limit for the account tales@arniskali.com? The usage will be the same as hanu@thelema93.com.br—keeping contacts and sending reminders to my students. Thanks! -
[Solved] Request to Install Reportlab Library on Domains
talesaz replied to talesaz's topic in Escalated Requests
Hi, I’m currently running Python 3.12 on the Morty server. -
[Solved] Error Adjusting Outgoing Email Limit on Plesk
talesaz replied to talesaz's topic in Escalated Requests
I understand! Here are my answers: How many emails do you plan to send per day? A maximum of 50, but not every day. The idea is to remind my students about upcoming events and classes. Where do you get the email addresses from? My app is used to manage my classes, so the email addresses are from my students. How can recipients of your emails unsubscribe? Got it. I will add a link in the message so recipients can opt out of receiving future emails. Do you have an unsubscribe@yourdomain.com address set up? If necessary, I can create this account. Otherwise, I will include a link in my app that allows recipients to opt out of future emails. Do you have an abuse@yourdomain.com address set up? If necessary, I can create this account. Otherwise, I will include a link in my app for users to report abuse. Does each email have a link to unsubscribe? Not yet, but I will add one. Do you share or sell the email addresses you collect? No. Post an example of the messages being sent. This is an example of the message I was using to test by sending it to myself. I will modify it to include the required elements, such as an unsubscribe link, an abuse address, and more. -
Hi, I'm trying to increase the number of outgoing emails for the account hanu@thelema93.com.br, but I'm encountering the following error: "The value must be in the range 0..10. Only the Plesk administrator can adjust this setting." Could you please help me with this? Thank you!
-
[Solved] Python + Flask - 500 Internal Server Error
talesaz replied to talesaz's topic in Escalated Requests
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 -
[Solved] Python + Flask - 500 Internal Server Error
talesaz replied to talesaz's topic in Escalated Requests
please enable the WSGI restart access on arniskali.com and thelema93.com.br -
[Solved] Python + Flask - 500 Internal Server Error
talesaz replied to talesaz's topic in Escalated Requests
I apologize for forgetting that today is not only Sunday but also Easter Sunday (by the way, Happy Easter!). I performed a step-by-step troubleshooting of the code and believe I’ve identified the issue: the absence of the flask-login library. Would it be possible to install this library on the Morty server? -
Sorry for opening another ticket about the same issue, but after migrating to Morty, I can no longer access any of the databases in my account (even after creating a new test database with the remote connection option enabled). Additionally, I’m unable to run any Python applications with Flask. I believe that, since more than 12 hours have passed since the migration, Apache should have already restarted to adjust access. However, the fact that the databases remain inaccessible makes me think the issue might be something else. username: talesaz domais: www.arniskali.com www.thelema93.com.br https://talesaz.heliohost.us/ and https://talesazoeto.heliohost.us/
-
[Solved] Python + Flask - 500 Internal Server Error
talesaz replied to talesaz's topic in Escalated Requests
Even when attempting to connect directly to the database, I keep encountering an "access denied" error. To be thorough, I changed the password and ensured that access from any host was allowed, but the same error persists. I also tried creating a new database as a test, yet it still shows the same connection error. -
[Solved] Python + Flask - 500 Internal Server Error
talesaz replied to talesaz's topic in Escalated Requests
2025-04-20 13:07:14 Error 186.205.7.186 500 GET /oeto/ HTTP/1.0 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 1.22 K Apache SSL/TLS access 2025-04-20 13:07:14 Error 186.205.7.186 No WSGI daemon process called 'talesaz1_wsgi' has been configured: /home/talesaz.heliohost.us/thelema93.com.br/oeto/flask.wsgi Apache error 2025-04-20 13:07:15 Error 186.205.7.186 404 GET /favicon.ico HTTP/1.0 https://thelema93.com.br/oeto/ Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 910 Apache SSL/TLS access The Apache server restarts every 2 hours, right? Because I’m experiencing the same problem. -
[Solved] Python + Flask - 500 Internal Server Error
talesaz replied to talesaz's topic in Escalated Requests
Am I able to edit the flask.wsgi file to refresh the WSGI after an update? -
[Solved] Python + Flask - 500 Internal Server Error
talesaz replied to talesaz's topic in Escalated Requests
I received an email confirming that the account move has been completed, but now the websites are showing errors. 2025-04-20 03:52:58 Error 186.205.7.186 No WSGI daemon process called 'talesaz1_wsgi' has been configured: /home/talesaz.heliohost.us/thelema93.com.br/oeto/flask.wsgi Apache error 2025-04-20 03:53:11 Error 186.205.7.186 500 GET /bma/ HTTP/1.0 https://arniskali.com/ Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 1.22 K Apache SSL/TLS access 2025-04-20 03:53:11 Error 186.205.7.186 No WSGI daemon process called 'talesaz_1_wsgi' has been configured: /home/talesaz.heliohost.us/arniskali.com/bma/flask.wsgi, referer: https://arniskali.com/ Apache error -
[Solved] Python + Flask - 500 Internal Server Error
talesaz replied to talesaz's topic in Escalated Requests
I requested the change to Morty with the same libraries from the Tommy server, such as: Flask 3.0.3 Flask-Cors 5.0.0 Flask-Login 0.6.3 Flask-Restx 1.3.0 Flask-SocketIO 5.4.1 Flask-SQLAlchemy 3.1.1 Flask-WTF 1.2.1 MySQL-Connector 2.2.9 MySQL-Connector-Python 9.2.0 MySQLClient 2.2.4 And others listed here:https://krydos1.heliohost.org/pyinfo/info3.12.py. They all work fine for me. -
[Solved] Python + Flask - 500 Internal Server Error
talesaz replied to talesaz's topic in Escalated Requests
I applied the following configuration in SQLAlchemy, and it improved performance significantly. SQLALCHEMY_ENGINE_OPTIONS = {'pool_size': 5, 'max_overflow': 5, 'pool_timeout': 30, 'pool_recycle': 280, 'connect_args': {'connect_timeout': 30}} However, what I find strange is that, from time to time, accessing any page results in a 502 error—even when it's just an HTML page with JavaScript. It feels as though the server is crashing. 2025-04-19 22:21:31 Access 186.205.7.186 200 GET /oeto/flask.wsgi/conteudo/cadastrar HTTP/1.0 https://thelema93.com.br/oeto/flask.wsgi/conteudo Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 15.0 K Apache SSL/TLS access 2025-04-19 22:21:31 Access 186.205.7.186 304 GET /oeto/flask.wsgi/static/logo.png HTTP/1.0 https://thelema93.com.br/oeto/flask.wsgi/conteudo/cadastrar Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 769 Apache SSL/TLS access 2025-04-19 22:22:17 Error 186.205.7.186 2814338#0: *2069943 connect() failed (111: Connection refused) while connecting to upstream nginx error 2025-04-19 22:22:21 Error 186.205.7.186 2814338#0: *2069943 connect() failed (111: Connection refused) while connecting to upstream nginx error 2025-04-19 22:22:24 Error 186.205.7.186 2814338#0: *2069943 connect() failed (111: Connection refused) while connecting to upstream nginx error 2025-04-19 22:22:27 Error 186.205.7.186 2814338#0: *2069943 connect() failed (111: Connection refused) while connecting to upstream nginx error 2025-04-19 22:22:29 Error 186.205.7.186 2814338#0: *2069943 connect() failed (111: Connection refused) while connecting to upstream nginx error 2025-04-19 22:22:41 Error 34.243.176.77 2814338#0: *2077939 connect() failed (111: Connection refused) while connecting to upstream nginx error 2025-04-19 22:22:41 Error 34.243.176.77 2814338#0: *2077939 connect() failed (111: Connection refused) while connecting to upstream nginx error 2025-04-19 22:22:42 Error 34.245.72.225 2814338#0: *2077992 connect() failed (111: Connection refused) while connecting to upstream nginx error 2025-04-19 22:22:43 Error 34.245.72.225 2814338#0: *2077992 connect() failed (111: Connection refused) while connecting to upstream nginx error 2025-04-19 22:22:59 Error 186.205.7.186 2814338#0: *2078353 connect() failed (111: Connection refused) while connecting to upstream nginx error 2025-04-19 22:23:02 Error 186.205.7.186 2814338#0: *2078353 connect() failed (111: Connection refused) while connecting to upstream nginx error 2025-04-19 22:23:04 Error 186.205.7.186 2814338#0: *2078353 connect() failed (111: Connection refused) while connecting to upstream nginx error 2025-04-19 22:23:06 Error 186.205.7.186 2814338#0: *2078353 connect() failed (111: Connection refused) while connecting to upstream nginx error 2025-04-19 22:23:13 Error 186.205.7.186 2814338#0: *2078353 connect() failed (111: Connection refused) while connecting to upstream nginx error 2025-04-19 22:23:15 Error 186.205.7.186 2814338#0: *2078353 connect() failed (111: Connection refused) while connecting to upstream nginx error -
ops... WSGI restart access at thelema93.com.br/oeto and arniskali.com/bma please
-
Great! May you please enable the WSGI restart access at thelema93.com.br/oeto? Another request, may you add the domain arniskali.com to my account? Thanks!
-
My idea is to use not only the web hosting forthelema93.com.br but also the webmail. In this case, I believe my request should be to associatethelema93.com.br as a new domain in my account, correct?
-
Hi, Sorry to bother you again, but I need another favor. Could you add the domainthelema93.com.br totalesazoeto.heliohost.us?? Thanks so much!
-
Hi, I’ve installed the Flask app attalesazoeto.heliohost.us/oeto.. Could you please enable the WSGI restart access? Thank you!
-
[Solved] Python + Flask - 500 Internal Server Error
talesaz replied to talesaz's topic in Escalated Requests
Error: 2025-04-16 16:12:21 Error 155.190.29.38 500 POST /bma/flask.wsgi/conteudo/cadastrar HTTP/1.0 https://talesaz.heliohost.us/bma/flask.wsgi/conteudo/cadastrar 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 Refresh: 2025-04-16 16:16:38 Error 155.190.29.38 500 POST /bma/flask.wsgi/conteudo/cadastrar HTTP/1.0 https://talesaz.heliohost.us/bma/flask.wsgi/conteudo/cadastrar 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 Refresh: 2025-04-16 16:16:42 Access 155.190.29.38 302 POST /bma/flask.wsgi/conteudo/cadastrar HTTP/1.0 https://talesaz.heliohost.us/bma/flask.wsgi/conteudo/cadastrar Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 1.28 K Apache SSL/TLS access 2025-04-16 16:16:43 Access 155.190.29.38 200 GET /bma/flask.wsgi/conteudo HTTP/1.0 https://talesaz.heliohost.us/bma/flask.wsgi/conteudo/cadastrar Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 21.2 K Apache SSL/TLS access 2025-04-16 16:16:44 Access 155.190.29.38 304 GET /bma/flask.wsgi/static/logo.png HTTP/1.0 https://talesaz.heliohost.us/bma/flask.wsgi/conteudo Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 770 Apache SSL/TLS access -
[Solved] Python + Flask - 500 Internal Server Error
talesaz replied to talesaz's topic in Escalated Requests
Oh gosh, the indentation, of course! I adjusted the code to make everything inline, and now it works for a much longer time without encountering the 500 error. SQLALCHEMY_ENGINE_OPTIONS = {'pool_size': 5, 'max_overflow': 2, 'pool_timeout': 20, 'pool_recycle': 280, 'connect_args': {'connect_timeout': 10}} However, could you please check what happened at this timestamp? 2025-04-16 16:12:21 Error 155.190.29.38 500 POST /bma/flask.wsgi/conteudo/cadastrar HTTP/1.0 https://talesaz.heliohost.us/bma/flask.wsgi/conteudo/cadastrar 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 -
[Solved] Python + Flask - 500 Internal Server Error
talesaz replied to talesaz's topic in Escalated Requests
Hi, I tried running this code again, and the error happens immediately after the first refresh. 2025-04-16 15:05:24 Error 155.190.29.38 500 GET /bma/ HTTP/1.0 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 1.22 K Apache SSL/TLS access 2025-04-16 15:05:32 Error 155.190.29.38 404 GET /favicon.ico HTTP/1.0 https://talesaz.heliohost.us/bma/ Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 910 Apache SSL/TLS access 2025-04-16 15:06:27 Error 155.190.29.38 500 GET /bma/ HTTP/1.0 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 1.22 K Apache SSL/TLS access 2025-04-16 15:07:21 Error 155.190.29.38 500 GET /bma/ HTTP/1.0 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 1.22 K Apache SSL/TLS access 2025-04-16 15:09:40 Error 155.190.29.38 500 GET /bma/ HTTP/1.0 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 2.68 K Apache SSL/TLS access When I remove the SQL_ENGINE_OPTIONS, it works fine with Python's backend. 2025-04-16 15:10:41 Access 155.190.29.38 302 GET /bma/ HTTP/1.0 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 1.21 K Apache SSL/TLS access 2025-04-16 15:10:43 Access 155.190.29.38 200 GET /bma/flask.wsgi/login?next=%2Fbma%2Fflask.wsgi%2F HTTP/1.0 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 4.61 K Apache SSL/TLS access 2025-04-16 15:10:43 Access 155.190.29.38 200 GET /bma/flask.wsgi/static/logo.png HTTP/1.0 https://talesaz.heliohost.us/bma/flask.wsgi/login?next=%2Fbma%2Fflask.wsgi%2F Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 297 K Apache SSL/TLS access 2025-04-16 15:10:50 Access 155.190.29.38 302 GET /bma/ HTTP/1.0 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 1.22 K Apache SSL/TLS access 2025-04-16 15:10:50 Access 155.190.29.38 200 GET /bma/flask.wsgi/login?next=%2Fbma%2Fflask.wsgi%2F HTTP/1.0 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 4.61 K Apache SSL/TLS access 2025-04-16 15:10:50 Access 155.190.29.38 304 GET /bma/flask.wsgi/static/logo.png HTTP/1.0 https://talesaz.heliohost.us/bma/flask.wsgi/login?next=%2Fbma%2Fflask.wsgi%2F Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 770 Apache SSL/TLS access 2025-04-16 15:11:04 Access 155.190.29.38 200 POST /bma/flask.wsgi/login HTTP/1.0 https://talesaz.heliohost.us/bma/flask.wsgi/login?next=%2Fbma%2Fflask.wsgi%2F Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 4.60 K Apache SSL/TLS access 2025-04-16 15:11:05 Access 155.190.29.38 304 GET /bma/flask.wsgi/static/logo.png HTTP/1.0 https://talesaz.heliohost.us/bma/flask.wsgi/login Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 770 Apache SSL/TLS access 2025-04-16 15:11:14 Access 155.190.29.38 302 POST /bma/flask.wsgi/login HTTP/1.0 https://talesaz.heliohost.us/bma/flask.wsgi/login Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 1.26 K Apache SSL/TLS access 2025-04-16 15:11:14 Access 155.190.29.38 200 GET /bma/flask.wsgi/ HTTP/1.0 https://talesaz.heliohost.us/bma/flask.wsgi/login Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 8.36 K Apache SSL/TLS access 2025-04-16 15:11:15 Access 155.190.29.38 304 GET /bma/flask.wsgi/static/logo.png HTTP/1.0 https://talesaz.heliohost.us/bma/flask.wsgi/ Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 770 Apache SSL/TLS access 2025-04-16 15:11:22 Access 155.190.29.38 200 GET /bma/flask.wsgi/conteudo HTTP/1.0 https://talesaz.heliohost.us/bma/flask.wsgi/ Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 14.2 K Apache SSL/TLS access 2025-04-16 15:11:22 Access 155.190.29.38 304 GET /bma/flask.wsgi/static/logo.png HTTP/1.0 https://talesaz.heliohost.us/bma/flask.wsgi/conteudo Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 770 Apache SSL/TLS access 2025-04-16 15:11:26 Access 155.190.29.38 200 GET /bma/flask.wsgi/conteudo/7 HTTP/1.0 https://talesaz.heliohost.us/bma/flask.wsgi/conteudo Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 10.3 K Apache SSL/TLS access 2025-04-16 15:11:27 Access 155.190.29.38 304 GET /bma/flask.wsgi/static/logo.png HTTP/1.0 https://talesaz.heliohost.us/bma/flask.wsgi/conteudo/7 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 770 Apache SSL/TLS access 2025-04-16 15:11:35 Access 155.190.29.38 200 GET /bma/flask.wsgi/conteudo/editar/7 HTTP/1.0 https://talesaz.heliohost.us/bma/flask.wsgi/conteudo Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 13.2 K Apache SSL/TLS access 2025-04-16 15:11:35 Access 155.190.29.38 304 GET /bma/flask.wsgi/static/logo.png HTTP/1.0 https://talesaz.heliohost.us/bma/flask.wsgi/conteudo/editar/7 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 770 Apache SSL/TLS access 2025-04-16 15:12:31 Access 155.190.29.38 302 POST /bma/flask.wsgi/conteudo/editar/7 HTTP/1.0 https://talesaz.heliohost.us/bma/flask.wsgi/conteudo/editar/7 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 1.29 K Apache SSL/TLS access 2025-04-16 15:12:31 Access 155.190.29.38 200 GET /bma/flask.wsgi/conteudo HTTP/1.0 https://talesaz.heliohost.us/bma/flask.wsgi/conteudo/editar/7 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 14.6 K Apache SSL/TLS access 2025-04-16 15:12:31 Access 155.190.29.38 304 GET /bma/flask.wsgi/static/logo.png HTTP/1.0 https://talesaz.heliohost.us/bma/flask.wsgi/conteudo Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 770 Apache SSL/TLS access However, when I add the code back, the error appears again. 2025-04-16 15:13:38 Error 155.190.29.38 500 GET /bma/flask.wsgi/conteudo HTTP/1.0 https://talesaz.heliohost.us/bma/flask.wsgi/conteudo/editar/7 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 2.68 K Apache SSL/TLS access 2025-04-16 15:13:49 Error 155.190.29.38 500 GET /bma/flask.wsgi/conteudo HTTP/1.0 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 1.22 K Apache SSL/TLS access 2025-04-16 15:13:59 Error 155.190.29.38 500 GET /bma/ HTTP/1.0 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 1.22 K Apache SSL/TLS access For those who host Python + Flask solutions on Heliohost, do they usually prefer using SQLAlchemy, or do they opt for traditional SQL access to the database? -
[Solved] Python + Flask - 500 Internal Server Error
talesaz replied to talesaz's topic in Escalated Requests
I understand that the database connection limit on HelioHost is restricted to 10 simultaneous connections. To ensure that my application does not exceed this limit, I tried two different approaches, but both resulted in errors. First Approach: Using SQLAlchemy Advanced Configuration I configured the SQLALCHEMY_ENGINE_OPTIONS as follows: SQLALCHEMY_ENGINE_OPTIONS = { 'pool_size': 5, 'max_overflow': 2, 'pool_timeout': 20, 'pool_recycle': 280, 'connect_args': { 'connect_timeout': 10 # 10-second timeout for database connections } } However, this resulted in the following errors: 2025-04-16 03:19:26 Error 186.205.7.186 504 GET /bma/ HTTP/1.0 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 967 Apache SSL/TLS access 2025-04-16 03:19:47 Error 186.205.7.186 504 GET /bma/flask.wsgi/usuarios HTTP/1.0 https://talesaz.heliohost.us/bma/flask.wsgi/usuarios/11 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 967 Apache SSL/TLS access 2025-04-16 03:20:26 Error 186.205.7.186 Timeout when reading response headers from daemon process 'talesaz_wsgi': /home/talesaz.heliohost.us/httpdocs/bma/flask.wsgi Apache error Second Approach: Managing Connections Manually I then tried to manually open and close connections for each request using the following code: @app.before_request def before_request(): g.db = db.session() @app.teardown_request def teardown_request(exception): db.session.remove() Unfortunately, this also resulted in errors: 2025-04-16 03:55:58 Error 186.205.7.186 500 GET /bma/ HTTP/1.0 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 986 Apache SSL/TLS access 2025-04-16 03:59:18 Error 186.205.7.186 500 GET /bma/ HTTP/1.0 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 986 Apache SSL/TLS access Could you please provide any guidance or tips on how to ensure that my application does not exceed the connection limit imposed by HelioHost? I would greatly appreciate any advice on how to configure SQLAlchemy or manage connections more effectively in this environment. Thank you in advance for your help! -
Hi Guy, Could you create a second website,talesazoeto.heliohost.us (or something similar), with WSGI restart access enabled? Thank you so much!