콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
3 답글
2100 화면

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.


아바타
취소
베스트 답변

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

아바타
취소

milan, kindly review my answer maybe helpful for you.

베스트 답변

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

아바타
취소
작성자

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

베스트 답변

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,

아바타
취소
작성자

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

관련 게시물 답글 화면 활동
4
7월 24
5086
1
12월 23
1097
2
6월 23
4029
11
10월 24
69236
0
3월 15
3667