Skip to Content
Odoo Menu
  • Prijavi
  • Try it free
  • Aplikacije
    Finance
    • Knjigovodstvo
    • Obračun
    • Stroški
    • Spreadsheet (BI)
    • Dokumenti
    • Podpisovanje
    Prodaja
    • CRM
    • Prodaja
    • POS Shop
    • POS Restaurant
    • Naročnine
    • Najem
    Spletne strani
    • Website Builder
    • Spletna trgovina
    • Blog
    • Forum
    • Pogovor v živo
    • eUčenje
    Dobavna veriga
    • Zaloga
    • Proizvodnja
    • PLM
    • Nabava
    • Vzdrževanje
    • Kakovost
    Kadri
    • Kadri
    • Kadrovanje
    • Odsotnost
    • Ocenjevanja
    • Priporočila
    • Vozni park
    Marketing
    • Družbeno Trženje
    • Email Marketing
    • SMS Marketing
    • Dogodki
    • Avtomatizacija trženja
    • Ankete
    Storitve
    • Projekt
    • Časovnice
    • Storitve na terenu
    • Služba za pomoč
    • Načrtovanje
    • Termini
    Produktivnost
    • Razprave
    • Odobritve
    • IoT
    • Voip
    • Znanje
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industrije
    Trgovina na drobno
    • Book Store
    • Trgovina z oblačili
    • Trgovina s pohištvom
    • Grocery Store
    • Trgovina s strojno opremo računalnikov
    • Trgovina z igračami
    Food & Hospitality
    • Bar and Pub
    • Restavracija
    • Hitra hrana
    • Guest House
    • Beverage Distributor
    • Hotel
    Nepremičnine
    • Real Estate Agency
    • Arhitekturno podjetje
    • Gradbeništvo
    • Estate Management
    • Vrtnarjenje
    • Združenje lastnikov nepremičnin
    Svetovanje
    • Računovodsko podjetje
    • Odoo Partner
    • Marketinška agencija
    • Law firm
    • Pridobivanje talentov
    • Audit & Certification
    Proizvodnja
    • Tekstil
    • Metal
    • Pohištvo
    • Hrana
    • Brewery
    • Poslovna darila
    Health & Fitness
    • Športni klub
    • Trgovina z očali
    • Fitnes center
    • Wellness Practitioners
    • Lekarna
    • Frizerski salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Sistemi sončne energije
    • Izdelovalec čevljev
    • Čistilne storitve
    • HVAC Services
    Ostali
    • Neprofitna organizacija
    • Agencija za okolje
    • Najem oglasnih panojev
    • Fotografija
    • Najem koles
    • Prodajalec programske opreme
    Browse all Industries
  • Skupnost
    Learn
    • Tutorials
    • Dokumentacija
    • Certifikati
    • Šolanje
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Prenesi
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Dogodki
    • Prevodi
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Sklici kupca
    • Podpora
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Določanje cen
  • Pomoč

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

  • CRM
  • e-Commerce
  • Knjigovodstvo
  • Zaloga
  • PoS
  • Projekt
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Ključne besede (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Ključne besede (View all)
odoo accounting v14 pos v15
About this forum
Pomoč

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

Naroči se

Get notified when there's activity on this post

This question has been flagged
postgresqlchat500longpoll
5562 Prikazi
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
Opusti
Enjoying the discussion? Don't just read, join in!

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

Prijavi
Related Posts Odgovori Prikazi Aktivnost
Odoo bug?
postgresql chat bug longpolling
Avatar
0
jul. 21
5375
odoo 12 no process listen to 8072 under multiprocess mode
chat deployment longpoll odoo12.0
Avatar
1
apr. 20
4700
Odoo 11 CE module 'resource' error with gevent or workers enabled. Solved
chat gevent odoo longpoll
Avatar
2
jun. 18
5886
v16: Longpolling not working (not logging info in the IDE) Solved
server database postgresql longpoll longpolling
Avatar
1
dec. 22
5257
[Odoo v8] How to configure odoo v8 with workers and apache reverse proxy ? Solved
chat apache2 reverse_proxy workers longpoll
Avatar
Avatar
Avatar
4
dec. 23
22590
Community
  • Tutorials
  • Dokumentacija
  • Forum
Open Source
  • Prenesi
  • Github
  • Runbot
  • Prevodi
Services
  • Odoo.sh Hosting
  • Podpora
  • Nadgradnja
  • Custom Developments
  • Izobraževanje
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Sredstva blagovne znamke
  • Kontakt
  • Zaposlitve
  • Dogodki
  • Podcast
  • Blog
  • Stranke
  • Pravno • Zasebnost
  • Varnost
الْعَرَبيّة 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 is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

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