R
Railway•6mo ago
JustChris

Mongo DB crashed - please help

Unclean full-time diagnostic data capture shutdown detected, found interim file, some metrics may have been lost Listening on Listening on Listening on Waiting for connections Writing fatal message Writing fatal message Writing fatal message BACKTRACE Frame Frame
38 Replies
Percy
Percy•6mo ago
Project ID: N/A
JustChris
JustChris•6mo ago
Brody
Brody•6mo ago
can you send a screenshot of the service metrics and volume graph?
JustChris
JustChris•6mo ago
sure I basically just stored 1 user account data in my db - I was able to use it in my application for quite a while and didnt actually change anything - until today I find out I cant login anymore. Then I see, Mongo crashed - I restarted it - I could login once.. but it crashed again right after I have no clue what could be the reason - volume seems still fine
Brody
Brody•6mo ago
screenshot of the services volume graph? also, where is your service that connects to mongo?
JustChris
JustChris•6mo ago
service volume.. I thought thats it already 😄 I'll search for more Thats my nodejs backend
Brody
Brody•6mo ago
click on the volume and send a screenshot please
JustChris
JustChris•6mo ago
wooden-clover is my backend. glossy-notebook the mongodb this right ?
Brody
Brody•6mo ago
its possible mongo is trying to do some disk allocations but you only have a 500mb volume, can you try upgrading to hobby and then grow the volume
JustChris
JustChris•6mo ago
Hm, what could that be ? I have only a user table. that's it. I chose railway because I can play around a little first without paying anything 😄
Brody
Brody•6mo ago
the trial only gets you a 500mb volume, you would have had to upgrade eventually
JustChris
JustChris•6mo ago
okay then can I ask one more thing - is it possible to deploy code, without having the repo public on github ?
Brody
Brody•6mo ago
yes of course
JustChris
JustChris•6mo ago
I dislike, that everyone can see my repo currently Oh okay
Brody
Brody•6mo ago
make it private then lol
JustChris
JustChris•6mo ago
and I can still deploy automatically when pushing new versions ? nice!!
Brody
Brody•6mo ago
as long as you have given the railway app access to your repos it will work all the same
JustChris
JustChris•6mo ago
okay, hobby it is then 😄 thanks
Brody
Brody•6mo ago
once you upgrade you will see this grow button in the volumes settings grow the volume, then restart the database
JustChris
JustChris•6mo ago
okay will do. I suspect that I have two seperate spaces for DB and BE .. like can't it be all in one ? did I set it up in the wrong way ? could be all in wooden-clover right ?
Brody
Brody•6mo ago
you did set it up the wrong way indeed the database should be in the same project as your app, like this (this is postgres and umami but you get the idea)
JustChris
JustChris•6mo ago
Okay Brody, I already had a feeling. Then I wont take up more of your time, thanks for your input. I'll figure it out
Brody
Brody•6mo ago
dont worry about taking my time, thats what im here for
JustChris
JustChris•6mo ago
Great, thanks. I'll come back if I need you again then, hehe.
Brody
Brody•6mo ago
sounds good!
JustChris
JustChris•6mo ago
Have a wonderful day and happy new year 🙂
Brody
Brody•6mo ago
you too!
JustChris
JustChris•6mo ago
I am still struggeling to get it up and running again have you had this problem before ? I deleted the previous DB and set up a new one in the same service as you recommended @Brody
Brody
Brody•6mo ago
what is in the logs?
JustChris
JustChris•6mo ago
I deleted all variables, and MONGO DB again - setting it up from scratch if it fails, I'll get back to you can't be so hard, made it in the first place as well .. just frustrated at the moment 😄 might be that mongoDB Compass interfers with the railway connection to mongo DB ?
Brody
Brody•6mo ago
show me a screenshot of your project now?
JustChris
JustChris•6mo ago
it is running now. No clue what was wrong before .. maybe some old variables in the way good the data in the database is only one single user so far, then I can easily set up from scratch
Brody
Brody•6mo ago
glad its working now, but always keep a backup of your database as railway is not responsible for data loss
JustChris
JustChris•6mo ago
Brody
Brody•6mo ago
looks good
JustChris
JustChris•6mo ago
okay, I will check the documentation for it 🙂 today I wanted to set up registration to my small project - so far I used 4 hours to make the project run again - I bet you know the struggle haha.
Brody
Brody•6mo ago
i too have spent a lot of time getting stuff to work for users