Bỏ qua để đến Nội dung
Odoo Menu
  • Đăng nhập
  • Dùng thử miễn phí
  • Ứng dụng
    Tài chính
    • Kế toán
    • Hóa đơn
    • Chi phí
    • Bảng tính (BI)
    • Tài liệu
    • Ký tên
    Bán hàng
    • CRM
    • Bán hàng
    • POS Cửa hàng
    • POS Nhà hàng
    • Đăng ký
    • Cho thuê
    Trang web
    • Trình tạo trang web
    • Thương mại điện tử
    • Blog
    • Diễn đàn
    • Trò chuyện trực tiếp
    • Học trực tuyến
    Chuỗi cung ứng
    • Tồn kho
    • Sản xuất
    • PLM
    • Mua hàng
    • Bảo dưỡng
    • Chất lượng
    Nhân sự
    • Nhân viên
    • Tuyển dụng
    • Ngày nghỉ
    • Đánh giá
    • Giới thiệu
    • Đội xe
    Marketing
    • Marketing trên MXH
    • Marketing qua email
    • Marketing qua SMS
    • Sự kiện
    • Tự động hóa Marketing
    • Khảo sát
    Dịch vụ
    • Dự án
    • Bảng chấm công
    • Dịch vụ hiện trường
    • Hỗ trợ
    • Kế hoạch
    • Lịch hẹn
    Năng suất
    • Thảo luận
    • Phê duyệt
    • IoT
    • VoIP
    • Kiến thức
    • WhatsApp
    Ứng dụng của bên thứ ba Studio Odoo Nền tảng Đám mây Odoo
  • Ngành
    Bán lẻ
    • Nhà sách
    • Cửa hàng quần áo
    • Cửa hàng nội thất
    • Cửa hàng tạp hóa
    • Cửa hàng đồ kim khí
    • Cửa hàng đồ chơi
    Ẩm thực & Dịch vụ lưu trú
    • Bar và quán rượu
    • Nhà hàng
    • Đồ ăn nhanh
    • Guest house
    • Nhà phân phối đồ uống
    • Khách sạn
    Bất động sản
    • Công ty môi giới bất động sản
    • Công ty kiến trúc
    • Xây dựng
    • Quản lý bất động sản
    • Làm vườn
    • Hiệp hội chủ sở hữu bất động sản
    Tư vấn
    • Công ty kế toán
    • Đối tác Odoo
    • Công ty marketing
    • Công ty luật
    • Tuyển dụng
    • Thanh tra & chứng nhận
    Sản xuất
    • Dệt may
    • Kim loại
    • Nội thất
    • Ẩm thực
    • Nhà máy bia
    • Quà tặng doanh nghiệp
    Sức khoẻ & fitness
    • CLB thể thao
    • Cửa hàng kính mắt
    • Trung tâm fitness
    • Chuyên gia chăm sóc sức khỏe
    • Hiệu thuốc
    • Tiệm làm tóc
    Thương mại
    • Dịch vụ sửa chữa
    • Phần cứng CNTT & Hỗ trợ
    • Hệ thống năng lượng mặt trời
    • Công ty sản xuất giày
    • Dịch vụ vệ sinh
    • Dịch vụ HVAC
    Khác
    • Tổ chức phi lợi nhuận
    • Cơ quan môi trường
    • Cho thuê biển quảng cáo
    • Nhiếp ảnh
    • Cho thuê xe đạp
    • Đại lý phần mềm
    Xem tất cả ngành
  • Cộng đồng
    Học tập
    • Khóa học
    • Tài liệu
    • Chứng chỉ
    • Đào tạo
    • Blog
    • Podcast
    Thúc đẩy đào tạo
    • Chương trình đào tạo
    • Trò chơi kinh doanh Scale Up!
    • Tham quan Odoo
    Nhận phần mềm
    • Tải xuống
    • So sánh các phiên bản
    • Phiên bản
    Hợp tác
    • Github
    • Diễn đàn
    • Sự kiện
    • Dịch thuật
    • Trở thành đối tác
    • Dịch vụ dành cho Đối tác
    • Đăng ký công ty kế toán của bạn
    Nhận dịch vụ
    • Tìm đối tác
    • Tìm kế toán
    • Gặp chuyên gia hỗ trợ
    • Dịch vụ Triển khai
    • Khách hàng tham khảo
    • Hỗ trợ
    • Nâng cấp
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Nhận một buổi demo
  • Bảng giá
  • Trợ giúp

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

  • CRM
  • e-Commerce
  • Kế toán
  • Tồn kho
  • PoS
  • Dự án
  • MRP
