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