R
Railway•4mo ago
!!DETLIXX

🚫 MongoDB doesnt work after disk grow

Hello, i did disk increase, and after that my databaze is not working.
No description
Solution:
had a look at their project, they deployed a new mongo database and swapped the volumes around. they would need to undo everything they did to get back to a working state. they would also need to know the password of the original database because they deleted the original service....
Jump to solution
34 Replies
Percy
Percy•4mo ago
Project ID: ee8056af-fbe1-471a-82a0-db5d10cdaf8f
!!DETLIXX
!!DETLIXXOP•4mo ago
ee8056af-fbe1-471a-82a0-db5d10cdaf8f
Fragly
Fragly•4mo ago
Have you redeployed the database?
!!DETLIXX
!!DETLIXXOP•4mo ago
Yes, redeploy. restart
Fragly
Fragly•4mo ago
redeploy restart?
!!DETLIXX
!!DETLIXXOP•4mo ago
Redeploy / Restart both
!!DETLIXX
!!DETLIXXOP•4mo ago
No description
Fragly
Fragly•4mo ago
Oh so you redeployed and restarted the database?
!!DETLIXX
!!DETLIXXOP•4mo ago
I tried both yes
Fragly
Fragly•4mo ago
Only a redeploy is necassery, it should've worked after redeploying 🤔 Can you connect to the database via a db client like MongoDB Compass?
!!DETLIXX
!!DETLIXXOP•4mo ago
Mounting volume on: /var/lib/containers/railwayapp/bind-mounts/vol_fzhp6wu9vmqj11ae Initialized wire specification Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none' Implicit TCP FastOpen unavailable. If TCP FastOpen is required, set tcpFastOpenServer, tcpFastOpenClient, and tcpFastOpenQueueSize. Successfully registered PrimaryOnlyService Successfully registered PrimaryOnlyService Multi threading initialized Starting TenantMigrationAccessBlockerRegistry MongoDB starting Memory available to mongo process is less than total system memory Build Info Operating System Options set by command line Storage engine to use detected by data files Using the XFS filesystem is strongly recommended with the WiredTiger storage engine. See http://dochub.mongodb.org/core/prodnotes-filesystem Opening WiredTiger WiredTiger message WiredTiger message WiredTiger message WiredTiger message WiredTiger message WiredTiger message WiredTiger message WiredTiger message WiredTiger opened WiredTiger recoveryTimestamp /sys/kernel/mm/transparent_hugepage/enabled is 'always'. We suggest setting it to 'never' in this binary version vm.max_map_count is too low Updated wire specification current featureCompatibilityVersion value Clearing temp directory Initializing cluster server parameters from disk Flow Control is enabled on this deployment Initializing full-time diagnostic data capture Setting new configuration state Timestamp monitor starting Listening on Listening on Listening on Waiting for connections mongod startup complete WiredTiger message WiredTiger message WiredTiger message WiredTiger message WiredTiger message WiredTiger message WiredTiger message WiredTiger message WiredTiger message WiredTiger message WiredTiger message WiredTiger message WiredTiger message WiredTiger message WiredTiger message WiredTiger message WiredTiger message Log No i cant. Even envs doesnt work my servers are down
!!DETLIXX
!!DETLIXXOP•4mo ago
No description
!!DETLIXX
!!DETLIXXOP•4mo ago
Its not starting post deploy
No description
Fragly
Fragly•4mo ago
That UI is a bit buggy, so can't really rely on that
!!DETLIXX
!!DETLIXXOP•4mo ago
I dont know, but it doesnt work
Fragly
Fragly•4mo ago
Worth asking, did you change anything other than growing the volume? Like you didn't swap volumes or anything, right?
!!DETLIXX
!!DETLIXXOP•4mo ago
Yes and no. I did that AFTER that, vecause i was trying to somhow export that db from server and maybe import it somehow back. But like i said, AFTER i tried everything, so after redeploy, restart, and more
Fragly
Fragly•4mo ago
Are you using the original volume again? Also did you change environment variables? It's very odd to me that your database is refusing to connect 🤔 My guess is something changed on the database service that broke it
!!DETLIXX
!!DETLIXXOP•4mo ago
yes its same volume, because its 'production" volume. No i did not change enviroments. I just changed size, and after deploy it was loading and loading and its still loading
Fragly
Fragly•4mo ago
Then I'm out of ideas
!!DETLIXX
!!DETLIXXOP•4mo ago
It woukd be good if someone from team answered me 🙂
Fragly
Fragly•4mo ago
You'd need to be on pro-plan to be eligible for team support I'm fairly confident this isn't a platform error so I can't really involve the team here and the team doesn't work over the weekends anyway Although if we're lucky then brody will see this and help anyway Sorry that I can't help further, I have a presentation in 7 hours and it's 1 am so I don't have time to look deeper into this
!!DETLIXX
!!DETLIXXOP•4mo ago
Yeah, its not problem to buy pro plan. but here is the thing. I switched to railyway from google cloud because it seems like good choice, but i asked gpt about that log, and he told its something with replication. And because i dont have access to anything, i cant fix it. So now there is question, when i have problem with something like this, and i cant do anything with it, or noone is going to help me, its worth it to buy pro plan ?
Fragly
Fragly•4mo ago
I think ChatGPT is wrong, your logs seem completely fine to me 🤔 Hobby plan only offers community support (which is what this is), if you buy pro plan then you'll be guaranteed a response from the team
!!DETLIXX
!!DETLIXXOP•4mo ago
Then when log looks nice, there is problem somewher on railway side. or something, becuase thing i did is railway thing Okay, at least i have backups not from today but yeah, so i am going to create new mongo instance with new volume
Fragly
Fragly•4mo ago
If it was a railway problem then I'd have seen this happen to other users, but i've never seen anyone's database break after growing their volume that can definitally work
!!DETLIXX
!!DETLIXXOP•4mo ago
Can i somehow export from railway ?
Fragly
Fragly•4mo ago
What do you mean by that? Do you mean export your MongoDB data from the volume?
!!DETLIXX
!!DETLIXXOP•4mo ago
yeah
Fragly
Fragly•4mo ago
Usually what I do is I connect to the database from a db client (Compass in this case) and download the database from there I'm unsure whether it's possible to extract it directly from the volume, I've never done that before
Adam
Adam•4mo ago
@Brody ^
Solution
Brody
Brody•4mo ago
had a look at their project, they deployed a new mongo database and swapped the volumes around. they would need to undo everything they did to get back to a working state. they would also need to know the password of the original database because they deleted the original service.
!!DETLIXX
!!DETLIXXOP•4mo ago
Yeah, but all that happene after problem with strorage increase, because i panicked and was trying to fix it, but nvm, i used backup and created new mongo. Thanks
Brody
Brody•4mo ago
next time you are having issues and you don't know what to do, please reach out to the community and someone will be able to guide you through what and what not to do. for future reference, if you did not have a backup and you lost the data there would not be anything railway could do for you unfortunately, as we can only restore data if the platform was at fault.
Want results from more Discord servers?
Add your server