All apps
Bạn cần phải đăng ký để tương tác với cộng đồng.
Tất cả bài viết Người Huy hiệu
Thẻ (Xem tất cả)
odoo accounting v14 pos v15
Về diễn đàn này
Bạn cần phải đăng ký để tương tác với cộng đồng.
Tất cả bài viết Người Huy hiệu
Thẻ (Xem tất cả)
odoo accounting v14 pos v15
Về diễn đàn này
Hỗ trợ

Error (Real-time connection lost) Odoo 18 Community

Đăng ký nhận tin

Nhận thông báo khi có hoạt động trên bài viết này

Câu hỏi này đã bị gắn cờ
V18Odoo 18
12 Trả lời
32346 Lượt xem
Ảnh đại diện
Colin Harleman

My Odoo is showing a Yellow Box around the screen and the message "Real-time connection lost" when I login using my website address. Is there a fix to this? I am missing a port that needs to be open?

0
Ảnh đại diện
Huỷ bỏ
Waleed Ali Mohsen

This is a new feature added by Odoo lately to help you if there is a disconnection to the Odoo server so you need to check you Odoo and (nginx or apache) configuration

Colin Harleman
Tác giả

Setting workers in the Odoo.conf to my (CPU*2)+1 has not helped with the error message. The Error does not show up if I connect directly from the Windows Machine that is running Odoo (localhost:8069). It only appears when connecting through the IIS setup.

Lê Anh Tuấn

Same Error, anyone know fix it?

Ảnh đại diện
Linescripts Softwares
Câu trả lời hay nhất

Make sure you are adding 
proxy_mode = True

gevent_port = 8072

workers = 3

max_cron_threads = 1

longpolling_port = False



in your ngnix conf add /websocket block


location /websocket {

    proxy_pass http://odoochat;

    proxy_set_header Upgrade $http_upgrade;

    proxy_set_header Connection $connection_upgrade;

    proxy_set_header X-Forwarded-Host $http_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;


    add_header Strict-Transport-Security "max-age=31536000; includeSubDomains";

#    proxy_cookie_flags session_id samesite=lax secure;  # requires nginx 1.19.8

  }

please do not forget to define these above your server block in ngninx

#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;

}



this solved my problem

5
Ảnh đại diện
Huỷ bỏ
Cabezalbus SL

This solved my problem too.

Many thanks.

Lê Anh Tuấn

Tks

Boussehal Abdelaziz

this solve my problem too in odoo 18 with docker-compose.
NB : not forget to bind port in docker-compose by default 8072.

Ảnh đại diện
Fabio
Câu trả lời hay nhất

Found this post, after a git pull update, Odoo 18.0 branch. Reverted changes to previous commit and the error is gone. I'm sure this is a recent bug to be identified yet.

1
Ảnh đại diện
Huỷ bỏ
Budi Hartono

Thanks for sharing this. Which commit ID did you revert to? I’d like to try using that commit as well.

Fabio

https://github.com/odoo/odoo/commit/958fbe0d3a52eac8c15e2a7e15d93cc9f8fc6f1a

Budi Hartono

I went back to that commit and it works! The ‘Real-time connection lost’ message is gone. I hope they fix this bug soon. Thanks, Fabio!

Ảnh đại diện
Budi Hartono
Câu trả lời hay nhất

I’m setting up a Digital Ocean VPS with 2GB RAM and 1 vCPU to run Odoo 18 Community. The server displays an error message “Real-time connection lost…” constantly on the bottom-right corner of the screen. I’ve changed the worker number in the Odoo Server configuration file and restarted the server, but the error persists. Interacting with the server indicates no issues. I can install the Odoo module or change settings. However, the message remains, suggesting a potential server connection problem which makes it impossible to know if there is a connection problem. Is this a bug?

PS: BTW, I have followed the tutorial video on this link: https://www.youtube.com/watch?v=Q1c5XpG85OE

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

I has same problem on odoo+nginx proxy mode configuration. any one can fix this?

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

