I'm running Odoo on an EC2 instance and using PostgreSQL in RDS for my database. Every time I check back in the next day, it seems like all my data is wiped clean. I'm really new to this setup, and I'm on the free tier for a school project. Can anyone help me figure out how to make my data persist? It's getting quite frustrating!
3 Answers
Just to clarify, when you mention "opening" the instance, are you restarting the EC2 instance or just logging in via the browser? Although it sounds like you have everything set up correctly with RDS, make sure your DB connects properly. Sometimes, automatic snapshots or restarts can mess things up, especially with non-persistent storage. Really look over your setup and ensure the paths are correct!
Also, keep in mind that when EC2 instances are stopped, data on the instance store is lost and it might look like your database is missing. Try running a backup or check if the RDS instance is configured correctly to avoid issues with data loss.
It sounds like you might be storing your Odoo database on the ephemeral instance store, which doesn't retain data if the instance stops. Make sure you're using the right storage! The data should be on an attached EBS volume instead of the temporary storage. Check the configurations and see where your Odoo DB is mounted.
Related Questions
Fix Not Being Able To Add New Categories With Intuitive Category Checklist For Wordpress
Get Real User IP Without Installing Cloudflare Apache Module
How to Get Total Line Count In Visual Studio 2013 Without Addons
Install and Configure PhpMyAdmin on Centos 7
How To Setup PostfixAdmin With Dovecot and Postfix Virtual Mailbox
Dovecot Error Unknown database driver mysql