Se rendre au contenu
Odoo Menu
  • Se connecter
  • Essai gratuit
  • Applications
    Finance
    • Comptabilité
    • Facturation
    • Notes de frais
    • Feuilles de calcul (BI)
    • Documents
    • Signature
    Ventes
    • CRM
    • Ventes
    • PdV Boutique
    • PdV Restaurant
    • Abonnements
    • Location
    Sites web
    • Site Web
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Chaîne d'approvisionnement
    • Inventaire
    • Fabrication
    • PLM
    • Achats
    • Maintenance
    • Qualité
    Ressources Humaines
    • Employés
    • Recrutement
    • Congés
    • Évaluations
    • Recommandations
    • Parc automobile
    Marketing
    • Marketing Social
    • E-mail Marketing
    • SMS Marketing
    • Événements
    • Marketing Automation
    • Sondages
    Services
    • Projet
    • Feuilles de temps
    • Services sur Site
    • Assistance
    • Planification
    • Rendez-vous
    Productivité
    • Discussion
    • Validations
    • Internet des Objets
    • VoIP
    • Connaissances
    • WhatsApp
    Applications tierces Odoo Studio Plateforme Cloud d'Odoo
  • Industries
    Commerce de détail
    • Librairie
    • Magasin de vêtements
    • Magasin de meubles
    • Épicerie
    • Quincaillerie
    • Magasin de jouets
    Food & Hospitality
    • Bar et Pub
    • Restaurant
    • Fast-food
    • Maison d’hôtes
    • Distributeur de boissons
    • Hôtel
    Immobilier
    • Agence immobilière
    • Cabinet d'architecture
    • Construction
    • Gestion immobilière
    • Jardinage
    • Association de copropriétaires
    Consultance
    • Cabinet d'expertise comptable
    • Partenaire Odoo
    • Agence Marketing
    • Cabinet d'avocats
    • Aquisition de talents
    • Audit & Certification
    Fabrication
    • Textile
    • Métal
    • Meubles
    • Alimentation
    • Brewery
    • Cadeaux d'entreprise
    Santé & Fitness
    • Club de sports
    • Opticien
    • Salle de fitness
    • Praticiens bien-être
    • Pharmacie
    • Salon de coiffure
    Trades
    • Bricoleur
    • Matériel informatique et support
    • Systèmes photovoltaïques
    • Cordonnier
    • Services de nettoyage
    • Services CVC
    Autres
    • Organisation à but non lucratif
    • Agence environnementale
    • Location de panneaux d'affichage
    • Photographie
    • Leasing de vélos
    • Revendeur de logiciel
    Browse all Industries
  • Communauté
    Apprenez
    • Tutoriels
    • Documentation
    • Certifications
    • Formation
    • Blog
    • Podcast
    Renforcer l'éducation
    • Programme éducatif
    • Business Game Scale-Up!
    • Rendez-nous visite
    Obtenir le logiciel
    • Téléchargement
    • Comparez les éditions
    • Versions
    Collaborer
    • Github
    • Forum
    • Événements
    • Traductions
    • Devenez partenaire
    • Services for Partners
    • Enregistrer votre cabinet comptable
    Nos Services
    • Trouver un partenaire
    • Trouver un comptable
    • Rencontrer un conseiller
    • Services de mise en œuvre
    • Références clients
    • Assistance
    • Mises à niveau
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obtenir une démonstration
  • Tarification
  • Aide

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

  • CRM
  • e-Commerce
  • Comptabilité
  • Inventaire
  • PoS
  • Projet
  • MRP
All apps
Vous devez être inscrit pour interagir avec la communauté.
Toutes les publications Personnes Badges
Étiquettes (Voir toutl)
odoo accounting v14 pos v15
À propos de ce forum
Vous devez être inscrit pour interagir avec la communauté.
Toutes les publications Personnes Badges
Étiquettes (Voir toutl)
odoo accounting v14 pos v15
À propos de ce forum
Aide

Odoo 10 CE - chat is not refreshing on SSL connection

S'inscrire

Recevez une notification lorsqu'il y a de l'activité sur ce poste

Cette question a été signalée
messageschatsslrefresh
7 Réponses
15436 Vues
Avatar
Hadron for business sp. z o.o.

Hello,

We have problems with 'Discuss' module in Odoo v10CE on SSL connection. When connected vie SSL chat frame is not refreshing automatically. When user is typing a message after sending it the message is not visible in the chat. It shows up only after manual page refresh. 


We have tried different Apache configuration without success. Seems Java code used in this module is not supporting https connections. Any ideas how to solve this?


1
Avatar
Ignorer
Avatar
Hadron for business sp. z o.o.
Auteur Meilleure réponse

Hi All,

We have found solution for this problem. There is misleading information in official documentation regarding proxy configuration for chat feature. The port should not be '8072' instead it should be port used by Odoo (by default '8069').  Or just remove following lines form your proxy configuration:


# Needed for real time message / chat feature (longpolling)

    ProxyPass /longpolling/poll http://127.0.0.1:8072/longpolling/poll/ timeout=900

    ProxyPass /longpolling/poll/ http://127.0.0.1:8072/longpolling/poll/ timeout=900

    ProxyPassReverse /longpolling/poll/ http://127.0.0.1:8072/longpolling/poll/


Works well for us, tested on two separate projects ;)

1
Avatar
Ignorer
Avatar
Laps Solutions Limited
Meilleure réponse

i am using Nginx on 10E. We get the same situation - IM is not working. Browser refresh/reload in order to post the message to the chatbox.  I try the same database in a local vm without proxy server (ngnix) it works. No idea how to solve it. 


