R
Railway

✋|help

Cannot terminate old instance

Hhusnn8/29/2023
I have an old instance running alongside the latest one, and I cannot find a way to terminate it through the dashboard or CLI (doesn't event show up in the "Deployments" tab). Both are consuming events from AWS SQS, and that's a problem as you can imagine.

ID of the problematic deployment: fca59f7f-31cf-4337-8be9-77de9862aabb.

Also, are there any best practices when it comes to handling queues? I can only have one consumer active at a time, otherwise will need some sort of leader election mechanism. I really want to avoid something like this going forward because it could have major consequences.

P.S. Took me countless hours to track down the issue, and was only able to figure it out thanks to the new log explorer. Thank you for that!
Bbrody1928/29/2023
this is what railway calls a phantom deployment, I will flag the team for you
and kudos for opening the thread with the phantom deployment id! the only person who's ever done that before was me afaik lol
DDuchess8/29/2023
Thread has been flagged to Railway team by @Brody.
Hhusnn8/29/2023
Thank you so much @Brody for such a quick response. Is there a way we (devs) can do this on our end? Some CLI command I'm missing perhaps?
And is this common enough to look at alternatives methods of handling queues?
Bbrody1928/29/2023
there's unfortunately not, I've even tried calling the api with the removeDeployment mutation with my phantom deployment id and no such luck
and this was nothing you did wrong or has anything to do with your code, it's a railway bug
it's not a very common bug either
Hhusnn8/29/2023
Thanks for clarifying, Brody. Been stressing over this for a LONG time, and good to know it's not a common issue. But will still look for a simple solution to handle something like this going forward. Perhaps a very basic way to do leader election.
Bbrody1928/29/2023
@Ray - phantom deployment
Rrayofbytes8/30/2023
What's your project ID?
Bbrody1928/30/2023
https://discord.com/channels/713503345364697088/1146200652452737037/1146200658136023140
if you're asking about me, that was solved in November of 2021 lol
Rrayofbytes8/30/2023
ah that's a deployment ID
killed the phantom, we should be good now
sorry bout that!
Bbrody1928/30/2023
oh yeah they're all uuid's
Rrayofbytes8/30/2023
!resolve
DDuchess8/30/2023
@Ray has marked this thread as resolved.

Looking for more? Join the community!

Recommended Posts
GitHub deployment triggers became inactiveDeployment trigger to main branch became inactive, I am on a paid plan.no build errors but serve command keeps crashingHi, I’m new to nx workspace, nest and railways.app. I did some changes and I pushed them to my GitHTemplate variable function ${{ secret() }} broken for new template deploysHey, I have a plausible analytics template on railway. I just got an issue on my GitHub repo for theRepo changes not being deployed automaticallyHi, I've made some fixes on my GitHub repository and the changes are not being deployed automaticallConnecting to custom postgres instanceHello! I have just set up a postgres service with custom dockerfile because I'm starting a new proje2 days in a row 7am server stops respondingI have a weird issue with my deployment. Nothing like that happened before. For the last 2 days aroui need help setting up my discord boti need someone to help me configure the database [ i am extremely new to this ]Time between new deploymentsSince I can't find this question, how many seconds does a deployment get removed after a new one goeHobby plan paymentHey do railway accept debit cards ? If yes then why isn't it working?Nobody answering emails on billingHow come nobody is answering the emails i send to billing@railway.app?Access Railway server via http, not https?Hello guys, any one can let me know to access my railway server using http link? ex: http://myservePR environments are not being deployed for the project ownerFollowup to https://discord.com/channels/713503345364697088/1006629907067064482/threads/114578691488Railway PaymentI don't have credit card and unable to get one in our country. Can i make payment using debit card ?Django project: install phase times outWe're currently evaluating Railway because we want to move away from AWS and have a more pleasant anNew to railwaysTrying to move my stuff from a VPS to railwayCancel subscription and then switch to credit, but between...?Hello, I have a doubt about the procedure to switch hobby plan from usage to credit based. Maybe theQuestion: When pushing updates to GitHub repo, will those changes be updated in my custom domain?I pushed a fix into my GitHub repo, which my site is being deployed from, merged to the main branch Template Submission Next StepsHey, I made this post over in #⚡|templates but I think it got deleted for some reason? so going to Nextjs build fail - runc run failed: unable to start container processDeployment ID dd25dd4a-51bd-489e-94a0-387b5ef51852 and [github repo](https://github.com/ballermatic/SSH tunnelingHi all, I'm deploying a django project with ssh tunneling to connect to a remote database. For this