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

Chat (polling process) doesn't work correctly. Error 500.

Subscriure's

Get notified when there's activity on this post

This question has been flagged
postgresqlchat500longpoll
5525 Vistes
Avatar
Diego González

Hi everybody! I'm struggling with an 500 HTTP error fired by the polling proccess (used for chat messages) -as far as I can understand, beacuse the polling proccess can't connect to PostgreSQL (but Odoo main process can, though).


Symptom

Everything in Odoo works just fine, except ONLY for the IM: randomly and after some hours or even days, messagges doesn't refresh automatically and Odoo accuses of losing connection and getting it back automatically (sometimes the session even expires).


No IM message is lost: refreshing the webpage shows the latest IM messages.


Enviroment

  • VM witth 4 virtual processors and 16 GB of RAM

  • Ubuntu 20.04

  • Odoo 14 Community Edition

  • NGINX as a reverse proxy


Logs

I managed myself to set all logs to debug mode, and I found that the longpolling process is trying to connect to database "postgress", when my only database is called "odoo". I couldn't find where that could be setted (as I have in my odoo.conf, db_name = odoo)


This is the Odoo log in debug mode:


2021-07-21 20:46:45,888 71430 INFO ? longpolling: 192.168.200.30 - - [2021-07-21 20:46:45] "POST /longpolling/poll HTTP/1.0" 500 140 10.879160
2021-07-21 20:46:45,891 71430 DEBUG ? odoo.sql_db: SQL LOG from:
2021-07-21 20:46:45,891 71430 DEBUG ? odoo.sql_db: table: pg_user: 0:00:00.004050/1
2021-07-21 20:46:45,891 71430 DEBUG ? odoo.sql_db: SUM from:0:00:00.004050/1 [1146]
2021-07-21 20:46:45,891 71430 DEBUG ? odoo.sql_db: SUM into:0:00:00/1 [1146]
2021-07-21 20:46:45,898 71430 DEBUG ? odoo.sql_db: ConnectionPool(used=32/count=39/max=64) Create new connection
2021-07-21 20:46:45,898 71430 DEBUG ? odoo.sql_db: query: select datname from pg_database where datdba=(select usesysid from pg_user where usename=current_user) and not datistemplate and datallowc>
2021-07-21 20:46:45,898 71430 DEBUG ? odoo.sql_db: ConnectionPool(used=32/count=39/max=64) Give back connection to 'user=odoo password=xxx dbname=postgres host=localhost port=5432 sslmode=prefer'
2021-07-21 20:46:45,898 71430 DEBUG ? odoo.sql_db: ConnectionPool(used=31/count=38/max=64) Forgot connection to 'user=odoo password=xxx dbname=postgres host=localhost port=5432 sslmode=prefer'
2021-07-21 20:46:45,899 71430 DEBUG odoo odoo.sql_db: create serialized cursor to {'database': 'odoo', 'host': 'localhost', 'port': 5432, 'user': 'odoo', 'password': 'mypassword', 'sslmode': 'p>
2021-07-21 20:46:45,900 71430 DEBUG ? odoo.sql_db: create serialized cursor to {'database': 'postgres', 'host': 'localhost', 'port': 5432, 'user': 'odoo', 'password': 'mypassword', 'sslmode': '>
2021-07-21 20:46:45,901 71430 DEBUG odoo odoo.sql_db: ConnectionPool(used=32/count=38/max=64) Borrow existing connection to 'user=odoo password=xxx dbname=odoo host=localhost port=5432 sslmode=pre>
2021-07-21 20:46:45,901 71430 DEBUG odoo odoo.sql_db: query: SELECT base_registry_signaling.last_value,
base_cache_signaling.last_value
FROM base_registry_signaling, base_cache_signaling
2021-07-21 20:46:45,901 71430 INFO ? odoo.sql_db: Connection to the database failed


More info

You can get more info about configuration parameters and troubleshooting results here:

More info


Question

Can anybody help me with this issue? Is it with workers or db-connection oriented issue? Any idea will help.


Thanks!

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
Odoo bug?
postgresql chat bug longpolling
Avatar
0
de jul. 21
5349
odoo 12 no process listen to 8072 under multiprocess mode
chat deployment longpoll odoo12.0
Avatar
1
d’abr. 20
4677
Odoo 11 CE module 'resource' error with gevent or workers enabled. Solved
chat gevent odoo longpoll
Avatar
2
de juny 18
5859
v16: Longpolling not working (not logging info in the IDE) Solved
server database postgresql longpoll longpolling
Avatar
1
de des. 22
5227
[Odoo v8] How to configure odoo v8 with workers and apache reverse proxy ? Solved
chat apache2 reverse_proxy workers longpoll
Avatar
Avatar
Avatar
4
de des. 23
22484
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