0

我刚刚安装了 odoo15,但是当我尝试启动它时,我收到“内部错误消息”,并从日志文件中收到以下消息:

return self.app(environ, start_response)
File "/opt/odoo/odoo/http.py", line 1464, in dispatch
explicit_session = self.setup_session(httprequest)
File "/opt/odoo/odoo/http.py", line 1345, in setup_session
session_gc(self.session_store)
File "/opt/odoo/odoo/tools/func.py", line 26, in __get__
value = self.fget(obj)
File "/opt/odoo/odoo/http.py", line 1291, in session_store
path = odoo.tools.config.session_dir
File "/opt/odoo/odoo/tools/config.py", line 714, in session_dir
assert os.access(d, os.W_OK), \
AssertionError: /var/lib/odoo/sessions: directory is not writable - - -

请问如何解决这个问题

谢谢

4

1 回答 1

0

确保使用能够在此目录中写入的用户启动 odoo。

我的猜测是 /var/lib/odoo/sessions 只能由 root 写入。您是否为 odoo 创建了新用户?

试试这个(odoo:odoo 是您的 odoo 系统用户的用户和组):

sudo chown -R odoo:odoo /var/lib/odoo

否则还要确保它是可写的:

sudo chmod +w /var/lib/odoo/sessions
于 2022-02-14T10:27:16.493 回答