This question has been flagged
1 Reply
3954 Views

Hello everybody,

We have Odoo 10.0 community edition installed on Ubuntu 16.04 VPS. We really like the system and its flexibility.
But today somethig very bad happened:
Our VPS provider restarted all servers and after restart Odoo database is gone. Logs doesn't say too much only that it could not connect to database. Postgresql logs doesn't say anything as well. Everything looks like it was working well and instantly everything dissapeared... Auth logs doesn't say that anything might went wrong as there is no suspicious actions there. Now when I check postgresql databases list there is no Odoo database in there and Odoo is asking for me to create new database. Why could that have happened? And is there any way to restore the database?


Here are the database logs:

2017-06-21 14:15:43.958 EDT [1686] odoo@odoo STATEMENT:  SELECT id FROM "ir_cron" WHERE id IN (4) FOR UPDATE NOWAIT
2017-06-21 14:16:30.876 EDT [29442] odoo@odoo FATAL:  database "odoo" does not exist
2017-06-22 12:02:37.394 EDT [335] LOG:  database system was interrupted; last known up at 2017-06-21 14:21:33 EDT
2017-06-22 12:02:37.426 EDT [335] LOG:  database system was not properly shut down; automatic recovery in progress
2017-06-22 12:02:37.428 EDT [335] LOG:  invalid record length at 0/B28ADC0: wanted 24, got 0
2017-06-22 12:02:37.428 EDT [335] LOG:  redo is not required
2017-06-22 12:02:37.434 EDT [335] LOG:  MultiXact member wraparound protections are now enabled
2017-06-22 12:02:37.439 EDT [316] LOG:  database system is ready to accept connections
2017-06-22 12:02:37.440 EDT [353] LOG:  autovacuum launcher started
2017-06-22 12:02:37.818 EDT [400] [unknown]@[unknown] LOG:  incomplete startup packet
2017-06-22 13:14:43.376 EDT [316] LOG:  received fast shutdown request
2017-06-22 13:14:43.376 EDT [316] LOG:  aborting any active transactions
2017-06-22 13:14:43.376 EDT [353] LOG:  autovacuum launcher shutting down
2017-06-22 13:14:43.379 EDT [350] LOG:  shutting down
2017-06-22 13:14:43.390 EDT [316] LOG:  database system is shut down
2017-06-22 13:48:39.270 EDT [2878] LOG:  database system was shut down at 2017-06-22 13:14:43 EDT
2017-06-22 13:48:39.274 EDT [2878] LOG:  MultiXact member wraparound protections are now enabled
2017-06-22 13:48:39.283 EDT [2877] LOG:  database system is ready to accept connections
2017-06-22 13:48:39.283 EDT [2882] LOG:  autovacuum launcher started
2017-06-22 13:48:39.702 EDT [2884] [unknown]@[unknown] LOG:  incomplete startup packet


Avatar
Discard
Best Answer

You can restore your database from your backup. If you did not make backups, you should revert to your VPS provider for a server backup/image to restore.

Avatar
Discard