1
Avatar
Ignorer
Avatar
Sergey K
Meilleure réponse

Hello everyone, who can help me, the same trouble with messages, I can show the files, I have already tried different configurations but nothing helps

Odoo 16, Ubuntu 22.04

0
Avatar
Ignorer
Avatar
mstephenson@werokllc.com
Meilleure réponse

The post on 6/29/17, 2:19 AM by Hadron for business sp. z o.o. is what worked for me. After hours of scratching my head trying to figure this out, I found this post. 

My conf file now looks like this:


upstream odoo {

     server 127.0.0.1:8069;

}

upstream odoochat {

     server 127.0.0.1:8069;

}

...

location /longpolling {

     proxy_connect_timeout 600;

     proxy_send_timeout 600;

     proxy_read_timeout 600;

     send_timeout 600;

     proxy_pass http://odoochat;

}

0
Avatar
Ignorer
Avatar
Sinerkia Innovación y Desarrollo S.L.
Meilleure réponse

Hadron has the answer!

Tested his solution on five different servers, works perfectly.

Just disable the longpolling proxy pass and everything works.

Thanks

0
Avatar
Ignorer
Avatar
Piotr Cierkosz
Meilleure réponse

Same at v9. Used couple templates, changed longpolling settings but it does not work;/ Hadron solution worked for v10

0
Avatar
Ignorer
Hadron for business sp. z o.o.
Auteur

Hi Piotr,

Please share more config details, we can check on v9 as well.

Piotr Cierkosz

Config:

limit_memory_hard = 13690208256

limit_memory_soft = 11408506880

limit_request = 8192

limit_time_cpu = 600

limit_time_real = 1200

list_db = True

log_db = False

log_db_level = warning

log_handler = :INFO

log_level = info

logfile = /var/log/odoo/odoo-server.log

logrotate = True

longpolling_port = 8072

max_cron_threads = 2

osv_memory_age_limit = 1.0

osv_memory_count_limit = False

pg_path = None

pidfile = False

proxy_mode = True

reportgz = False

server_wide_modules = web,web_kanban

smtp_password = False

smtp_port = 25

smtp_server = localhost

smtp_ssl = False

smtp_user = False

syslog = False

test_commit = False

test_enable = False

test_file = False

test_report_directory = False

translate_modules = ['all']

unaccent = False

without_demo = False

workers = 17

xmlrpc = True

xmlrpc_interface =

xmlrpc_port = 8069

Nginx:

#odoo server

upstream odoo {

server localhost:8069;

}

upstream odoochat {

server 127.0.0.1:8072;

}

# http -> https

server {

listen 80;

server_name xxxx.com;

rewrite ^(.*) https://$host$1 permanent;

}

server {

listen 443;

server_name xxxx.com;

proxy_read_timeout 720s;

proxy_connect_timeout 720s;

proxy_send_timeout 720s;

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

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

# SSL parameters

ssl on;

ssl_certificate /etc/xxx;

ssl_certificate_key /etc/xxx;

ssl_session_timeout 30m;

ssl_protocols TLSv1 TLSv1.1 TLSv1.2;

ssl_ciphers 'ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:$

ssl_prefer_server_ciphers on;

# log

access_log /var/xxxx;

error_log /var/xxxx;

# Redirect requests to odoo backend server

location / {

proxy_redirect off;

proxy_pass http://odoo;

}

location /longpolling {

proxy_pass http://127.0.0.1:8072;

}

# common gzip

gzip_types text/css text/less text/plain text/xml application/xml application/json application/javascript;

gzip on;

}

It is quite generic config (followed Odoo docs and some tips from the Odoo Dev Cookbook). Also according the docs there could be an issue with db_maxcon http://odoo-development.readthedocs.io/en/latest/admin/db_maxconn.html as it is surely greater than 100.

BTW: I am also from Poland ;)Dzieki

Avatar
Rachid
Meilleure réponse

Same problem in the version 8

0
Avatar
Ignorer
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !

Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !

S'inscrire
Publications associées Réponses Vues Activité
Is there no auto refresh for message flow in groups?
messages usability groups refresh
Avatar
Avatar
Avatar
Avatar
Avatar
9
juin 15
9826
Polling process can't connect to DB over a NGINX reverse proxy
messages nginx chat proxy reverse
Avatar
Avatar
1
mai 24
15442
Where to change OdooBot default messaging
messages chat discussion tour odoobot
Avatar
Avatar
1
déc. 24
4638
How to open the chatter messages in a window from a button in the partner form view?
messages chat thread discuss Chatter v18
Avatar
0
juin 25
1411
How to change color of chat text (Odoo online) Résolu
chat
Avatar
Avatar
2
juil. 23
5282
Communauté
  • Tutoriels
  • Documentation
  • Forum
Open Source
  • Téléchargement
  • Github
  • Runbot
  • Traductions
Services
  • Hébergement Odoo.sh
  • Assistance
  • Migration
  • Développements personnalisés
  • Éducation
  • Trouver un comptable
  • Trouver un partenaire
  • Devenez partenaire
À propos
  • Notre société
  • Actifs de la marque
  • Contactez-nous
  • Emplois
  • Événements
  • Podcast
  • Blog
  • Clients
  • Informations légales • Confidentialité
  • Sécurité.
الْعَرَبيّة 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 est une suite d'applications open source couvrant tous les besoins de votre entreprise : CRM, eCommerce, Comptabilité, Inventaire, Point de Vente, Gestion de Projet, etc.

Le positionnement unique d'Odoo est d'être à la fois très facile à utiliser et totalement intégré.

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