تخطي للذهاب إلى المحتوى
أودو القائمة
  • تسجيل الدخول
  • جرب مجاناً
  • التطبيقات
    المالية
    • المحاسبة
    • فوترة
    • النفقات
    • جدول البيانات (BI)
    • المستندات
    • توقيع إلكتروني
    المبيعات
    • إدارة علاقات العملاء
    • المبيعات
    • نقطة البيع للمتاجر
    • نقطة البيع للمطاعم
    • الاشتراكات
    • تأجير
    المواقع الإلكترونية
    • أداة بناء المواقع الإلكترونية
    • متاجر إلكترونية
    • مدونة
    • المنتدى
    • دردشة مباشرة
    • التعليم الإلكتروني
    سلسلة التوريد
    • المستودعات
    • التصنيع
    • إدارة دورة حياة المنتج
    • المشتريات
    • الصيانة
    • الجودة
    الموارد البشرية
    • موظفون
    • التوظيف
    • إجازة عمل
    • التقييمات
    • الإحالات
    • تطبيق الأسطول
    التسويق
    • التسويق الإجتماعي
    • التسويق عبر البريد الإلكتروني
    • التسويق عبر الرسائل النصية
    • فعاليات
    • أتمتة التسويق
    • الاستطلاعات
    الخدمات
    • المشاريع
    • الجداول الزمنية
    • الخدمة الميدانية
    • مكتب المساعدة
    • التخطيط
    • مواعيد
    اﻹنتاجية
    • مناقشة
    • الموافقات
    • إنترنت الأشياء "IoT"
    • بروتوكول ربط المحادثات الصوتية عبر الإنترنت
    • المعرفة
    • WhatsApp
    التطبيقات الخارجية ستوديو أودو منصة أودو السحابية
  • قطاعات الأعمال
    البيع بالتجزئة
    • متجر كتب
    • متجر ملابس
    • متجر أثاث
    • متجر بقالة
    • متجر معدات
    • متجر ألعاب
    الطعام والضيافة
    • بار وحانة
    • المطعم
    • مطعم للوجبات السريعة
    • نزل للضيوف
    • موزّع مشروبات
    • فندق
    العقارات
    • وكالة عقارات
    • شركة هندسة معمارية
    • البناء
    • إدارة العقارات
    • العناية بالحدائق
    • اتحاد مُلاّك العقارات
    استشارة
    • مؤسسة محاسبية
    • شريك أودو
    • وكالة تسويقية
    • منشأة قانونية
    • استقطاب المواهب
    • التدقيق والتوثيق
    التصنيع
    • الأقمشة
    • معدني
    • الأثاث
    • الطعام
    • مصنع خمور
    • هدايا الشركات
    الصحة واللياقة البدنية
    • نادي رياضي
    • متجر نظارات
    • مركز لياقة بدنية
    • الممارسون الصحيون
    • صيدلية
    • صالون تصفيف الشعر
    التجارة
    • عامل صيانة
    • الأجهزة والمعدات التقنية ودعمها
    • أنظمة الطاقة الشمسية
    • صانع أحذية
    • خدمات التنظيف
    • خدمات التكييف (HVAC)
    غير ذلك
    • منظمة غير ربحية
    • وكالة بيئية
    • تأجير لوحات إعلانية
    • تصوير
    • تأجير دراجات
    • بائع وسيط للبرمجيات
    تصفح كافة قطاعات الأعمال
  • مجتمع أودو
    تعلم
    • دروس
    • التوثيق
    • شهادات
    • التدريب
    • مدونة
    • بودكاست
    قم بتعزيز التعليم
    • برنامج تعليم
    • Scale UP! لعبة الأعمال
    • قم بزيارة أودو
    احصل على البرنامج
    • تحميل
    • قارنْ الإصدارات
    • إطلاق
    تعاون
    • جيت هاب "Github"
    • المنتدى
    • فعاليات
    • الترجمات
    • كنْ شريكاً
    • خدمات الشركاء
    • سجل مكتب المحاسبة الخاص بك
    احصل على الخدمات
    • اعثر على شريك
    • اعثر على محاسب
    • قابل أحد مرشدي الأعمال
    • خدمات التنفيذ
    • مراجع العملاء
    • الدعم
    • الترقيات
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    الحصول على عرض توضيحي
  • الأسعار
  • المساعدة

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

  • إدارة علاقات العملاء
  • e-Commerce
  • المحاسبة
  • المخزون
  • PoS
  • المشروع
  • MRP
