R
Railway5mo ago
AlbertZ

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
Percy5mo ago
Project ID: f522f23f-32d0-4d1e-b301-2f24ffd4d85c
Brody
Brody5mo ago
are you on the pro plan by chance?
AlbertZ
AlbertZ5mo ago
yes
AlbertZ
AlbertZ5mo ago
Railway
Railway
Railway is an infrastructure platform where you can provision infrastructure, develop with that infrastructure locally, and then deploy to the cloud.
AlbertZ
AlbertZ5mo ago
projectID: f522f23f-32d0-4d1e-b301-2f24ffd4d85c
AlbertZ
AlbertZ5mo ago
No description
Brody
Brody5mo 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
AlbertZ
AlbertZ5mo ago
also my thread
AlbertZ
AlbertZ5mo ago
No description
AlbertZ
AlbertZ5mo ago
the log from mongoDB Migration
Brody
Brody5mo ago
what do the volume usage metrics look like the new mongodb?
AlbertZ
AlbertZ5mo ago
No description
Brody
Brody5mo ago
id like to see the volume metrics please
AlbertZ
AlbertZ5mo ago
How to view volume metrics
Brody
Brody5mo ago
click on the service's volume
AlbertZ
AlbertZ5mo ago
where
AlbertZ
AlbertZ5mo ago
No description
Brody
Brody5mo ago
No description
AlbertZ
AlbertZ5mo ago
No description
Brody
Brody5mo 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?
AlbertZ
AlbertZ5mo ago
More than 50G
Brody
Brody5mo ago
youre right about that but would you happen to have a more accurate number?
AlbertZ
AlbertZ5mo ago
No description
Brody
Brody5mo ago
perfect, thank you
Duchess
Duchess5mo ago
Thread has been flagged to Railway team by @Brody.
Brody
Brody5mo ago
when the team is available they will bump your volume limits so that you may run the migration again
AlbertZ
AlbertZ5mo ago
Can it be as soon as possible? Our project is in a hurry and is currently suspended.
Brody
Brody5mo 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
AlbertZ
AlbertZ5mo ago
No description
AlbertZ
AlbertZ5mo ago
delete MongoDB?
Brody
Brody5mo 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?
AlbertZ
AlbertZ5mo ago
migration error then we click re migrate then got two v2 redis db
Brody
Brody5mo ago
what one is in use by your app
AlbertZ
AlbertZ5mo ago
We have not modified the redis URL, it seems to be modified automatically.
No description
AlbertZ
AlbertZ5mo ago
Currently using redis legacy
Brody
Brody5mo ago
okay then go ahead and delete the v2 redis database that is not redis legacy
AlbertZ
AlbertZ5mo ago
*
AlbertZ
AlbertZ5mo ago
No description
Brody
Brody5mo ago
correct as long as your app is using the v2 Redis Legacy redis database
AlbertZ
AlbertZ5mo ago
ok
AlbertZ
AlbertZ5mo ago
what to do next
No description
Brody
Brody5mo ago
delete this stuff
No description
Brody
Brody5mo ago
and a screenshot when thats done please
AlbertZ
AlbertZ5mo ago
done
No description
Brody
Brody5mo ago
rename this to just Redis since its not a legacy database, its a v2 now
No description
AlbertZ
AlbertZ5mo ago
done
No description
Brody
Brody5mo 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
AlbertZ
AlbertZ5mo ago
done for rename
Brody
Brody5mo ago
now update your variable references on your app for mongo
AlbertZ
AlbertZ5mo ago
Program services still use this mongoDB
Brody
Brody5mo ago
are you using variable references?
AlbertZ
AlbertZ5mo ago
No description
AlbertZ
AlbertZ5mo ago
The current reference to the program service
Brody
Brody5mo 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
AlbertZ
AlbertZ5mo ago
yes
AlbertZ
AlbertZ5mo ago
No description
Brody
Brody5mo ago
perfect, can you confirm your app is back online and working as it should?
AlbertZ
AlbertZ5mo ago
yes Do I still need to upgrade again?
Brody
Brody5mo 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
AlbertZ
AlbertZ5mo ago
When can I upgrade
Brody
Brody5mo ago
not until a team member confirms that they have bumped your volume limit
AlbertZ
AlbertZ5mo ago
Can you give me a specific time?
Brody
Brody5mo 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?
AlbertZ
AlbertZ5mo ago
If I don’t upgrade on January 31st, will I be forced to upgrade?
Brody
Brody5mo ago
thats a ways away, the team may not respond today but they will absolutely respond before you have to migrate
AlbertZ
AlbertZ5mo ago
ok, thanks~
Brody
Brody5mo ago
but to directly answer your question: yes
angelo
angelo5mo ago
cc @thomas, for his todos
thomas
thomas5mo 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
Brody5mo ago
I think 100gb is a sufficient value?
thomas
thomas5mo 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
Brody5mo ago
maybe just an account wide volume limit bump?
thomas
thomas5mo 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
Duchess5mo ago
Hey @thomas_railway_75694, remember to grow this volume - https://discord.com/channels/713503345364697088/1199980272649768981/1200160499480928357
thomas
thomas5mo ago
@albertz8912 You are good to try migrating again, please let me know if you have any issues.
AlbertZ
AlbertZ5mo ago
ok thanks Can I migrate again?
Brody
Brody5mo ago
yes
thomas
thomas5mo ago
Is there anything I can do to help? I will check in on your project later today.
AlbertZ
AlbertZ5mo ago
done for production
No description
AlbertZ
AlbertZ5mo ago
but there got a error in mongoDB migrate
No description
Brody
Brody5mo ago
by error do you mean the action required message?
AlbertZ
AlbertZ5mo ago
yes
AlbertZ
AlbertZ5mo ago
No description
AlbertZ
AlbertZ5mo ago
Is this a bug? Or we can ignore it
Brody
Brody5mo 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
AlbertZ
AlbertZ5mo ago
already done for referencing
Brody
Brody5mo ago
nothing is connecting to the legacy database?
AlbertZ
AlbertZ5mo ago
yes
Brody
Brody5mo ago
and your app is working fine, across all environments?
AlbertZ
AlbertZ5mo ago
Still testing I think the data in the database should be fine
Brody
Brody5mo 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
thomas5mo ago
I will look into that
thomas
thomas5mo ago
No description
thomas
thomas5mo ago
it's not meant to look that way seeing if I can figure out why it does
thomas
thomas5mo ago
No description
thomas
thomas5mo 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
Duchess5mo 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
thomas5mo 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.
AlbertZ
AlbertZ5mo ago
cannot view the service logs, always loading
No description
Brody
Brody5mo ago
are you the owner of that project?
jr
jr5mo ago
Checking back here, everything looks good? I can see both plugins are migrated and all services are up and running
AlbertZ
AlbertZ5mo ago
what version of MongoDB railways have upgraded to? mongo:latest docker image?
Brody
Brody5mo ago
correct