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

Hello,
when I create a new website in Odoo 16, the installation gets stuck in the middle of the wizard. So if it was somehow a redirect error.
I always have the feeling that http doesn't forward to https.
Can someone help me?

Here is the log:

23-04-08 08:08:09,639 1531434 DEBUG odoo odoo\.modules\.registry:\ Multiprocess\ signaling\ check:\ \[Registry\ \-\ 50\ \->\ 50\]\ \[Cache\ \-\ 511\ \->\ 511\]
2023\-04\-08\ 08:08:09,639\ 1527389\ DEBUG\ odoo\ odoo\.modules\.registry:\ Multiprocess\ signaling\ check:\ \[Registry\ \-\ 50\ \->\ 50\]\ \[Cache\ \-\ 510\ \->\ 511\]
2023\-04\-08\ 08:08:09,639\ 1527389\ INFO\ odoo\ odoo\.modules\.registry:\ Invalidating\ all\ model\ caches\ after\ database\ signaling\.
2023\-04\-08\ 08:08:09,640\ 1527389\ DEBUG\ odoo\ odoo\.addons\.base\.models\.ir_http:\ Clear\ routing\ map
2023\-04\-08\ 08:08:09,642\ 1531434\ ERROR\ odoo\ odoo\.http:\ Exception\ during\ request\ handling\.
Traceback\ \(most\ recent\ call\ last\):
\ \ File\ "/usr/lib/python3/dist\-packages/odoo/http\.py",\ line\ 1990,\ 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\ 134,\ in\ retrying
\ \ \ \ result\ =\ func\(\)
\ \ File\ "/usr/lib/python3/dist\-packages/odoo/http\.py",\ line\ 1613,\ in\ _serve_ir_http
\ \ \ \ response\ =\ self\.dispatcher\.dispatch\(rule\.endpoint,\ args\)
\ \ File\ "/usr/lib/python3/dist\-packages/odoo/http\.py",\ line\ 1726,\ in\ dispatch
\ \ \ \ return\ self\.request\.registry\['ir\.http'\]\._dispatch\(endpoint\)
\ \ File\ "/usr/lib/python3/dist\-packages/odoo/addons/website/models/ir_http\.py",\ line\ 235,\ in\ _dispatch
\ \ \ \ response\ =\ super\(\)\._dispatch\(endpoint\)
\ \ File\ "/usr/lib/python3/dist\-packages/odoo/addons/base/models/ir_http\.py",\ line\ 149,\ in\ _dispatch
\ \ \ \ result\ =\ endpoint\(\*\*request\.params\)
\ \ File\ "/usr/lib/python3/dist\-packages/odoo/http\.py",\ line\ 699,\ 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\ 814,\ in\ open_connection
\ \ \ \ Websocket\(request\.httprequest\.environ\['socket'\],\ request\.session\),
KeyError:\ 'socket'
2023\-04\-08\ 08:08:09,643\ 1531434\ INFO\ odoo\ werkzeug:\ 192\.168\.155\.253\ \-\ \-\ \[08/Apr/2023\ 08:08:09\]\ "GET\ /websocket\ HTTP/1\.1"\ 500\ \-\ 2\ 0\.001\ 0\.005
2023\-04\-08\ 08:08:09,644\ 1527389\ INFO\ odoo\ odoo\.addons\.base\.models\.ir_http:\ Generating\ routing\ map\ for\ key\ 2
2023\-04\-08\ 08:08:09,645\ 1527389\ DEBUG\ odoo\ odoo\.addons\.website\.models\.ir_http:\ _generate_routing_rules\ for\ website:\ 2
2023\-04\-08\ 08:08:09,736\ 715986\ DEBUG\ odoo\ odoo.modules.registry: Multiprocess signaling check: [Registry - 50 -> 50] [Cache - 511 -> 511]
2023-04-08 08:08:09,829 715986 INFO odoo werkzeug: 192.168.155.253 - - [08/Apr/2023 08:08:09] "POST /mail/init_messaging HTTP/1.1" 200 - 89 0.039

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

I solved it. Now have a HAProxy and then just a Nginx with reverse proxy and that works.

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

Hi.

Can you see this thread in the GitHub and see if it helps: https://github.com/odoo/odoo/issues/106339#issuecomment-1431450978

Thanks

Ảnh đại diện
Huỷ bỏ
Tác giả

We use a haproxy BEFORE the odoo server. But I can't find any instructions on the Internet on how to install nginx without reverse proxy. do you have any instructions for me?

Bài viết liên quan Trả lời Lượt xem Hoạt động
4
thg 12 23
4448
0
thg 11 23
1515
2
thg 6 24
6905
2
thg 4 23
3422
2
thg 5 23
4399