Deployment Crashed emails

I'm pretty frustrated about a project of mine that keeps crashing. its an open source project who recommends railway, tbh im going to probably migrate off of it because its insane how often it crashes. Is there a setting where instead of emailing me with a big Restart Deployment button, railway could just, ya know, restart it?? otherwise, can i pipe these alerts somewhere else? like telegram?
36 Replies
Percy
Percy4mo ago
Project ID: 08eeb7e1-edff-4abc-beb9-a2a42017cf90
sammybauch
sammybauch4mo ago
08eeb7e1-edff-4abc-beb9-a2a42017cf90
Brody
Brody4mo ago
by default railway will restart the deployment up to 10 times, after that no more restart attempts will be performed https://docs.railway.app/guides/healthchecks-and-restarts#restart-policy what software, and what errors does it crash with?
sammybauch
sammybauch4mo ago
Ponder – A backend framework for crypto apps
Ponder is an open-source framework for crypto apps focused on developer experience and performance.
sammybauch
sammybauch4mo ago
but ok we will just migrate off of them to a different provider, am sick of this
Brody
Brody4mo ago
im sorry your experience with Railway hasn’t been as pleasant as you would like, but i would be happy to try to debug any errors you are getting
sammybauch
sammybauch4mo ago
yeah i mean tbh i dont know and dont want to know or be responsible for this. id rather use a fully managed instance from a saas provider, not have to manage a deployment myself. its a very small project that needs to index some blockchain data in order to perform a daily cron task
Brody
Brody4mo ago
totally understand, self managed is not always what everyone wants, you should do whats best for you
sammybauch
sammybauch4mo ago
yeah was a bad decision in the first place, which is on me not railway!! thanks though, we tried!
Brody
Brody4mo ago
sad to see you go, hopefully railway can be your host for a different project in the future
sammybauch
sammybauch4mo ago
well im definitely done with heroku! so yeah, potentially. i might suggest reaching out to the ponder team about railway templates? feels like some other devs i know are in a similar spot where they are pretty frustrated and migrating off, so it imght be beneficial to railway to work with ponder? idk
Brody
Brody4mo ago
i'd still be very interested to know what errors you are getting? of course only if you have the time?
sammybauch
sammybauch4mo ago
i truly have no idea happy to have you look at our logs but its just like, someone else wrote the software, i followed some isntructions to deploy on railway, and every few days i get an email that the service crashed
Brody
Brody4mo ago
is there anything in the deployment logs? could you also link the instructions?
sammybauch
sammybauch4mo ago
admittedly we are a few versions behind, but its just a thing i dont want to think about and to be able to rely on it being up
sammybauch
sammybauch4mo ago
railway deploy instructions - https://ponder.sh/docs/guides/production
Deploy to production – Ponder
A guide for deploying Ponder apps to production
sammybauch
sammybauch4mo ago
the logs are pretty polluted with updates about indexing new data. and im not super familiar with railway observability
Brody
Brody4mo ago
would it be safe for someone who doesnt work for railway to look at your logs? (me)
sammybauch
sammybauch4mo ago
like i have no idea what to make of this
No description
sammybauch
sammybauch4mo ago
yeah absolutely, have at it!
Brody
Brody4mo ago
that screenshot probably provides the error id need to see anyway, so i think im good with just that is there a sample ponder app in a repo i can take a look at?
sammybauch
sammybauch4mo ago
yeah they have some examples in their source repo - https://github.com/ponder-sh/ponder/tree/main/examples
GitHub
ponder/examples at main · ponder-sh/ponder
A backend framework for crypto apps. Contribute to ponder-sh/ponder development by creating an account on GitHub.
sammybauch
sammybauch4mo ago
but again we are def a couple versions behind, which is on me, but they changed a lot of their config between versions so just havent gotten upgraded yet
Brody
Brody4mo ago
what example would you say is closest to the app you are running?
sammybauch
sammybauch4mo ago
tbh the thing that would help the most right now would be if we could pipe a message into telegram when things crash
Brody
Brody4mo ago
unfortunaly railway doesn’t have a native way to do that kind of thing right now
sammybauch
sammybauch4mo ago
yeah and i dont have the bandwidth to build something custom. its a tiny project that should just be on autopilot. but ppl depend on it. and when we miss it crashing, we screw over ppl who depend on it, and then making that right gets expensive for us
Brody
Brody4mo ago
i understand, thats fair but i have seen that error before, its when the database pool keeps disconnected connections in the pool and then tries to use the disconnected connection thats still in the pool, it doesnt look like ponder provides a way for the user to change this in code, so it would need to be something ponder changes in their codebase
sammybauch
sammybauch4mo ago
would you be able to give me the full logs around the error? i dont think i can reliably copy out of the ui
Brody
Brody4mo ago
i dont work for railway so i have no way of getting your logs unless you sent me them yourself, there is this tool to help you do that https://bookmarklets.up.railway.app/template-info/
sammybauch
sammybauch4mo ago
oh ok interesting i misread the "doesnt work at railway" part
Brody
Brody4mo ago
though a change you could do would be to use ponder with an sqlite database and a volume, but this comes with additional caveats, it would solve the postgres pool errors though
sammybauch
sammybauch4mo ago
yeah i think i found that with sqlite whenever we redeployed it would rebuild the whole index, which as time goes on takes longer and longet ideally we wont need to redeploy, but the postrgres instance helps that
Brody
Brody4mo ago
yeah thats why you'd want to use a volume and store the sqlite database there so that the sqlite database persists between redeployments theres absolutely no pressure to stay on railway, like i said you do whats best for you, but id be happy to help you get the volume setup
sammybauch
sammybauch4mo ago
im pretty busy on other work, my collaborator is working with ponder dev to get us upgraded and see if that would help so we'll see how that works out first i suppoese
Brody
Brody4mo ago
no worries, let me know if you'd like to try the sqlite + volume approach, ill be around!