Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
486 Lượt xem

I have an instance of Odoo18 community intalled via git running on a Digital Ocean droplet :

  • Ubuntu 24.10 (GNU/Linux 6.11.0-29-generic x86_64)
  • 2 GB Memory
  • 50 GB Disk

It runs for about a week and then crashes by iteself, saying the decorator module is not installed. When it is...

root@ConfimundoDiana:~# sudo systemctl status odoo18.service
× odoo18.service - Odoo18
     Loaded: loaded (/etc/systemd/system/odoo18.service; disabled; preset: enabled)
     Active: failed (Result: exit-code) since Sun 2025-07-27 14:45:12 UTC; 1 day 18h ago
   Duration: 1w 20h 16min 9.389s
Invocation: 2d0ceaade6e14839977c1f800d480ed2
       Docs: http://www.odoo.com
    Process: 7996 ExecStart=/opt/odoo18/venv/bin/python3.12 /opt/odoo18/odoo/odoo-bin -c /etc/odoo18.conf (code=exited, status=1/FAILURE)
   Main PID: 7996 (code=exited, status=1/FAILURE)
   Mem peak: 359.1M
        CPU: 38min 608ms

Jul 27 14:45:12 ConfimundoDiana python3.12[7996]:   File "/opt/odoo18/odoo/odoo/orm/utils.py", line 8, in <module>
Jul 27 14:45:12 ConfimundoDiana python3.12[7996]:     from odoo.tools import SQL
Jul 27 14:45:12 ConfimundoDiana python3.12[7996]:   File "/opt/odoo18/odoo/odoo/tools/__init__.py", line 7, in <module>
Jul 27 14:45:12 ConfimundoDiana python3.12[7996]:     from .cache import ormcache, ormcache_context
Jul 27 14:45:12 ConfimundoDiana python3.12[7996]:   File "/opt/odoo18/odoo/odoo/tools/cache.py", line 6, in <module>
Jul 27 14:45:12 ConfimundoDiana python3.12[7996]:     from decorator import decorator
Jul 27 14:45:12 ConfimundoDiana python3.12[7996]: ModuleNotFoundError: No module named 'decorator'
Jul 27 14:45:12 ConfimundoDiana systemd[1]: odoo18.service: Main process exited, code=exited, status=1/FAILURE
Jul 27 14:45:12 ConfimundoDiana systemd[1]: odoo18.service: Failed with result 'exit-code'.
Jul 27 14:45:12 ConfimundoDiana systemd[1]: odoo18.service: Consumed 38min 608ms CPU time, 359.1M memory peak.
root@ConfimundoDiana:~#

When it happens, I just restart Odoo and it runs for another 1-2 weeks withtout a problem, then the same problem happens. It's very strange I don't understand why this happens..

Any idea?

The Odoo instance is mainly used to host an ecommerce website.

Thanks a lot for the help!


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hello,

by the log message, it says "from decorator import decorator" and the error message throws "no module named 'decorator'"

Try to install decorator module by typing :

`pip install decorator`

The problem probably caused by Odoo version that is not compatible with linux version in the hosting.

Hope this helps,

Altela (altelasoftware.com)

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 8 25
181
0
thg 6 25
545
1
thg 6 25
974
0
thg 8 25
397
2
thg 6 25
687