Lost data from east region to west region. Wondering if there's any way to rollback

With the big issue that's happened over the last hour, I tried to move regions from East to West. While this worked for all the other services, our mongoDB env was completely dropped. Is there any way to recover that data? Looking specifically for staff from the Railway team to see if there's anything on your side to help us with this.
Solution:
You should see a new Mongo service named "MongoDB-Restored" https://railway.app/project/5fd7c146-2bc8-4c17-ad18-4d0b59c44fa0/service/439f896d-fefd-4946-830d-0f258383cf90 Can you check if the data is accurate?...
Jump to solution
71 Replies
Percy
Percy3mo ago
Project ID: 5fd7c146-2bc8-4c17-ad18-4d0b59c44fa0
zackword
zackword3mo ago
5fd7c146-2bc8-4c17-ad18-4d0b59c44fa0
Brody
Brody3mo ago
!t
Duchess
Duchess3mo ago
New reply sent from Help Station thread:
This thread has been escalated to the Railway team.
You're seeing this because this thread has been automatically linked to the Help Station thread.
zackword
zackword3mo ago
Hoping that y'all have access to some other MongoDB interface from the other region. My guess is that you have migration scripts when moving from one region to another, but since the whole thing was down, it failed so it gave me a blank database
Brody
Brody3mo ago
is this effecting a production application with a userbase?
zackword
zackword3mo ago
Yes I had to migrate data from our staging environment to our production environment, as the production database was completely wiped We're in an OK spot now, but we lost a lot of data
Brody
Brody3mo ago
@Ray - production database wiped during region migration
zackword
zackword3mo ago
For context, we host websites for Funeral Homes. So people's obituary pages were down for a good hour Thankfully our obits are stored in a separate datastore so none of that actual data was lost
Ray
Ray3mo ago
Railway
Railway
Railway is an infrastructure platform where you can provision infrastructure, develop with that infrastructure locally, and then deploy to the cloud.
zackword
zackword3mo ago
Yes that's the service I'll defer to you guys if there is a backup... or if our data is still technically available in the east region. Open to any solution as long as we can get that data back
Ray
Ray3mo ago
To confirm, was this in the production environment and a migration from US East -> US West? Is the volume name the same before and after you performed the migration?
zackword
zackword3mo ago
Correct, this was in the production environment. I migrated from US east to US west (as a possible solution to US east being down) I did not change the volume name at all (I don't think I can since there is no volume attached)
Brody
Brody3mo ago
there is no volume attached...?
zackword
zackword3mo ago
Replicas The number of instances that will be run for each deployment of this service. Replicas 1 Replication is only available for services that do not have a volume attached. Unless I am misunderstanding the question... it doesn't look like we configured a volume
Brody
Brody3mo ago
screenshot of the database service please
zackword
zackword3mo ago
is the MongoDB Settings page sufficient?
Brody
Brody3mo ago
no
Ray
Ray3mo ago
Thanks for the info - going to investigate this now. (No worries on the volume name, I only asked to make sure I'm looking at the correct thing)
zackword
zackword3mo ago
thank you both @Brody do you still want that screenshot?
zackword
zackword3mo ago
No description
Brody
Brody3mo ago
there is indeed a volume on the mongo service
zackword
zackword3mo ago
yeah that makes sense. i just don't see anywhere to name it I know these things take time but just getting a sense for timing—is this something I should expect a response about tonight or should I expect something more realistically tomorrow (I also need to know so I can have our team re-create any data that was lost)
Ray
Ray3mo ago
@zackword sorry, was attempting to see if I can restore your data Do you have anything in the database linked above currently? Can you also give me some table names so I can confirm?
zackword
zackword3mo ago
We have our staging data in the DB now, I migrated it just to restore customers But I would prefer the last production from us-east if you do have that Some table names- lol I think we everything is under the “test” database, and the tables would look like users, venues, pages
Ray
Ray3mo ago
Gotcha. Is it alright if I created a new database in your project so I can restore your previous data from US East into it?
zackword
zackword3mo ago
Absolutely
Solution
Ray
Ray3mo ago
You should see a new Mongo service named "MongoDB-Restored" https://railway.app/project/5fd7c146-2bc8-4c17-ad18-4d0b59c44fa0/service/439f896d-fefd-4946-830d-0f258383cf90 Can you check if the data is accurate?
zackword
zackword3mo ago
I just checked the users table and that looks right Thank you so much Guessing the best way to switch is to redeploy our app with the new mongodb service Is that what you’d recommend?
Ray
Ray3mo ago
Yep, redeploy with MONGO_URI set to the new one.
zackword
zackword3mo ago
Got it. Thank you so much We’re going to flip the switch after doing another quick test
Ray
Ray3mo ago
Super sorry about this, it should never happen. I've sent some credits your way (average of your past 3 month's bill) that will be used to offset your next bill Please let me know if you see anything off 🙏
zackword
zackword3mo ago
Thank you for the credits I need to run but this is super helpful Nearly had a heart attack
Ray
Ray3mo ago
Me too 😅
zackword
zackword3mo ago
Sorry to bug you guys—it looks like I can't actually deploy since I don't have access to thew new MongoDB env?
Brody
Brody3mo ago
could you explain what you mean? ray mentioned he created a new database in your project
zackword
zackword3mo ago
See bottom right
No description
zackword
zackword3mo ago
I tried to point the existing website to the new MongoDB uri, and that's the error I get
Brody
Brody3mo ago
that means you dont have permissions for the source repo of that service, nothing to do with mongo please ask the owner to grant you access
zackword
zackword3mo ago
Got it, so you're saying it's a github permission issue then? (We are a startup of 3 people, and I'm the only one with access to this repo)
Ray
Ray3mo ago
Uhh that's weird
Brody
Brody3mo ago
yes ive ran into this issue myself when working on someone else's service, they needed to grant me the correct permissions on the repo and then it worked perfectly
zackword
zackword3mo ago
An old employee may have connected the repo in the first place?
Brody
Brody3mo ago
try to disconnect deploy and then reconnect?
zackword
zackword3mo ago
yep, let's see thanks
Ray
Ray3mo ago
Do you have access to the Github repository?
zackword
zackword3mo ago
Yep
Ray
Ray3mo ago
Looks like you don't have a Github linked to your Railway account?
zackword
zackword3mo ago
(I just disconnected it)
Brody
Brody3mo ago
oh thats not what i meant
Ray
Ray3mo ago
https://railway.app/account what do you see in here under "Account Integrations"?
zackword
zackword3mo ago
oh, on my personal account?
Ray
Ray3mo ago
ya
zackword
zackword3mo ago
When I try to connect Github
No description
zackword
zackword3mo ago
This is also weird because I've definitely deployed in the last little while
Ray
Ray3mo ago
What's your Github username?
zackword
zackword3mo ago
@zackmoy Also, it looks like now I don't have access to my Afterword corporate account
zackword
zackword3mo ago
No description
zackword
zackword3mo ago
Sorry for the extra trouble, but like what lol
Ray
Ray3mo ago
I think you have two different accounts :thinkies:
zackword
zackword3mo ago
I connected my organization
Ray
Ray3mo ago
The account inside your team is zack@<yourdomain.com> -- try logging into that via email?
zackword
zackword3mo ago
wow I'm really showing my best colors over here I relogged in and it's back. How did that happen though? I didn't login with github, I just went to connect it Seem like it took now. Thank you guys again Just waiting for the deploy
Ray
Ray3mo ago
Nice you just clicked "Connect" under your personal account and it created a new account for you? 👀
Brody
Brody3mo ago
yep this is a thing, if the github email isnt the same as the email on the railway account
Ray
Ray3mo ago
well that definitely shouldn't be a thing :kekw:
zackword
zackword3mo ago
Okay, we're all back up and running For a brief moment it looked like the site was down again but that may have been intermittent Thank you again. I'm sure you guys are bombarded with other issues after the downtime so I appreciate all your help
Ray
Ray3mo ago
If you enable this + have healthchecks, you'll have near zero-downtime deploys 🙂 Currently, traffic switchover to your latest deploy is the slowest part of the process due to slow internal routing table updates. With the new edge proxy enabled, this becomes near-instant
No description
Ray
Ray3mo ago
Always happy to help, and sorry for the shock earlier!
zackword
zackword3mo ago
Thanks for the heads up on this Also noticed the runtime for v2 on deployment, Will these these out our staging env
Brody
Brody3mo ago
not sure what you meant due to the typo, could you try correcting the question please?
Want results from more Discord servers?
Add your server