All apps
يجب أن تكون مسجلاً حتى تتفاعل مع المجتمع.
كافة المنشورات الأفراد الشارات
علامات التصنيف (عرض الكل)
odoo accounting v14 pos v15
حول هذا المنتدى
يجب أن تكون مسجلاً حتى تتفاعل مع المجتمع.
كافة المنشورات الأفراد الشارات
علامات التصنيف (عرض الكل)
odoo accounting v14 pos v15
حول هذا المنتدى
المساعدة

Odoo 16 websocket problem with Nginx

اشتراك

تسلم الإشعارات عندما يكون هناك نشاط في هذا المنشور

لقد تم الإبلاغ عن هذا السؤال
nginxodoo16features
9 الردود
31162 أدوات العرض
الصورة الرمزية
GT Apps

Hello everyone,

I'm trying to deploy Odoo 16 on my server but I cannot make the chat works, the new messages are not displayed until I restart the web page.

I enabled multi workers mode and proxy_mode in my odoo.conf, and here is my nginx.conf (the same as Odoo documentation):

#odoo server
upstream odoo {
server 127.0.0.1:8069;
}
upstream odoochat {
server 127.0.0.1:8072;
}
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}

# http -> https
server {
listen 80;
server_name odoo.gp;
rewrite ^(.*) https://$host$1 permanent;
}

server {
listen 443 ssl;
server_name odoo.gp;
proxy_read_timeout 720s;
proxy_connect_timeout 720s;
proxy_send_timeout 720s;

# SSL parameters
ssl_certificate /etc/nginx/ssl/cert.pem;
ssl_certificate_key /etc/nginx/ssl/key.pem;
ssl_session_timeout 30m;
ssl_protocols TLSv1.2;
ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384;
ssl_prefer_server_ciphers off;

# log
access_log /var/log/nginx/access_odoo.gp.log;
error_log /var/log/nginx/error_odoo.gp.log;

# Redirect websocket requests to odoo gevent port
location /websocket {
proxy_pass http://odoochat;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
}

# Redirect requests to odoo backend server
location / {
# Add Headers for odoo proxy mode
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_redirect off;
proxy_pass http://odoo;
}

# common gzip
gzip_types text/css text/scss text/plain text/xml application/xml application/json application/javascript;
gzip on;
}

Please help! Thanks!

0
الصورة الرمزية
إهمال
GT Apps
الكاتب

