I created a popup notification in the Project module via a scheduled action to notify task assignees about overdue tasks. It worked on localhost, but it didn’t work on the live Odoo server. So I removed it and implemented it via custom code, which again worked on localhost but not on the live server. Now, in the Discuss module, it shows 'Real Time Connection Lost' on the live server. The popup notification is not appearing, but it shows in the message box.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Boekhouding
- Voorraad
- PoS
- Project
- MRP
Deze vraag is gerapporteerd
Hi Rafeeda,
What you’re describing sounds like a problem with the longpolling / bus service on your live server. The “Real Time Connection Lost” message in Discuss usually means that Odoo’s notification system can’t keep a websocket/longpolling connection alive.
On localhost it works fine because everything runs in one process, but on the live server you need to check a few things:
-
Start the longpolling worker → make sure odoo-bin is started with both the main workers and the -c config pointing to a running longpolling worker. Example:
./odoo-bin -c /etc/odoo.conf --workers=4 --longpolling-port=8072
- Proxy configuration → if you’re using Nginx, add a proxy pass for /longpolling/ (port 8072) so the client can reach it.
- Check firewall → ensure the longpolling port is open internally between Nginx and Odoo.
- Avoid duplicate cron/scheduled actions if you already switched to custom code.
So in short: your popup code is fine, but the missing real-time notifications are due to the longpolling setup not being correctly configured on the live server.
Hope this points you in the right direction!
Geniet je van het gesprek? Blijf niet alleen lezen, doe ook mee!
Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!
Aanmelden