Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Accounting
  • Inventory
  • PoS
  • Project
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

Discuss - invite externals to a chat

Subscribe

Get notified when there's activity on this post

This question has been flagged
chatterdiscussIM
1 Reply
2546 Views
Avatar
Wombat

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


0
Avatar
Discard
Avatar
Marc Durepos
Best Answer

You are probably living an issue with proxy header forwarding. If you're behind an NGINX reverse proxy, you need proxy_mode = True. You will also need to properly configure NGINX... set the example from Odoo's docs:

https://www.odoo.com/documentation/18.0/administration/on_premise/deploy.html#id8

0
Avatar
Discard
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Sign up
Related Posts Replies Views Activity
Chatter Mention Multiple People (Group Mentions) Solved
chatter discuss
Avatar
Avatar
1
Sep 25
1971
How to disable chat option in Odoo 11 Solved
issues chat chatter discuss
Avatar
Avatar
Avatar
Avatar
4
Nov 22
11279
Edit/Delete messages in Discuss Module and Chatter Solved
modification chat chatter discuss
Avatar
Avatar
1
Feb 24
8344
Change Button Label in Chatter from "Send Message" to "Send e-mail" Solved
chatter
Avatar
Avatar
1
Feb 25
2478
Chatter looks weird in 18.0 Solved
chatter
Avatar
Avatar
2
Dec 24
3641
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now