I just fought with this exact issue for 2 straight days before I finally found the solution to my specific use case, so maybe this will help someone else.

I am running Odoo 18 Community, and its Postgres database, inside docker containers on Ubuntu. Both are created by a docker-compose.yml file. I am using Nginx as a reverse proxy installed on the main Ubuntu os, and Cloudflare for DNS and domain hosting.

The "accepted answer" for what to include in the Nginx config and the Odoo config are both a large part of what I needed, but the final needle in the haystack for my setup was that my docker-compose needed to also include port 8072 in it. I've also seen port 8071 indicated in places for something, so I added that too just in case. So my docker-compose is now:

version: '3'
services:
​odoo:
​ ​image: odoo:18.0
​ ​env_file: .env
​ ​depends_on:
​ ​ ​- postgres
​ ​ports:
​ ​ ​- "127.0.0.1:8069:8069"
​ ​ ​- "127.0.0.1:8072:8072"
​ ​ ​- "127.0.0.1:8071:8071"
​ ​volumes:
​ ​ ​- data:/var/lib/odoo
​ ​ ​- ./addons:/mnt/extra-addons
​ ​ ​- ./config:/etc/odoo
​ ​restart: unless-stopped
​postgres:
​ ​image: postgres:16
​ ​env_file: .env
​ ​volumes:
​ ​ ​- db:/var/lib/postgresql/data/pgdata
​ ​restart: unless-stopped

volumes:
​data:
​db:


Now that yellow box and message is gone :)

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

for all those struggling with nginx, just follow official documentation and posted solution
don't forget following block to enable connection upgrade in /websocket location

}
map $http_upgrade $connection_upgrade {
  default upgrade;
  ''      close;
}
0
Ảnh đại diện
Huỷ bỏ
Ảnh đại diện
Colin Harleman
Tác giả Câu trả lời hay nhất

in your ngnix conf add /websocket block


location /websocket {

    proxy_pass http://odoochat;

    proxy_set_header Upgrade $http_upgrade;

    proxy_set_header Connection $connection_upgrade;

    proxy_set_header X-Forwarded-Host $http_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;


    add_header Strict-Transport-Security "max-age=31536000; includeSubDomains";

#    proxy_cookie_flags session_id samesite=lax secure;  # requires nginx 1.19.8

  }

please do not forget to define these above your server block in ngninx

#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;

}

How would I do with with IIS on Windows?

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

I'm having the same issue. It is driving me crazy. I'm using Bitnami's Odoo package bitnami com/stack/odoo/virtual-machine on a VM Google Cloud instance. This package uses Apache as proxy. I thought it had to do with the SSL certificates, so I generated SSL for the subdomain I'm using but that didn't work either. The "Real-time error" is still there and the chat does not work in real time, neither calls & video calls. Not sure what else might be affected with this "Real-time error".


Below the 400 error related to the websocket not working:


2025-01-27 05:54:34,051 77881 INFO bitnami_odoo werkzeug: 201.152.145.175 - - [27/Jan/2025 05:54:34] "GET /websocket?version=18.0-3 HTTP/1.1" 400 - 1 0.001 0.002


2025-01-27 05:54:37,942 77879 INFO bitnami_odoo werkzeug: 201.152.145.175 - - [27/Jan/2025 05:54:37] "GET /websocket?version=18.0-3 HTTP/1.1" 400 - 1 0.001 0.003


2025-01-27 05:54:39,253 77879 INFO bitnami_odoo werkzeug: 201.152.145.175 - - [27/Jan/2025 05:54:39] "GET /websocket?version=18.0-3 HTTP/1.1" 400 - 1 0.001 0.002


2025-01-27 05:54:40,693 77879 INFO bitnami_odoo werkzeug: 201.152.145.175 - - [27/Jan/2025 05:54:40] "GET /websocket?version=18.0-3 HTTP/1.1" 400 - 1 0.001 0.002


I tried troubleshooting with ChatGPT and Gemini with no luck. Would be great to know if this is a bug, so I could stop trying to figure a workaround. Any advice or update would be greatly appreciated!

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

I using nginx as a reverse proxy with HTTPS for my Odoo18 setup.


