I am experiencing an issue with WebSocket connections in Odoo 17 Community on an Ubuntu 22.04 server. After following the installation steps for Odoo using the Yante666 script, I am able to access the Odoo interface through the local IP address. However, I am facing issues with the WebSocket connection required for long polling (port 8072).
-
Port 8072: The port seems to be open correctly
-
Odoo Configuration: The odoo.conf file has the correct setting for the long polling port (longpolling_port = 8072)
- Odoo Processes: The Odoo processes are running normally, which can be confirmed by the ps aux command
- Service Restarts: I’ve restarted both Odoo and the server to apply the changes.
-----------------------------------------------------
2024-11-15 13:25:42,522 2345 ERROR odoo-db odoo.http: Exception during request handling.
Traceback (most recent call last):
File "/odoo/odoo-server/addons/bus/websocket.py", line 903, in open_connection
socket = request.httprequest._HTTPRequest__environ['socket']
KeyError: 'socket'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/odoo/odoo-server/odoo/http.py", line 2206, in __call__
response = request._serve_db()
File "/odoo/odoo-server/odoo/http.py", line 1782, in _serve_db
return service_model.retrying(self._serve_ir_http, self.env)
File "/odoo/odoo-server/odoo/service/model.py", line 133, in retrying
result = func()
File "/odoo/odoo-server/odoo/http.py", line 1809, in _serve_ir_http
response = self.dispatcher.dispatch(rule.endpoint, args)
File "/odoo/odoo-server/odoo/http.py", line 1926, in dispatch
return self.request.registry['ir.http']._dispatch(endpoint)
File "/odoo/odoo-server/odoo/addons/base/models/ir_http.py", line 221, in _dispatch
result = endpoint(**request.params)
File "/odoo/odoo-server/odoo/http.py", line 757, in route_wrapper
result = endpoint(self, *args, **params_ok)
File "/odoo/odoo-server/addons/bus/controllers/websocket.py", line 20, in websocket
return WebsocketConnectionHandler.open_connection(request, version)
File "/odoo/odoo-server/addons/bus/websocket.py", line 916, in open_connection
raise RuntimeError(
RuntimeError: Couldn't bind the websocket. Is the connection opened on the evented port (8072)?