Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
159 Weergaven

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.

Avatar
Annuleer
Beste antwoord

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:

  1. 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

  2. Proxy configuration → if you’re using Nginx, add a proxy pass for /longpolling/ (port 8072) so the client can reach it.
  3. Check firewall → ensure the longpolling port is open internally between Nginx and Odoo.
  4. 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!

Avatar
Annuleer