R
Railway11mo ago
AZ263

mongoDB upgrade issue

The total data volume of mongoDB is about 50G. which is stuck at Migrate Data. Then mongoDB crashed The error message is as follows:
No description
No description
103 Replies
Percy
Percy11mo ago
Project ID: f522f23f-32d0-4d1e-b301-2f24ffd4d85c
Brody
Brody11mo ago
are you on the pro plan by chance?
AZ263
AZ263OP11mo ago
yes
AZ263
AZ263OP11mo ago
Railway
Railway
Railway is an infrastructure platform where you can provision infrastructure, develop with that infrastructure locally, and then deploy to the cloud.
AZ263
AZ263OP11mo ago
projectID: f522f23f-32d0-4d1e-b301-2f24ffd4d85c
AZ263
AZ263OP11mo ago
No description
Brody
Brody11mo ago
what do the logs of the migration service say? would this be your thread too? https://community.railway.app/questions/mongo-db-upgrade-issue-bf12de3a
AZ263
AZ263OP11mo ago
also my thread
AZ263
AZ263OP11mo ago
No description
AZ263
AZ263OP11mo ago
the log from mongoDB Migration
Brody
Brody11mo ago
what do the volume usage metrics look like the new mongodb?
AZ263
AZ263OP11mo ago
No description
Brody
Brody11mo ago
id like to see the volume metrics please
AZ263
AZ263OP11mo ago
How to view volume metrics
Brody
Brody11mo ago
click on the service's volume
AZ263
AZ263OP11mo ago
where
AZ263
AZ263OP11mo ago
No description
Brody
Brody11mo ago
No description
AZ263
AZ263OP11mo ago
No description
Brody
Brody11mo ago
that explains it will have to flag the team just a quick question, how much data would you say you have in your legacy mongo db?
AZ263
AZ263OP11mo ago
More than 50G
Brody
Brody11mo ago
youre right about that but would you happen to have a more accurate number?
AZ263
AZ263OP11mo ago
No description
Brody
Brody11mo ago
perfect, thank you
Duchess
Duchess11mo ago
Thread has been flagged to Railway team by @Brody.
Brody
Brody11mo ago
when the team is available they will bump your volume limits so that you may run the migration again
AZ263
AZ263OP11mo ago
Can it be as soon as possible? Our project is in a hurry and is currently suspended.
Brody
Brody11mo ago
in the mean time feel free to remove the new crashed mongo service, the crashed migration service, and rename the database back to MongoDB
AZ263
AZ263OP11mo ago
No description
AZ263
AZ263OP11mo ago
delete MongoDB?
Brody
Brody11mo ago
once you do the above, you can update your services reference variables so that your service connects back to the legacy database, make absolute sure you are using reference variables https://docs.railway.app/guides/variables#referencing-another-services-variable correct may i ask why you have two v2 redis databases with one being named Redis Legacy?
AZ263
AZ263OP11mo ago
migration error then we click re migrate then got two v2 redis db
Brody
Brody11mo ago
what one is in use by your app
AZ263
AZ263OP11mo ago
We have not modified the redis URL, it seems to be modified automatically.
No description
AZ263
AZ263OP11mo ago
Currently using redis legacy
Brody
Brody11mo ago
okay then go ahead and delete the v2 redis database that is not redis legacy
AZ263
AZ263OP11mo ago
*
AZ263
AZ263OP11mo ago
No description
Brody
Brody11mo ago
correct as long as your app is using the v2 Redis Legacy redis database
AZ263
AZ263OP11mo ago
ok
AZ263
AZ263OP11mo ago
what to do next
No description
Brody
Brody11mo ago
delete this stuff
No description
Brody
Brody11mo ago
and a screenshot when thats done please
AZ263
AZ263OP11mo ago
done
No description
Brody
Brody11mo ago
rename this to just Redis since its not a legacy database, its a v2 now
No description
AZ263
AZ263OP11mo ago
done
No description
Brody
Brody11mo ago
rename this to just MongoDB even though this is indeed a legacy database we dont want to end up with a v2 mongo database named MongoDB Legacy like you had with redis
No description
AZ263
AZ263OP11mo ago
done for rename
Brody
Brody11mo ago
now update your variable references on your app for mongo
AZ263
AZ263OP11mo ago
Program services still use this mongoDB
Brody
Brody11mo ago
are you using variable references?
AZ263
AZ263OP11mo ago
No description
AZ263
AZ263OP11mo ago
The current reference to the program service
Brody
Brody11mo ago
right but thats not quite what i meant, have a look at this and let me know if this is the style of variable you are using in your service variables https://docs.railway.app/guides/variables#referencing-another-services-variable
AZ263
AZ263OP11mo ago
yes
AZ263
AZ263OP11mo ago
No description
Brody
Brody11mo ago
perfect, can you confirm your app is back online and working as it should?
AZ263
AZ263OP11mo ago
yes Do I still need to upgrade again?
Brody
Brody11mo ago
yes you do, but not until a team member confirms that they have bumped your volume limit. right now i have you using the legacy database until the team confirms that. you can also delete that Redis Legacy database
AZ263
AZ263OP11mo ago
When can I upgrade
Brody
Brody11mo ago
not until a team member confirms that they have bumped your volume limit
AZ263
AZ263OP11mo ago
Can you give me a specific time?
Brody
Brody11mo ago
as i dont work for railway i cant give any exact timeframe, but may i ask what the rush is now that your app is back online?
AZ263
AZ263OP11mo ago
If I don’t upgrade on January 31st, will I be forced to upgrade?
Brody
Brody11mo ago
thats a ways away, the team may not respond today but they will absolutely respond before you have to migrate
AZ263
AZ263OP11mo ago
ok, thanks~
Brody
Brody11mo ago
but to directly answer your question: yes
angelo
angelo11mo ago
cc @thomas, for his todos
thomas
thomas11mo ago
Always like a tag, thanks Angelo I am still catching up @albertz8912 but do you have an idea as to the size you need? Brody mentioned 100Gb
Brody
Brody11mo ago
I think 100gb is a sufficient value?
thomas
thomas11mo ago
That seems reasonable. I am in prd-job4 as the env because it was the default, but there are a lot of environements
Brody
Brody11mo ago
maybe just an account wide volume limit bump?
thomas
thomas11mo ago
It's a per volume change yeah, we have account limits we can bumb but this isn't one of them because for the really big volumns we have to check the host Given the time this user was online, I suspect they are offline. I am going to wait until the end of my day then grow my best guess Hello, I was wrong about what to do here. There is a change to the migration process going into place for your team. I will advice when it is safe to migrate again.
Duchess
Duchess11mo ago
Hey @thomas_railway_75694, remember to grow this volume - https://discord.com/channels/713503345364697088/1199980272649768981/1200160499480928357
thomas
thomas11mo ago
@albertz8912 You are good to try migrating again, please let me know if you have any issues.
AZ263
AZ263OP11mo ago
ok thanks Can I migrate again?
Brody
Brody11mo ago
yes
thomas
thomas10mo ago
Is there anything I can do to help? I will check in on your project later today.
AZ263
AZ263OP10mo ago
done for production
No description
AZ263
AZ263OP10mo ago
but there got a error in mongoDB migrate
No description
Brody
Brody10mo ago
by error do you mean the action required message?
AZ263
AZ263OP10mo ago
yes
AZ263
AZ263OP10mo ago
No description
AZ263
AZ263OP10mo ago
Is this a bug? Or we can ignore it
Brody
Brody10mo ago
it's looking like just a display bug, but config for me that your reference variables are referencing the database named MongoDB and not MongoDB Legacy
AZ263
AZ263OP10mo ago
already done for referencing
Brody
Brody10mo ago
nothing is connecting to the legacy database?
AZ263
AZ263OP10mo ago
yes
Brody
Brody10mo ago
and your app is working fine, across all environments?
AZ263
AZ263OP10mo ago
Still testing I think the data in the database should be fine
Brody
Brody10mo ago
okay let me know if you run into problems! in the mean time, @thomas would you have any clue why they are still seeing the migration message? that would cause a good amount of confusion if it's not a one off bug
thomas
thomas10mo ago
I will look into that
thomas
thomas10mo ago
No description
thomas
thomas10mo ago
it's not meant to look that way seeing if I can figure out why it does
thomas
thomas10mo ago
No description
thomas
thomas10mo ago
one of them changed status to the correct one and I don't see anything wrong with the Redis one, so giving it some time and then asking the team !remind me to look at this again in 4 hours
Duchess
Duchess10mo ago
Got it, I will remind you to look at this again at Fri, 26 Jan 2024 22:45:53 GMT Hey @thomas, remember to look at this again - https://discord.com/channels/713503345364697088/1199980272649768981/1200511948480057505
thomas
thomas10mo ago
I am sorry I was not able to figure out why that banner is still there. You migrated this to the new Redis instance, correct? @jr when you get back online could you take a look at why this service still has a migration banner after migrating? I double-checked, and no services are hard linked to it.
AZ263
AZ263OP10mo ago
cannot view the service logs, always loading
No description
Brody
Brody10mo ago
are you the owner of that project?
jr
jr10mo ago
Checking back here, everything looks good? I can see both plugins are migrated and all services are up and running
AZ263
AZ263OP10mo ago
what version of MongoDB railways have upgraded to? mongo:latest docker image?
Brody
Brody10mo ago
correct
Want results from more Discord servers?
Add your server