Skip to Content
Odoo Menú
  • Registra entrada
  • Prova-ho gratis
  • Aplicacions
    Finances
    • Comptabilitat
    • Facturació
    • Despeses
    • Full de càlcul (IA)
    • Documents
    • Signatura
    Vendes
    • CRM
    • Vendes
    • Punt de venda per a botigues
    • Punt de venda per a restaurants
    • Subscripcions
    • Lloguer
    Imatges de llocs web
    • Creació de llocs web
    • Comerç electrònic
    • Blog
    • Fòrum
    • Xat en directe
    • Aprenentatge en línia
    Cadena de subministrament
    • Inventari
    • Fabricació
    • PLM
    • Compres
    • Manteniment
    • Qualitat
    Recursos humans
    • Empleats
    • Reclutament
    • Absències
    • Avaluacions
    • Recomanacions
    • Flota
    Màrqueting
    • Màrqueting Social
    • Màrqueting per correu electrònic
    • Màrqueting per SMS
    • Esdeveniments
    • Automatització del màrqueting
    • Enquestes
    Serveis
    • Projectes
    • Fulls d'hores
    • Servei de camp
    • Suport
    • Planificació
    • Cites
    Productivitat
    • Converses
    • Validacions
    • IoT
    • VoIP
    • Coneixements
    • WhatsApp
    Aplicacions de tercers Odoo Studio Plataforma d'Odoo al núvol
  • Sectors
    Comerç al detall
    • Llibreria
    • Botiga de roba
    • Botiga de mobles
    • Botiga d'ultramarins
    • Ferreteria
    • Botiga de joguines
    Food & Hospitality
    • Bar i pub
    • Restaurant
    • Menjar ràpid
    • Guest House
    • Distribuïdor de begudes
    • Hotel
    Immobiliari
    • Agència immobiliària
    • Estudi d'arquitectura
    • Construcció
    • Gestió immobiliària
    • Jardineria
    • Associació de propietaris de béns immobles
    Consultoria
    • Empresa comptable
    • Partner d'Odoo
    • Agència de màrqueting
    • Bufet d'advocats
    • Captació de talent
    • Auditoria i certificació
    Fabricació
    • Textile
    • Metal
    • Mobles
    • Menjar
    • Brewery
    • Regals corporatius
    Salut i fitness
    • Club d'esport
    • Òptica
    • Centre de fitness
    • Especialistes en benestar
    • Farmàcia
    • Perruqueria
    Trades
    • Servei de manteniment
    • Hardware i suport informàtic
    • Sistemes d'energia solar
    • Shoe Maker
    • Serveis de neteja
    • Instal·lacions HVAC
    Altres
    • Nonprofit Organization
    • Agència del medi ambient
    • Lloguer de panells publicitaris
    • Fotografia
    • Lloguer de bicicletes
    • Distribuïdors de programari
    Browse all Industries
  • Comunitat
    Aprèn
    • Tutorials
    • Documentació
    • Certificacions
    • Formació
    • Blog
    • Pòdcast
    Potenciar l'educació
    • Programa educatiu
    • Scale-Up! El joc empresarial
    • Visita Odoo
    Obtindre el programari
    • Descarregar
    • Comparar edicions
    • Novetats de les versions
    Col·laborar
    • GitHub
    • Fòrum
    • Esdeveniments
    • Traduccions
    • Converteix-te en partner
    • Services for Partners
    • Registra la teva empresa comptable
    Obtindre els serveis
    • Troba un partner
    • Troba un comptable
    • Contacta amb un expert
    • Serveis d'implementació
    • Referències del client
    • Suport
    • Actualitzacions
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Programar una demo
  • Preus
  • Ajuda

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

  • CRM
  • e-Commerce
  • Comptabilitat
  • Inventari
  • PoS
  • Projectes
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
Ajuda

Odoo 10 CE - chat is not refreshing on SSL connection

Subscriure's

Get notified when there's activity on this post

This question has been flagged
messageschatsslrefresh
7 Respostes
15453 Vistes
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
Descartar
Avatar
Hadron for business sp. z o.o.
Autor Best Answer

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
Descartar
Avatar
Laps Solutions Limited
Best Answer

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
Descartar
Avatar
Sergey K
Best Answer

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
Descartar
Avatar
mstephenson@werokllc.com
Best Answer

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
Descartar
Avatar
Sinerkia Innovación y Desarrollo S.L.
Best Answer

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
Descartar
Avatar
Piotr Cierkosz
Best Answer

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

0
Avatar
Descartar
Hadron for business sp. z o.o.
Autor

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
Best Answer

Same problem in the version 8

0
Avatar
Descartar
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Registrar-se
Related Posts Respostes Vistes Activitat
Is there no auto refresh for message flow in groups?
messages usability groups refresh
Avatar
Avatar
Avatar
Avatar
Avatar
9
de juny 15
9838
Polling process can't connect to DB over a NGINX reverse proxy
messages nginx chat proxy reverse
Avatar
Avatar
1
de maig 24
15458
Where to change OdooBot default messaging
messages chat discussion tour odoobot
Avatar
Avatar
1
de des. 24
4650
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
de juny 25
1419
How to change color of chat text (Odoo online) Solved
chat
Avatar
Avatar
2
de jul. 23
5288
Community
  • Tutorials
  • Documentació
  • Fòrum
Codi obert
  • Descarregar
  • GitHub
  • Runbot
  • Traduccions
Serveis
  • Allotjament a Odoo.sh
  • Suport
  • Actualització
  • Desenvolupaments personalitzats
  • Educació
  • Troba un comptable
  • Troba un partner
  • Converteix-te en partner
Sobre nosaltres
  • La nostra empresa
  • Actius de marca
  • Contacta amb nosaltres
  • Llocs de treball
  • Esdeveniments
  • Pòdcast
  • Blog
  • Clients
  • Informació legal • Privacitat
  • Seguretat
الْعَرَبيّة 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 és un conjunt d'aplicacions empresarials de codi obert que cobreix totes les necessitats de la teva empresa: CRM, comerç electrònic, comptabilitat, inventari, punt de venda, gestió de projectes, etc.

La proposta única de valor d'Odoo és ser molt fàcil d'utilitzar i estar totalment integrat, ambdues alhora.

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