Skip to Content
Menu
This question has been flagged
1 Reply
2022 Views

I am running Odoo 15.0-20220902 (Community Edition) on a TrueNAS-SCALE-22.12.0 installation using truecharts https://truecharts.org/charts/stable/odoo 


I am having a problem where odoo is running inside a Kubernetes environment and I cannot edit the /etc/odoo/odoo.conf file to adjust the default 


limit_time_cpu = 60

limit_time_real = 120


Because of this I am getting issues trying to make a system backup using the /web/database/manager portal.  The process times out and my backups are irregular sizes and fail to complete leaving the zip file in an error state where trying to open causes an “unexpected end of file” error.


I am curious if I can make a manual backup.  I know there needs to be an _manifest_.py, datastore, and pg_dump in the zip file.  The DB backup works as it is a small db and site.  The datastore pod I can mount and copy the data out manually.  I do not know where the _manifest_.py file is located though so I am not sure how to get it.  Would this process of manually zipping all the data even work? 


I am moving from community to enterprise since I cannot run the upgrade script in the Kubernetes environment I was hoping I could get a backup out of this environment and then install odoo 15 community onto a windows server and load the backup in, then process the upgrade.  Once complete I would take a backup and load that into the odoo.sh environment and redirect traffic up after testing. 


Any advice or help is greatly appreciated. 



Avatar
Discard
Best Answer

It sounds like you are running into some limitations with your current setup, where you are unable to edit the odoo.conf file and adjust the limit_time_cpu and limit_time_real settings. This is causing issues with making backups using the /web/database/manager portal.

To make a manual backup, you would need to have all the necessary components, as you mentioned: the manifest.py file, the datastore, and the pg_dump.

The manifest.py file is typically located in the odoo installation directory, such as /usr/lib/python3/dist-packages/odoo or /usr/lib/python3.8/site-packages/odoo. However, since you are running Odoo inside a Kubernetes environment, it may be located in a different location. You can check the deployment yaml file to see where the odoo image is being pulled from, and check the location of the manifest.py file in that image.

Regarding the datastore, you can mount the datastore pod and copy the data out manually. And for pg_dump, you can use the pg_dump command to backup the odoo postgresql database.

As for moving from community to enterprise, it might be possible to achieve that by following the steps you've described, but it will depend on the specifics of your setup. You can try following these steps, but it's worth noting that it's not a straightforward process, as you'll need to carefully test and troubleshoot along the way to make sure that everything is working correctly.

It's also worth mentioning that there is a Odoo enterprise version available on the truecharts website, you can check if that version can be used on your TrueNAS-SCALE-22.12.0 installation, it could save you some troubles.

It's always a good idea to make sure you have a good backup of your data, before attempting any major changes, so that you can restore your system if something goes wrong.

Avatar
Discard
Author

Thank you that helped a lot!
I was able to make the config file static by adding the storage /etc/odoo as a host path storage in the app settings and then make the file with nano and then add what I needed. I still ended up needing the manual backup and your direction here really helped!