Skip to Content
Menú
This question has been flagged
2 Respostes
4667 Vistes

After installing Odoo 14 in the repository way or RPM download I get the following error:

× odoo.service - Odoo Open Source ERP and CRM

     Loaded: loaded (/usr/lib/systemd/system/odoo.service; enabled; vendor preset: disabled)

     Active: failed (Result: exit-code) since Fri 2021-05-07 19:19:43 -05; 1min 56s ago

    Process: 33143 ExecStart=/usr/bin/odoo --config /etc/odoo/odoo.conf --logfile /var/log/odoo/odoo-server.log (code=exited, status=1/FAILURE)

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

        CPU: 47ms


may 07 19:19:43 fedora systemd[1]: Started Odoo Open Source ERP and CRM.

may 07 19:19:43 fedora python3[33143]: detected unhandled Python exception in '/usr/bin/odoo'

may 07 19:19:43 fedora odoo[33143]: Traceback (most recent call last):

may 07 19:19:43 fedora odoo[33143]:   File "/usr/bin/odoo", line 5, in <module>

may 07 19:19:43 fedora odoo[33143]:     import odoo

may 07 19:19:43 fedora odoo[33143]: ModuleNotFoundError: No module named 'odoo'

may 07 19:19:43 fedora systemd[1]: odoo.service: Main process exited, code=exited, status=1/FAILURE

may 07 19:19:43 fedora systemd[1]: odoo.service: Failed with result 'exit-code'.



I would appreciate a help to solve this problem.
Avatar
Descartar
Best Answer

As today (Sept 1st 2021) odoo 14.0 fails to install itself in the correct directories in Fedora 34. It ends up in /usr/lib/python3.8 where it should be on /usr/lib/python3.9.

I've made a hack to solve this:

```

/usr/lib/python3.9/site-packages

ln -s ../../python3.8/site-packages/odoo-14.0.post20210901-py3.8.egg-info

ln -s ../../python3.8/site-packages/odoo

```

After this the error will change to an invalid input on odoo.conf; so you must fix /etc/odoo/odoo.conf to point addons_path to the right place:

addons_path = /usr/lib/python3.9/site-packages/odoo/addons

After those changes Odoo was able to start on Fedora 34.

● odoo.service - Odoo Open Source ERP and CRM

     Loaded: loaded (/usr/lib/systemd/system/odoo.service; enabled; vendor preset: disabled)

     Active: active (running) since Wed 2021-09-01 19:48:42 -03; 1s ago

   Main PID: 1082 (odoo)

      Tasks: 4 (limit: 4637)

     Memory: 65.7M

        CPU: 1.158s

     CGroup: /system.slice/odoo.service

             └─1082 /usr/bin/python3 /usr/bin/odoo --config /etc/odoo/odoo.conf --logfile /var/log/odoo/odoo-server.log


Avatar
Descartar
Best Answer

Hi,

You need to change in ExecStart Variable in ODOO Service File 

 Example:- ExecStart=/usr/bin/python3 /opt/odoo14/odoo-bin -c /etc/odoo/odoo.conf

relpace path of odoo-bin file according to location in your Server (it's located in your ODOO Source Code which you downloaded)

Thanks & Regards, Sunny Sheth (shethsunny555@gmail.com)
Avatar
Descartar
Related Posts Respostes Vistes Activitat
1
de jul. 25
2389
2
de jul. 25
7886
2
de jul. 25
4292
2
de jul. 25
4030
2
de juny 25
2636