OpenG2P / openg2p-erp-docker

Docker compose for spinning up OpenG2P ERP
https://docs.openg2p.org/erp
GNU Affero General Public License v3.0
3 stars 11 forks source link

Issue restarting the odoo POD #11

Open jeremi opened 2 years ago

jeremi commented 2 years ago

I followed the installation steps described in my PR #10 . Odoo seemed stuck so I killed the odoo pod and it restarted, but now it seems stuck in an infinite loop restarting every few minutes and never going further than the updating modules. image

jeremi commented 2 years ago

I re-tried to setup few times, but the pod never restart properly.

The issue is:

Traceback (most recent call last):
  File "/opt/bitnami/odoo/lib/odoo-12.0.post20210915-py3.8.egg/odoo/addons/base/models/ir_module.py", line 337, in check_external_dependencies
    cls._check_external_dependencies(terp)
  File "/opt/bitnami/odoo/lib/odoo-12.0.post20210915-py3.8.egg/odoo/addons/base/models/ir_module.py", line 325, in _check_external_dependencies
    raise ImportError('No module named %s' % (pydep,))
ImportError: No module named cachetools

I imagine the reason is that the dependencies installed during the post-init phase (customPostInitScripts) are not present anymore in the pod when it is deleted and recreated by the Deployments manager.

truthfool commented 2 years ago

yes, post init scripts runs only once so you have to delete and install again.

jeremi commented 2 years ago

ok, what is the recommended way to run it for doing demos? And running in production?

truthfool commented 2 years ago

The flow starts from: Filling forms in ODK->ODK Connector pull those data->Registration->Beneficiary

jeremi commented 2 years ago

@truthfool What about hosting the app? (for demo and prod) I tried the helm version but after a few minutes the POD is not working anymore (seems some concurrency problem) and then I cannot restart it. So it is not very usable.