Skip to Content
Menu
This question has been flagged
3 Replies
2098 Views

Please help if you are able.

I have upgraded to Ubuntu 24.04.1 LTS

Running Odoo 17 Enterprise

After upgrade Odoo service wont run as per the following

Ubuntu 24.04.1 LTS

The following is present (ignore the xxxxxxxxxxxxxxxx)

-----------------------------------------------------------------------------------------

x service odoo status

× odoo.service - Odoo Open Source ERP and CRM

Loaded: loaded (/usr/lib/systemd/system/odoo.service; enabled; preset: ena>

Active: failed (Result: exit-code) since Sat 2024-10-05 00:16:14 AWST; 7h >

Duration: 1.807s

Main PID: 8798 (code=exited, status=1/FAILURE)

CPU: 1.807s


Oct 05 00:16:14 xxxxxxxxxxxxxxxx odoo[8798]:   File "/usr/lib/python3/dist-packages/odoo/tools/misc.py", line 44, in

Oct 05 00:16:14 xxxxxxxxxxxxxxxx odoo[8798]:     from lxml import etree, objectify

Oct 05 00:16:14 xxxxxxxxxxxxxxxx odoo[8798]: ModuleNotFoundError: No module named 'lxml'

Oct 05 00:16:14 xxxxxxxxxxxxxxxx systemd[1]: odoo.service: Main process exited, code=exited, status=1/FAILURE

Oct 05 00:16:14 xxxxxxxxxxxxxxxx systemd[1]: odoo.service: Failed with result 'exit-code'.

Oct 05 00:16:14 xxx systemd[1]: odoo.service: Consumed 1.807s CPU time.


------------------------------------------------------------------------------------------------------

lxml was installed. I uninstalled it, reinstalled, downgraded all with the same error arising.


Avatar
Discard
Best Answer

Facing the same issues with odoo17 on premise, when i upgraded to ubuntu 24. Is it related to upgraded python version ? HELP ..

Avatar
Discard

milan, kindly review my answer maybe helpful for you.

Best Answer

Hi,
From the shared traceback it seems there is missing package: lxml

try installing this package and try restarting odoo service and see how it goes


Thanks

Avatar
Discard
Author

Hi Niyas
Yes I tried this but it did not work but thanks for your input.
Kind Regards

Best Answer

Hello Peskie, 

First of all the check the python version is support to odoo17 or not. 

Odoo 17 support python version : 3.10

In that case you need to create python 3.10 venv and run odoo based on venv. 

For the venv you can use the following commands 

sudo add-apt-repository ppa:deadsnakes/ppa

sudo apt-get update

sudo apt install python3.10

Now install venv i.e

sudo apt-get install python3.10-venv python3.10-dev

python3.10 -m venv odoo-venv

Thanks,

Avatar
Discard
Author

Hi Manish
In the end I had 2 x Odoo Python experts work on this issue for a total of about 8 hours. In the end the resolution of this was made by your above advice but also a great deal more other errors being resolved as they arose. No matter what was done more errors were produced and in particular "lxml" was not recognized as being installed although it was. Upgrading downgrading and python version changes did not work alone. What did work was not using the .deb package installer to upgrade Odoo. The person whom fixed the issue in the end needed to download the source code (Using the tar.gz file from the Odoo download page for 17 Enterprise)and replace the current files to update as the modules wouldn't load correctly. He reinstalled multiple files and resolved multiple errors. He commented that when the Ubuntu upgrade took place it updated the python version create dramatic conflict with my version of Odoo. My advise is DON'T UPGRADE UBUNTU without the expectation of a Odoo lockout and meltdown - Get an expert to do the upgrade to Ubuntu 24.04.1 LTS if you have Odoo 17 Installed.
Thanks Manish for your assistance.
Kind Regards

Related Posts Replies Views Activity
4
Jul 24
5081
1
Dec 23
1095
2
Jun 23
4029
11
Oct 24
69232
0
Mar 15
3667