We are using recruitment module and some time during candidate update we see connection lost and odoo service stopped and need to restart the service to restore the connection.
Below is the service status when failed.
sudo systemctl status odoo
● odoo.service - Odoo
Loaded: loaded (/etc/systemd/system/odoo.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2019-08-28 07:44:15 UTC; 4min 39s ago
Process: 787 ExecStart=/opt/odoo/odoo-venv/bin/python3 /opt/odoo/odoo/odoo-bin -c /etc/odoo.conf (code=exited, status=1/FAILURE)
Main PID: 787 (code=exited, status=1/FAILURE)
odoo[787]: 2019-08-28 07:44:14,776 787 INFO ? odoo.service.server: Thread <Thread(odoo.service.http.request.139984111134464, started 139984111134464)> virt
odoo[787]: 2019-08-28 07:44:14,776 787 INFO ? odoo.service.server: Initiating server reload
odoo[787]: Traceback (most recent call last):
odoo[787]: File "/opt/odoo/odoo/odoo-bin", line 5, in <module>
odoo[787]: import odoo
odoo[787]: File "/opt/odoo/odoo/odoo/__init__.py", line 73, in <module>
odoo[787]: import babel
odoo[787]: ModuleNotFoundError: No module named 'babel'
odoo.service: Main process exited, code=exited, status=1/FAILURE
systemd[1]: odoo.service: Failed with result 'exit-code'.
Not sure if we need to install some module we are using ubuntu latest release and Odoo latest too.