Is there anyone? :(

الصورة الرمزية
GT Apps
الكاتب أفضل إجابة

After many times digging, I found out where my problem is and fixed it. The problem is Google Chrome (and other chromium-based browsers) rejects the websocket connection due to my self-signed SSL certificate. On Firefox, it works fine. So I have to create my own CA certificate and add it to the trusted list of Google Chrome (as the instruction here https://dgu2000.medium.com/working-with-self-signed-certificates-in-chrome-walkthrough-edition-a238486e6858).

Hope it helps someone who facing the same problem when trying to deploy on local machine.

0
الصورة الرمزية
إهمال
الصورة الرمزية
Abdul Halim
أفضل إجابة

@Bojan Nišević adding in odoo-server.conf file.

xmlrpc_interface = 127.0.0.1

 solved my issue!

1
الصورة الرمزية
إهمال
الصورة الرمزية
Abdul Kadhar
أفضل إجابة

In Odoo18, I Got The Below Error From Terminal while Refreshing The Page. Also I Cant See Any Error From UI. (Like PopUp.)

RuntimeError: Couldn't bind the websocket. Is the connection opened on the evented port (8072)?




After Commanded Some Line Conf, It Working Correctly.

#workers = 4

#limit_memory_soft = 471974428

#limit_memory_hard = 3299788800

#limit_request = 1200

#limit_time_cpu = 1200

#limit_time_real = 2400

#max_cron_threads = 1


Thanks,
Abdul Kather S

0
الصورة الرمزية
إهمال
الصورة الرمزية
deva
أفضل إجابة

Here the error was also occurring because of the settings:


limit_memory_hard = 20132659200

limit_memory_soft = 1677721600

limit_request = 8192

limit_time_cpu = 3600

limt_time_real = 7200

limit_time_real_cron = -1

max_cron_threads = 1

workers = 25


Remove all of these settings from your conf file. 
It will work !

0
الصورة الرمزية
إهمال
الصورة الرمزية
Byron Guerrero
أفضل إجابة

I am also having the same issue I am on odoo17 and cant get it to work please help!

0
الصورة الرمزية
إهمال
الصورة الرمزية
Nomazy
أفضل إجابة

Same issue in Discuss, Inbound

With nginx no answer, even with refresh the browser (firefox or chrome) and in odoo log : POST /longpolling/poll HTTP/1.1" 404.

Without nginx, direct with http://localhost:8069, no answer and in odoo log : RuntimeError: Couldn't bind the websocket. Is the connection opened on the evented port (8072)?

nginx conf :

    server 127.0.0.1:8069;
}

upstream odoochat {
    server 127.0.0.1:8072 weight=1 fail_timeout=0;
}

server {
listen 80;
listen [::]:80;
        server_name localodoo.erp;
       
        # log
access_log /var/log/nginx16/accesslocalodoo.log;
error_log /var/log/nginx16/errorlocalodoo.log;

# Set headers for proxy mode
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;

        # Set timeouts
        proxy_connect_timeout   3600;
        proxy_send_timeout      3600;
        proxy_read_timeout      3600;
       
        # Gzip
        send_timeout            3600;
        client_body_in_file_only clean;
client_body_buffer_size 32K;
client_max_body_size 500M;
sendfile on;

    location /websocket {
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_pass http://odoochat;
proxy_redirect off;
}

           
    location / {
proxy_redirect off;
proxy_pass http://odoo;
add_header Access-Control-Allow-Origin *;
}

    # common gzip
    gzip_types text/css text/scss text/plain text/xml application/xml application/json application/javascript;
    gzip on;
       
}>
In odoo conf :
xmlrpc_port = 8069
#xmlrpc_interface = 127.0.0.1
gevent_port = 8072
limit_memory_hard = 1677721600
limit_memory_soft = 629145600
limit_request = 8192
limit_time_cpu = 600
limit_time_real = 1200
max_cron_threads = 1
workers = 4>

Please help
0
الصورة الرمزية
إهمال
الصورة الرمزية
Mimacro
أفضل إجابة

Greetings, 


I have this same error only with odoo version 16, I would like to know some solution if someone could solve it.


Thank you.

0
الصورة الرمزية
إهمال
الصورة الرمزية
Bojan Nišević
أفضل إجابة

I have the same issue, tried everything, /websocket configuration in nginx, proxy mode is True. Nothing helps. I am getting 

Websocket(request.httprequest.environ['socket'], request.session),

KeyError: 'socket'

0
الصورة الرمزية
إهمال
الصورة الرمزية
CandidRoot Solutions Private Limited
أفضل إجابة

Hello

Need to change in nginx.conf and odoo.conf as follow

map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}

# Redirect websocket requests to odoo gevent port
location /websocket {
proxy_pass http://odoochat;
proxy_set_header X-Real-IP $remote_addr;

proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}

Also add worker and max_cron_threads as per server configuration in /etc/odoo-server.conf

max_cron_threads = 1
workers = 4
db_name=DatabaseName
dbfilter=
proxy_mode=True

Thanks & Regards,

​

CandidRoot Solutions Pvt. Ltd.

Mobile: (+91) 8849036209
Email: info@candidroot.com
Skype: live:candidroot
Web: https://www.candidroot.com
Address: 1229-1230, Iconic Shyamal, Near Shyamal Cross Road, Ahmedabad, Gujarat

0
الصورة الرمزية
إهمال
GT Apps
الكاتب

I don't see any difference in your suggestion. Anyway, I copied your config and still no luck :(

CandidRoot Solutions Private Limited

Hello Giang Pham,

Thank you for your feedback.

have you updated odoo.conf file as per my answer?

if you have still issue then i want to check your odoo log file and other configuration.

feel free to connect with me