In the odoo.conf file:

  • When I set workers = (CPU*2)+1, the Nginx domain works fine, but accessing Odoo directly via http://{odoo_ip}:8069 throws a "Real-time connection lost" error.
  • On the other hand, if I do not set the workers parameter, the Nginx domain throws an error, but accessing Odoo directly via http://{odoo_ip}:8069 works without issues.

0
Ảnh đại diện
Huỷ bỏ
Rb Chang

Here is my nginx setting, exctually i am not really know using "websocket" or "longpolling" for odoo18 live -chat.
"""
upstream odoo_chat {
server {odoo_ip}:8072;
}

location /websocket {
proxy_pass http://odoo_chat;
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;

add_header Strict-Transport-Security "max-age=31536000; includeSubDomains";
proxy_cookie_flags session_id samesite=lax secure;

proxy_read_timeout 720s;
proxy_connect_timeout 720s;
proxy_send_timeout 720s;
}

location /longpolling/ {
proxy_pass http://odoo_chat;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_http_version 1.1;
proxy_read_timeout 3600s;
}
"""

Ảnh đại diện
Onur
Câu trả lời hay nhất

Hi,
I think this is about longpolling port is set and gevent port is not set.

I am fixed it with.
In odoo.conf .

longpolling_port = False
gevent_port = 8072

you can also look at ( I cant share Link because of karma. )
deprecationwarning-the-longpolling-port-is-a-deprecated-alias-to-the-gevent-port-option-please-use-the-latter-214918

0
Ảnh đại diện
Huỷ bỏ
Nano Dev

I tried fixed it, it still happens. But if I access it through port 8069 not show "Real-time connect lost...".

Ảnh đại diện
Aleksey Anisimov
Câu trả lời hay nhất

thanks Niyas ! but this is slightly different case in the YouTube video (man funny how people make it a 5 minutes videos these days! it's like one change in conf for number of worker processes :) 

What Fabio posted might be it, but kind of weird how would it be related

Colin were you able to find a fix for this? What does it mean anyways, is this connection to real-time chat, or something like this? 

PS tried Onur's suggestion but that didn't work for me..

0
Ảnh đại diện
Huỷ bỏ
Ảnh đại diện
Niyas Raphy (Walnut Software Solutions)
Câu trả lời hay nhất

Hi,
Can you check and see if this helps: Fix Connection Lost and Connection Restored Error Odoo

Thanks

-2
Ảnh đại diện
Huỷ bỏ
Lê Anh Tuấn

Not working!

Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!

Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!

Đăng ký
Bài viết liên quan Trả lời Lượt xem Hoạt động
How to Delete a Stale Project Folder?
Odoo 18
Ảnh đại diện
Ảnh đại diện
2
thg 10 25
527
Custom code: Value is empty in the list view when it is equal to 0
Odoo 18
Ảnh đại diện
Ảnh đại diện
1
thg 6 25
1635
Help using Cloudflare as CDN for Odoo SaaS Đã xử lý
Odoo 18
Ảnh đại diện
Ảnh đại diện
1
thg 6 25
3302
Hide 'Apps' module from the HOME screen for users not set as 'Administrators'. Đã xử lý
V18
Ảnh đại diện
Ảnh đại diện
1
thg 6 25
2051
Truenas Official docker odoo self hosted image no persistancy
V18
Ảnh đại diện
1
thg 5 25
2390
Cộng đồng
  • Khóa học
  • Tài liệu
  • Diễn đàn
Open source
  • Tải xuống
  • Github
  • Runbot
  • Dịch thuật
Dịch vụ
  • Lưu trữ Odoo.sh
  • Hỗ trợ
  • Nâng cấp
  • Phát triển tùy chỉnh
  • Đào tạo
  • Tìm kế toán
  • Tìm đối tác
  • Trở thành đối tác
Giới thiệu công ty
  • Công ty của chúng tôi
  • Tài sản thương hiệu
  • Liên hệ
  • Việc làm
  • Sự kiện
  • Podcast
  • Blog
  • Khách hàng
  • Pháp lý • Riêng tư
  • Bảo mật
الْعَرَبيّة 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 là bộ ứng dụng kinh doanh có open source đáp ứng tất cả các nhu cầu của công ty bạn: CRM, thương mại điện tử, kế toán, tồn kho, POS, quản lý dự án, v.v.

Định hướng giá trị riêng biệt của Odoo là tích hợp hoàn toàn và dễ dàng sử dụng.

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