App wont work properly
For some reason my app
https://opdeckdoctor-production.up.railway.app/
won't work properly. I checked it locally and it works with Railway database aswell, so it's not a database problem.
https://opdeckdoctor-production.up.railway.app/all_leaders
This site shows Server Error (500) and I have no clue why, because it shows no errors locally.
30 Replies
Project ID:
e7bdc974-80ce-40e2-830b-867a91640a47
e7bdc974-80ce-40e2-830b-867a91640a47
what errors do you get in the deployment logs?
[2023-11-03 22:36:50 +0000] [1] [CRITICAL] WORKER TIMEOUT (pid:12)
[2023-11-03 22:36:50 +0000] [12] [INFO] Worker exiting (pid: 12)
[2023-11-03 22:36:50 +0000] [1] [ERROR] Worker (pid:12) exited with code 1
[2023-11-03 22:36:50 +0000] [1] [ERROR] Worker (pid:12) exited with code 1.
[2023-11-03 22:36:50 +0000] [13] [INFO] Booting worker with pid: 13
locally, when you make the exact same request, how long does the request take?
it happens in an instant
and thats really all there is in the deployment logs?
This site shows around 50 pngs with filters, but another one that shows around 1000pngs with more filters works just fine
looks like there is an error in the code but you arent logging any errors
are you sure the database connection works? you dont have a success message for database connections
https://opdeckdoctor-production.up.railway.app/collector/
This works just fine, and it also connects to the database, although a different table.
I'll make sure it connects!
but yeah this is just a code issue thats causing a hold up and then gunicorn kills the connection since it took longer than the default of 30 seconds
add as much error handling and logging as you can, because as of right now you dont have any, and without error logs it would be very hard to debug
Thanks, I'll do that and message here again if I don't resolve my issue. Thank You very much
no problem!
Ok issue is resolved, there was a giant waste of time in sorting, never catched it locally, no idea why it worked properly 😄
these things happen
Only issue left for now is with Google SMTP but I'll try to do this on my own, thank You for all the help
google smtp wont work
they block logins that arent done from an actual user
oh, ok. Is there any recommended email host? It's just for email veryfication, shoul be really low-traffic
I use Zoho with a domain I own
It will
Normal gmail account over SMTP will work fine, so will gsuite account which allows SMTP and API mail sending
For SMTP you wanna use app password from gmail, please check this https://www.mailwarm.com/resources/how-to-set-up-gsuite-smtp
i have seen very very few people have success with gmail on railway, i am only speaking from experience
Do you use their free tier?
i do
sorry if I come across as completely obtuse, but how do you access the SMPT settings on a free account?
you can just Google "Zoho SMTP" then you'll get a result for a Zoho docs page that tells you the SMTP host and port, credentials are your email and password
HAHAHA!!! Brilliant!
Google is always the answer
Hm... Not working on my end. Looks like there might be no getting around the "feature is not available for your account" paywall.
at this point can you please open your own help thread?