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
    • Sociale 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

Why is odoo 11 closing the database connection (or why is it gone)

Inschrijven

Ontvang een bericht wanneer er activiteit is op deze post

Deze vraag is gerapporteerd
databasepostgresqllostclosed
2 Antwoorden
11234 Weergaven
Avatar
Jurn

Why is odoo 11 closing the database connection (or why is it gone)

We have script which is runing for a longer period ( > 30 minutes) however everytime the script runs, it is killed between 10 and 30 minutes because the database connection is closed (or cleanup). See logging below.

What can be the cause the the connection with the postgresql 12.5 is lost/closed

Both Odoo and postgresql are running on the same server: Ubuntu 18.04

Odoo logging:

2020-01-31 12:30:19,763 14855 INFO ? odoo.sql_db: ConnectionPool(used=1/count=1/max=640): Closed 5 connections to 'user=odoo sslmode=prefer dbname=backup-2020-01-30'

2020-01-31 12:30:19,827 14855 INFO ? werkzeug: 127.0.0.1 - - [31/Jan/2020 12:30:19] "GET /web/database/selector HTTP/1.1" 200 -
2020-01-31 12:30:20,007 14855 ERROR backup-2020-01-30 odoo.sql_db: bad query: b'SELECT DISTINCT product_tmpl_id FROM product_product WHERE id IN (2392)'
ERROR: cursor already closed
2020-01-31 12:30:20,375 14855 ERROR backup-2020-01-30 odoo.sql_db: bad query: b'SELECT DISTINCT product_tmpl_id FROM product_product WHERE id IN (2392)'
ERROR: cursor already closed
2020-01-31 12:30:20,376 14855 ERROR backup-2020-01-30 odoo.http: Exception during JSON request handling.
Traceback (most recent call last):
File "/var/lib/odoo/odoo/http.py", line 646, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/var/lib/odoo/odoo/http.py", line 307, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "/var/lib/odoo/odoo/tools/pycompat.py", line 87, in reraise
raise value
File "/var/lib/odoo/odoo/http.py", line 683, in dispatch
result = self._call_function(**self.params)
File "/var/lib/odoo/odoo/http.py", line 339, in _call_function
return checked_call(self.db, *args, **kwargs)





0
Avatar
Annuleer
Khalid Al Salti

Hello sir, did you get any solution ?

Avatar
Jurn
Auteur Beste antwoord

Dear Khalid, 

Not really, but found a terrible work around:

I comment close connection in  sql_db.py and stop and restart odoo

#terrible fix

#cnx.close()


0
Avatar
Annuleer
Avatar
Dharmesh Lathiya
Beste antwoord

Dear Jurn,

Please increase the CPU time limit of Odoo config .

Odoo's config file needs to be modified to increase the CPU time limit. It is set to 600 by default(10 minutes )  Limit_time_cpu=600 or something similar.

Thank you 
Dharmesh

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
Database Migration
database postgresql
Avatar
Avatar
1
jul. 23
6810
How to save the column of the database when deleting the module?
database postgresql
Avatar
Avatar
1
mrt. 15
6464
When should Database be separated on Separate Server. Opgelost
server database postgresql
Avatar
Avatar
1
jul. 25
4624
Incremental backup in 2024 ? (self hosted)
database postgresql backup
Avatar
0
jun. 24
2550
Odoo Internal Server Error
database postgresql server500
Avatar
0
mei 24
1996
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