Skip to Content
Odoo मेन्यू
  • Sign in
  • मुफ़्त में आज़माएं
  • ऐप्लिकेशन
    फ़ाइनेंस
    • अकाउंटिंग
    • इनवॉइसिंग
    • एक्सपेंस
    • स्प्रेडशीट (बीआई)
    • डॉक्यूमेंट्स
    • साइन
    सेल्स
    • सीआरएम
    • सेल्स
    • पीओएस शॉप
    • पीओएस रेस्टोरेंट
    • सब्सक्रिप्शन
    • रेंटल
    वेबसाइट
    • वेबसाइट बिल्डर
    • ई-कॉमर्स
    • ब्लॉग
    • फ़ोरम
    • लाइव चैट
    • ई-लर्निंग
    सप्लाई चेन
    • इन्वेंट्री
    • मैन्युफ़ैक्चरिंग
    • पीएलएम
    • परचेज़
    • मेंटेनेंस
    • क्वालिटी
    मानव संसाधन
    • कर्मचारी
    • रिक्रूटमेंट
    • टाइम ऑफ़
    • अप्रेज़ल
    • रेफ़रल
    • फ़्लीट
    मार्केटिंग
    • सोशल मार्केटिंग
    • ईमेल मार्केटिंग
    • एसएमएस मार्केटिंग
    • इवेंट
    • मार्केटिंग ऑटोमेशन
    • सर्वे
    सेवाएं
    • प्रोजेक्ट
    • टाइमशीट
    • फ़ील्ड सर्विस
    • हेल्पडेस्क
    • प्लानिंग
    • अपॉइंटमेंट
    प्रॉडक्टिविटी
    • डिस्कस
    • अप्रूवल
    • आईओटी
    • वीओआईपी
    • नॉलेज
    • WhatsApp
    तीसरे पक्ष के ऐप्लिकेशन Odoo स्टूडियो Odoo क्लाउड प्लेटफ़ॉर्म
  • इंडस्ट्री
    रीटेल
    • बुक स्टोर
    • क्लोदिंग स्टोर
    • फ़र्नीचर स्टोर
    • ग्रॉसरी स्टोर
    • हार्डवेयर स्टोर
    • टॉय स्टोर
    Food & Hospitality
    • बार और पब
    • रेस्टोरेंट
    • फ़ास्ट फ़ूड
    • Guest House
    • बेवरिज डिस्ट्रीब्यूटर
    • Hotel
    Real Estate
    • Real Estate Agency
    • आर्किटेक्चर फ़र्म
    • कंसट्रक्शन
    • एस्टेट मैनेजमेंट
    • गार्ड्निंग
    • प्रॉपर्टी ओनर असोसिएशन
    Consulting
    • Accounting Firm
    • Odoo पार्टनर
    • Marketing Agency
    • लॉ फ़र्म
    • टैलेंट ऐक्विज़िशन
    • ऑडिट & सर्टिफ़िकेशन
    मैन्युफ़ैक्चरिंग
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • कॉर्पोरेट गिफ़्ट
    हेल्थ & फिटनेस
    • स्पोर्ट्स क्लब
    • आईवियर स्टोर
    • फिटनेस सेंटर
    • वेलनेस प्रैक्टिशनर
    • फॉर्मेसी
    • हेयर सैलून
    Trades
    • Handyman
    • आईटी हॉर्डवेयर और सपोर्ट
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • एन्वायरमेंटल एजेंसी
    • बिलबोर्ड रेंटल
    • फ़ोटोग्राफी
    • बाइक लीजिंग
    • सॉफ़्टवेयर रीसेलर
    Browse all Industries
  • कम्यूनिटी
    सीखें
    • ट्यूटोरियल्स
    • दस्तावेज़
    • सर्टिफ़िकेशन
    • ट्रेनिंग
    • ब्लॉग
    • पॉडकास्ट
    शिक्षा को बढ़ावा दें
    • एजुकेशन प्रोग्राम
    • स्केल अप! बिजनेस गेम
    • Odoo के ऑफ़िस में आएं
    सॉफ़्टवेयर पाएं
    • डाउनलोड
    • वर्शन की तुलना करें
    • रिलीज़
    साथ मिलकर काम करें
    • Github
    • फ़ोरम
    • इवेंट
    • अनुवाद
    • पार्टनर बनें
    • Services for Partners
    • अपना अकाउंटिंग फ़र्म रजिस्टर करें
    सेवाएं पाएं
    • पार्टनर ढूंढें
    • अकाउंटेंट खोजें
    • सलाहकार की मदद लें
    • इम्प्लिमेंटेशन सेवाएं
    • कस्टमर रेफ़रेंस
    • सहायता
    • अपग्रेड
    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
