I upgraded ubuntu and when it rebooted mongodb was no longer running. I can start it manually I just need the location of the db files.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
You need to check your MongoDB configuration file, which I’m not sure where’s located, since you haven’t listed what version of Ubuntu your upgraded from and to. Usually the database is located in /var/db/mongodb or /var/lib/mongodb
This command should list the path of the databases, if your configuration is in /etc/mongodb.conf
grep dbpath /etc/mongodb.conf
Which version of MongoDB are you running and which version of Ubuntu (both before and now)?
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.