I had an Odoo 16 instance on Debian 11 which recently crashed and hangs at boot. It's on a virtual server hosting service so I have no access to the hardware. Since it doesn't get far enough to start ssh I can't do anything to troubleshoot and fix the issue so I have to start from scratch. Without the server running I can't use the database manager to export the database to import it to a new server. I did take regular backups of the server file system. Is there a way to restore the instance from the flat files out of the backup?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Бухоблік
- Склад
- PoS
- Project
- MRP
Це запитання позначене
Assuming you have a .sql file, you can run
createdb dbname
psql dbname
You will need the odoo source code from "git clone https://github/odoo/odoo". If you are running enterprise, and you have premission to pull, you will need the source code for that also "git clone https://github/odoo/enterprise". After that you will need to set up your environment with all of the python modules and other software packages installed. Then you will need to create a config file.
You'll find everything you need to know in the odoo documentation.
---------------------------------------------------------------------------------------------------
OK. After you copy the files to the new postgres location, can you connect to the database using psql dbname? If not, then postgres is the issue. Otherwise, the odoo config might have errors such as if you are using a different db name.
I don't have a database dump. I have the directory tree /var/lib/postgresql/13/main where the flat files that comprise the database are and that is it. Prostgresql man files say that backing up from flat files is viable but when I copy the files back into the data directory and restart all the services the new Odoo instance will not connect to that database.
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
РеєстраціяRelated Posts | Відповіді | Переглядів | Дія | |
---|---|---|---|---|
|
1
лют. 25
|
87 | ||
|
1
лист. 24
|
965 | ||
|
1
серп. 20
|
5947 | ||
|
4
лют. 18
|
8023 | ||
|
1
лют. 16
|
3384 |