Mongo database data/db missing. Backup restore won't help.

Posted September 7, 2021 281 views

I am (or was) running a website built with vue frontend and strapi backend. All data was held with a mongo database on the droplet.

Last week we noticed 502 errors on the strapi cms url and console errors in browser with no content showing from the api. After inspection, strapi had errored as mongod had stopped. I couldn’t find any /data/db folder and mongo was not running.

I have the DO backups and so went to restore from one of these but none of my backups have any database content or users. Both frontend and backend code works fine but its as if my database was never there and it is obviously messing with mongo as I can’t get it to run with systemd.

Should DO backups save your database or am I wrong? And if so then does anyone have an idea of what may have happened?

I’m really a frontend guy and this was my first foray into setting up a full site - it’s been fine for a year and now this!

Any help appreciated, if there’s any commands or error codes that may help debug please let me know

Submit an answer

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!