Hello everyone,
I'm facing an issue while trying to restore a database in my Odoo instance.
I created a backup from the Odoo web interface (file: odoodb.zip) using the database manager. Now I’m trying to restore this backup on the same Odoo instance.
However, when I try to import it, I get the following error in the web interface:
Database restore error: Database already exists
And in the terminal, I see the following log:
2025-04-23 10:30:19,568 8369 INFO testdb odoo.service.db: RESTORING DB: odoodb
2025-04-23 10:32:20,660 8369 WARNING ? odoo.service.server: Thread , <Thread(odoo.service.http.request.140697989527104, started 140697989527104)> virtual real time limit (168/120s) reached.
...
odoo/service/db.py", line 326, in restore_db
r = subprocess.run(
...
subprocess.py", line 1260, in wait
return self._wait(timeout=timeout)
Additional information:
- I’m restoring the database through the web interface at: http://<my-ip>:8069/web/database/restore
- The database name I’m trying to restore does not currently exist (or shouldn't).
- The restoration process seems to hang until it reaches the virtual real time limit.
Note:
The database did not exist before I attempted the restore. The PostgreSQL server contains no other custom databases — only the default ones created by the system.
My questions:
- How can I properly restore a .zip database backup if it supposedly doesn’t already exist?
- Could this be a caching or permission issue?
- Are there any recommended best practices when restoring database backups in Odoo?
Thanks in advance for your help!