跳至內容
選單
此問題已被標幟
1 回覆
2519 瀏覽次數

Hi I'm upgrading from 14 to 16. The environment is Kubernetes. Can you help?
There is error about file not found.

FileNotFoundError: [Errno 2] No such file or directory: '/var/lib/odoo/filestore/sentrex_odoo16_production/c7/c7d1c191c4ad624bfd75c39a31613a3c1c481582'

However, I've checked the table "ir_attachment". There is no such data existing.


SELECT id, name, res_model, res_id, file_size, checksum, store_fname
FROM ir_attachment
WHERE store_fname = 'c7d1c191c4ad624bfd75c39a31613a3c1c481582';

Another issue is "KeyError": socket


2023-12-19 23:02:37,816 26 ERROR sentrex_odoo16_production odoo.http: Exception during request handling. Traceback (most recent call last): File "/usr/lib/python3/dist-packages/odoo/http.py", line 1998, in __call__ response = request._serve_db() File "/usr/lib/python3/dist-packages/odoo/http.py", line 1584, in _serve_db return service_model.retrying(self._serve_ir_http, self.env) File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 133, in retrying result = func() File "/usr/lib/python3/dist-packages/odoo/http.py", line 1611, in _serve_ir_http response = self.dispatcher.dispatch(rule.endpoint, args) File "/usr/lib/python3/dist-packages/odoo/http.py", line 1725, in dispatch return self.request.registry['ir.http']._dispatch(endpoint) File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_http.py", line 154, in _dispatch result = endpoint(**request.params) File "/usr/lib/python3/dist-packages/odoo/http.py", line 697, in route_wrapper result = endpoint(self, *args, **params_ok) File "/usr/lib/python3/dist-packages/odoo/addons/bus/controllers/websocket.py", line 23, in websocket return WebsocketConnectionHandler.open_connection(request) File "/usr/lib/python3/dist-packages/odoo/addons/bus/websocket.py", line 817, in open_connection Websocket(request.httprequest.environ['socket'], request.session), KeyError: 'socket'

頭像
捨棄

Hello,

This file is missing in odoo16 your odoo16 filestore.

最佳答案

Hello,

The upgraded database in TEST do not contain all the filestore.

You can generate the  missing files with a upgrad all : 

In parameters : -c /my_file_conf_path/odoo.conf -d my_test_db -u all

Regards,

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
1月 24
1452
2
4月 24
17309
0
11月 23
1172
1
3月 24
1678
1
1月 24
3036