Hello Gurus.
I am trying to troubleshoot an issue with Discuss/chatter/channel discussion on a on-prem instance of Odoo. I have removed Nginx completely and am accessing the database running on localhost. I have also installed the gevent module. There is no firewall enabled.
Here is the error:
2024-09-28 21:48:05,490 7070 ERROR hang odoo.http: Exception during request handling.
Traceback (most recent call last):
File "/opt/odoosrc/17.0/odoo/addons/bus/websocket.py", line 836, 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 "/opt/odoosrc/17.0/odoo/odoo/http.py", line 2189, in __call__
response = request._serve_db()
File "/opt/odoosrc/17.0/odoo/odoo/http.py", line 1764, in _serve_db
return service_model.retrying(self._serve_ir_http, self.env)
File "/opt/odoosrc/17.0/odoo/odoo/service/model.py", line 133, in retrying
result = func()
File "/opt/odoosrc/17.0/odoo/odoo/http.py", line 1791, in _serve_ir_http
response = self.dispatcher.dispatch(rule.endpoint, args)
File "/opt/odoosrc/17.0/odoo/odoo/http.py", line 1908, in dispatch
return self.request.registry['ir.http']._dispatch(endpoint)
File "/opt/odoosrc/17.0/odoo/odoo/addons/base/models/ir_http.py", line 222, in _dispatch
result = endpoint(**request.params)
File "/opt/odoosrc/17.0/odoo/odoo/http.py", line 741, in route_wrapper
result = endpoint(self, *args, **params_ok)
File "/opt/odoosrc/17.0/odoo/addons/bus/controllers/websocket.py", line 18, in websocket
return WebsocketConnectionHandler.open_connection(request)
File "/opt/odoosrc/17.0/odoo/addons/bus/websocket.py", line 848, in open_connection
raise RuntimeError(
RuntimeError: Couldn't bind the websocket. Is the connection opened on the evented port (8072)?
2024-09-28 21:48:05,492 7070 INFO hang werkzeug: 127.0.0.1 - - [28/Sep/2024 21:48:05] "GET /websocket HTTP/1.1" 500 - 1 0.000 0.005
Here is the config:
[options]
addons_path = /opt/odoosrc/17.0/odoo/addons,/home/Development/addons
admin_passwd = admin
csv_internal_sep = ,
data_dir = /opt/hang/data
db_host = False
db_maxconn = 64
db_maxconn_gevent = False
db_name = hang
db_password = False
db_port = False
db_sslmode = prefer
db_template = template0
db_user = False
dbfilter = ^hang$
demo = {}
email_from = False
from_filter = False
geoip_city_db = /usr/share/GeoIP/GeoLite2-City.mmdb
geoip_country_db = /usr/share/GeoIP/GeoLite2-Country.mmdb
gevent_port = 8072
http_enable = True
http_interface =
#http_port = 8050
http_port =
import_partial =
limit_memory_hard = 2684354560
limit_memory_soft = 2147483648
limit_request = 65536
limit_time_cpu = 60
limit_time_real = 120
limit_time_real_cron = -1
list_db = True
log_db = False
log_db_level = warning
log_handler = :INFO
log_level = info
#logfile = /opt/hang/log/hang.log
max_cron_threads = 2
osv_memory_count_limit = 0
pg_path =
pidfile =
proxy_mode = False
reportgz = False
screencasts =
screenshots = /tmp/odoo_tests
server_wide_modules = base,web
smtp_password = False
smtp_port = 25
smtp_server = localhost
smtp_ssl = False
smtp_ssl_certificate_filename = False
smtp_ssl_private_key_filename = False
smtp_user = False
syslog = False
test_enable = False
test_file =
test_tags = None
transient_age_limit = 1.0
translate_modules = ['all']
unaccent = False
upgrade_path =
websocket_keep_alive_timeout = 3600
websocket_rate_limit_burst = 10
websocket_rate_limit_delay = 0.2
without_demo = all
workers = 3
x_sendfile = False
xmlrpc = True
xmlrpc_interface =
xmlrpc_port = 8050
xmlrpcs = True
xmlrpcs_interface =
xmlrpcs_port = 8071