You need to be registered to interact with the community.
All Posts People Badges
टैग (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
टैग (View all)
odoo accounting v14 pos v15
About this forum
Help

Error (Real-time connection lost) Odoo 18 Community

Subscribe

Get notified when there's activity on this post

This question has been flagged
V18Odoo 18
12 Replies
32399 Views
Avatar
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
Avatar
Discard
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
Author

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?

Avatar
Linescripts Softwares
Best Answer

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
Avatar
Discard
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.

Avatar
Fabio
Best Answer

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
Avatar
Discard
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!

Avatar
Budi Hartono
Best Answer

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
Avatar
Discard
Avatar
pratak rattanawila
Best Answer

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

1
Avatar
Discard
Avatar
Eisentraut Theatres
Best Answer

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
Avatar
Discard
Avatar
Nicolas Sopizet
Best Answer

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
Avatar
Discard
Avatar
Colin Harleman
Author Best Answer

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
Avatar
Discard
Avatar
Hector Medina
Best Answer

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
Avatar
Discard
Avatar
Rb Chang
Best Answer

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
Avatar
Discard
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;
}
"""

Avatar
Onur
Best Answer

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
Avatar
Discard
Nano Dev

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

Avatar
Aleksey Anisimov
Best Answer

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
Avatar
Discard
Avatar
Niyas Raphy (Walnut Software Solutions)
Best Answer

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

Thanks

-2
Avatar
Discard
Lê Anh Tuấn

Not working!

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
How to Delete a Stale Project Folder?
Odoo 18
Avatar
Avatar
2
अक्तू॰ 25
533
Custom code: Value is empty in the list view when it is equal to 0
Odoo 18
Avatar
Avatar
1
जून 25
1673
Help using Cloudflare as CDN for Odoo SaaS Solved
Odoo 18
Avatar
Avatar
1
जून 25
3353
Hide 'Apps' module from the HOME screen for users not set as 'Administrators'. Solved
V18
Avatar
Avatar
1
जून 25
2089
Truenas Official docker odoo self hosted image no persistancy
V18
Avatar
1
मई 25
2418
कम्यूनिटी
  • ट्यूटोरियल्स
  • दस्तावेज़
  • फ़ोरम
ओपन सोर्स
  • डाउनलोड
  • Github
  • रनबॉट
  • अनुवाद
सेवाएं
  • Odoo.sh Hosting
  • सहायता
  • अपग्रेड
  • कस्टम डेवलपमेंट्स
  • शिक्षा
  • अकाउंटेंट खोजें
  • पार्टनर ढूंढें
  • पार्टनर बनें
हमारे बारे में
  • हमारी कंपनी
  • ब्रांड ऐसेट
  • संपर्क करें
  • नौकरियां
  • इवेंट
  • पॉडकास्ट
  • ब्लॉग
  • ग्राहक
  • लीगल • गोपनीयता
  • सुरक्षा
الْعَرَبيّة 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, बिज़नेस से जुड़े ऐप्लिकेशन का एक कलेक्शन है जो ओपन सोर्स पर आधारित है. इसमें आपकी कंपनी की हर ज़रूरत के लिए ऐप्लिकेशन हैं. जैसे, सीआरएम, ई-कॉमर्स, अकाउंटिंग, इन्वेंट्री, पॉइंट ऑफ़ सेल, प्रोजेक्ट मैनेजमेंट वगैरह.

Odoo की सबसे बड़ी खासियत है कि यह इस्तेमाल करने में बहुत आसान है और यह पूरी तरह से इंटिग्रेट किया हुआ है.

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