Overslaan naar inhoud
Odoo Menu
  • Aanmelden
  • Probeer het gratis
  • Apps
    Financiën
    • Boekhouding
    • Facturatie
    • Onkosten
    • Spreadsheet (BI)
    • Documenten
    • Ondertekenen
    Verkoop
    • CRM
    • Verkoop
    • Kassasysteem winkel
    • Kassasysteem Restaurant
    • Abonnementen
    • Verhuur
    Websites
    • Websitebouwer
    • E-commerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Bevoorradingsketen
    • Voorraad
    • Productie
    • PLM
    • Inkoop
    • Onderhoud
    • Kwaliteit
    Personeelsbeheer
    • Werknemers
    • Werving & Selectie
    • Verlof
    • Evaluaties
    • Aanbevelingen
    • Wagenpark
    Marketing
    • Social media Marketing
    • E-mailmarketing
    • SMS Marketing
    • Evenementen
    • Marketingautomatisering
    • Enquêtes
    Diensten
    • Project
    • Urenstaten
    • Buitendienst
    • Helpdesk
    • Planning
    • Afspraken
    Productiviteit
    • Chat
    • Goedkeuringen
    • IoT
    • VoIP
    • Kennis
    • WhatsApp
    Apps van derden Odoo Studio Odoo Cloud Platform
  • Bedrijfstakken
    Detailhandel
    • Boekhandel
    • kledingwinkel
    • Meubelzaak
    • Supermarkt
    • Bouwmarkt
    • Speelgoedwinkel
    Food & Hospitality
    • Bar en Pub
    • Restaurant
    • Fastfood
    • Gastenverblijf
    • Drankenhandelaar
    • Hotel
    Vastgoed
    • Makelaarskantoor
    • Architectenbureau
    • Bouw
    • Vastgoedbeheer
    • Tuinieren
    • Vereniging van eigenaren
    Consulting
    • Accountantskantoor
    • Odoo Partner
    • Marketingbureau
    • Advocatenkantoor
    • Talentenwerving
    • Audit & Certificering
    Productie
    • Textiel
    • Metaal
    • Meubels
    • Eten
    • Brewery
    • Relatiegeschenken
    Gezondheid & Fitness
    • Sportclub
    • Opticien
    • Fitnesscentrum
    • Wellness-medewerkers
    • Apotheek
    • Kapper
    Trades
    • Klusjesman
    • IT-hardware & support
    • Zonne-energiesystemen
    • Schoenmaker
    • Schoonmaakdiensten
    • HVAC-diensten
    Andere
    • Non-profitorganisatie
    • Milieuagentschap
    • Verhuur van Billboards
    • Fotograaf
    • Fietsleasing
    • Softwareverkoper
    Browse all Industries
  • Community
    Leren
    • Tutorials
    • Documentatie
    • Certificeringen
    • Training
    • Blog
    • Podcast
    Versterk het onderwijs
    • Onderwijs- programma
    • Scale Up! Business Game
    • Bezoek Odoo
    Download de Software
    • Downloaden
    • Vergelijk edities
    • Releases
    Werk samen
    • Github
    • Forum
    • Evenementen
    • Vertalingen
    • Word een Partner
    • Services for Partners
    • Registreer je accountantskantoor
    Diensten
    • Vind een partner
    • Vind een boekhouder
    • Een adviseur ontmoeten
    • Implementatiediensten
    • Klantreferenties
    • Ondersteuning
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Vraag een demo aan
  • Prijzen
  • Help

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

  • CRM
  • e-Commerce
  • Boekhouding
  • Voorraad
  • PoS
  • Project
  • MRP
All apps
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Help

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

Inschrijven

Ontvang een bericht wanneer er activiteit is op deze post

Deze vraag is gerapporteerd
postgresqlchat500longpoll
5539 Weergaven
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
Annuleer
Geniet je van het gesprek? Blijf niet alleen lezen, doe ook mee!

Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!

Aanmelden
Gerelateerde posts Antwoorden Weergaven Activiteit
Odoo bug?
postgresql chat bug longpolling
Avatar
0
jul. 21
5359
odoo 12 no process listen to 8072 under multiprocess mode
chat deployment longpoll odoo12.0
Avatar
1
apr. 20
4685
Odoo 11 CE module 'resource' error with gevent or workers enabled. Opgelost
chat gevent odoo longpoll
Avatar
2
jun. 18
5872
v16: Longpolling not working (not logging info in the IDE) Opgelost
server database postgresql longpoll longpolling
Avatar
1
dec. 22
5239
[Odoo v8] How to configure odoo v8 with workers and apache reverse proxy ? Opgelost
chat apache2 reverse_proxy workers longpoll
Avatar
Avatar
Avatar
4
dec. 23
22527
Community
  • Tutorials
  • Documentatie
  • Forum
Open Source
  • Downloaden
  • Github
  • Runbot
  • Vertalingen
Diensten
  • Odoo.sh Hosting
  • Ondersteuning
  • Upgrade
  • Gepersonaliseerde ontwikkelingen
  • Onderwijs
  • Vind een boekhouder
  • Vind een partner
  • Word een Partner
Over ons
  • Ons bedrijf
  • Merkelementen
  • Neem contact met ons op
  • Vacatures
  • Evenementen
  • Podcast
  • Blog
  • Klanten
  • Juridisch • Privacy
  • Beveiliging
الْعَرَبيّة 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 een suite van open source zakelijke apps die aan al je bedrijfsbehoeften voldoet: CRM, E-commerce, boekhouding, inventaris, kassasysteem, projectbeheer, enz.

Odoo's unieke waardepropositie is om tegelijkertijd zeer gebruiksvriendelijk en volledig geïntegreerd te zijn.

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