CandidRoot Solutions Pvt. Ltd.
Mobile: (+91) 8849036209
Email: info@candidroot.com
Skype: live:candidroot
Web: https://www.candidroot.com
Address: 1229-1230, Iconic Shyamal, Near Shyamal Cross Road, Ahmedabad, Gujarat

GT Apps
الكاتب

Yes, here is my odoo.conf:

[options]
addons_path = /opt/odoo/16.0/addons
admin_passwd = xxx
csv_internal_sep = ,
data_dir = /home/admin/.local/share/OpenERP
dbfilter =
db_host = 127.0.0.1
db_maxconn = 64
db_name = odoo16-demo
db_password = odoo
db_port = 5433
db_sslmode = prefer
db_template = template0
db_user = odoo
demo = {}
email_from = False
geoip_database = /usr/share/GeoIP/GeoLite2-City.mmdb
gevent_port = 8072
http_enable = True
http_interface =
http_port = 8069
import_partial =
limit_memory_hard = 2684354560
limit_memory_soft = 2147483648
limit_request = 8192
limit_time_cpu = 60
limit_time_real = 120
limit_time_real_cron = -1
list_db = False
log_db = False
log_db_level = warning
logfile = /home/admin/odoolog/odoo.log
log_handler = :INFO
log_level = info
max_cron_threads = 2
osv_memory_count_limit = False
pg_path =
pidfile =
proxy_mode = True
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_user = False
syslog = False
test_enable = False
test_file =
test_tags = None
transient_age_limit = 1.0
translate_modules = ['all']
unaccent = True
upgrade_path =
without_demo = False
workers = 3

I don't know if this is a problem or not, but my nginx hosts multiple config files for multiple odoo instances, in both v15 and v16. The v15 instance work fine, only the v16 has this problem.

Bilal Chehab

Have the Same issue for multiple version of Odoo on the same server. Did you find any solution ?

هل أعجبك النقاش؟ لا تكن مستمعاً فقط. شاركنا!

أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!

تسجيل
المنشورات ذات الصلة الردود أدوات العرض النشاط
v16 --x-sendfile cli option
nginx odoo16features x-sendfile
الصورة الرمزية
الصورة الرمزية
1
فبراير 23
3858
Odoo 16 Multi Worker Configuration
nginx proxy odoo16features
الصورة الرمزية
0
أكتوبر 22
4954
DeprecationWarning: The longpolling-port is a deprecated alias to the gevent-port option, please use the latter تم الحل
odoo16features
الصورة الرمزية
الصورة الرمزية
الصورة الرمزية
الصورة الرمزية
الصورة الرمزية
5
سبتمبر 25
24258
How to Add wizard under print button inside the form view.
odoo16features
الصورة الرمزية
الصورة الرمزية
الصورة الرمزية
الصورة الرمزية
3
أغسطس 25
3701
How to add @api.onchange in _get_view() method odoo 16
odoo16features
الصورة الرمزية
الصورة الرمزية
1
مايو 25
3584
المجتمع
  • دروس
  • التوثيق
  • المنتدى
مصدر مفتوح
  • تحميل
  • جيت هاب "Github"
  • المشغل الآلي رنبوت
  • الترجمات
خدماتنا
  • استضافة أودو إس إتش
  • الدعم
  • الترقية
  • التطويرات المخصصة
  • التعليم
  • اعثر على محاسب
  • اعثر على شريك
  • كنْ شريكاً
معلومات عنا
  • شركتنا
  • أصول العلامة التجارية
  • اتصلْ بنا
  • الوظائف
  • فعاليات
  • بودكاست
  • مدونة
  • عملاء
  • قانوني • الخصوصية
  • الحماية
الْعَرَبيّة 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

أودو هو عبارة عن مجموعة من تطبيقات الأعمال مفتوحة المصدر التي تغطي جميع احتياجات شركتك، مثل: إدارة علاقات العملاء والتجارة الإلكترونية والمحاسبة والمخزون ونقاط البيع وإدارة المشاريع وما إلى ذلك.

ما يجعل من أودو مميزاً هو هدفه بأن يكون سهل الاستخدام للغاية ومتكاملاً تمامًا في الوقت ذاته.

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