Skip to Content
Odoo Menu
  • Prihlásiť sa
  • Vyskúšajte zadarmo
  • Aplikácie
    Financie
    • Účtovníctvo
    • Fakturácia
    • Výdavky
    • Tabuľka (BI)
    • Dokumenty
    • Podpis
    Predaj
    • CRM
    • Predaj
    • POS Shop
    • POS Restaurant
    • Manažment odberu
    • Požičovňa
    Webstránky
    • Tvorca webstránok
    • eShop
    • Blog
    • Fórum
    • Živý chat
    • eLearning
    Supply Chain
    • Sklad
    • Výroba
    • Správa životného cyklu produktu
    • Nákup
    • Údržba
    • Manažment kvality
    Ľudské zdroje
    • Zamestnanci
    • Nábor zamestnancov
    • Voľné dni
    • Hodnotenia
    • Odporúčania
    • Vozový park
    Marketing
    • Marketing sociálnych sietí
    • Email marketing
    • SMS marketing
    • Eventy
    • Marketingová automatizácia
    • Prieskumy
    Služby
    • Projektové riadenie
    • Pracovné výkazy
    • Práca v teréne
    • Helpdesk
    • Plánovanie
    • Schôdzky
    Produktivita
    • Tímová komunikácia
    • Schvalovania
    • IoT
    • VoIP
    • Znalosti
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Managament
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Výroba
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware and Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Komunita
    Vzdelávanie
    • Tutoriály
    • Dokumentácia
    • Certifikácie
    • Školenie
    • Blog
    • Podcast
    Empower Education
    • Vzdelávací program
    • Scale Up! Business Game
    • Visit Odoo
    Softvér
    • Stiahnuť
    • Porovnanie Community a Enterprise vierzie
    • Releases
    Spolupráca
    • Github
    • Fórum
    • Eventy
    • Preklady
    • Staň sa partnerom
    • Services for Partners
    • Register your Accounting Firm
    Služby
    • Nájdite partnera
    • Nájdite účtovníka
    • Meet an advisor
    • Implementation Services
    • Zákaznícke referencie
    • Podpora
    • Upgrades
    ​Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Získajte demo
  • Cenník
  • Help

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

  • CRM
  • e-Commerce
  • Účtovníctvo
  • Sklady
  • PoS
  • Projektové riadenie
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
Pomoc

odoo FATAL: sorry, too many clients already

Odoberať

Get notified when there's activity on this post

This question has been flagged
nginxworkerslongpollodoo9
7 Replies
27845 Zobrazenia
Avatar
Baintex Technologies S.L.

I have Odoo 9 with postgreSQL 9.6, with nginx and the longpolling well configured.

Everything is working fine, and suddenly, the server crashes and this message appears in the log:

OperationalError: FATAL:  sorry, too many clients already
2018-05-16 13:00:02,496 141 INFO ? openerp.sql_db: Connection to the database failed
2018-05-16 13:00:02,496 141 ERROR ? openerp.service.server: Worker (141) Exception occured, exiting...
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/openerp/service/server.py", line 721, in run
    self.process_work()
  File "/usr/lib/python2.7/dist-packages/openerp/service/server.py", line 790, in process_work
    db_names = self._db_list()
  File "/usr/lib/python2.7/dist-packages/openerp/service/server.py", line 783, in _db_list
    db_names = openerp.service.db.list_dbs(True)
  File "/usr/lib/python2.7/dist-packages/openerp/service/db.py", line 323, in list_dbs
    with closing(db.cursor()) as cr:
  File "/usr/lib/python2.7/dist-packages/openerp/sql_db.py", line 643, in cursor
    return Cursor(self.__pool, self.dbname, self.dsn, serialized=serialized)
  File "/usr/lib/python2.7/dist-packages/openerp/sql_db.py", line 177, in __init__
    self._cnx = pool.borrow(dsn)
  File "/usr/lib/python2.7/dist-packages/openerp/sql_db.py", line 526, in _locked
    return fun(self, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/openerp/sql_db.py", line 594, in borrow
    **connection_info)
  File "/usr/lib/python2.7/dist-packages/psycopg2/__init__.py", line 164, in connect
    conn = _connect(dsn, connection_factory=connection_factory, async=async)


I have to restart the server to temporal fix, but I don't know what is the cause.

I have a 4 cores CPU with 8 GB RAM.

I set these parameters in Odoo.conf file:

...
workers = 7
max_cron_threads = 2
db_maxconn = 64

What is the reason of the crash? Is it an odoo config error or a postgreSQL config error?


2
Avatar
Zrušiť
Ludo - 21South

We're suffering from a similair problem, only when running the scheduler. It seems like Odoo is keeping the connections "alive" (even though they might be idle) for well over 2 days. This might be the cause.

Nacho

21south, Ludo - 21South

Do you have a better solution than set workers to 0?

OdooBot
Qué me envías?







   



2018-05-17 9:18 GMT+02:00 Nacho <nacho@baintex.com>:

21south, Ludo - 21South

Do you have a better solution than set workers to 0?

--
Nacho

Sent by Odoo S.A. using Odoo.


Fatih Piristine

check postgres and system logs. you will surely find something. monitor how many idle users you have hanging in postgres so on. can't say much by looking at that log

Avatar
Rafael Portilla
Best Answer

Try to check your postgres config

(ex:/etc/postgresql/9.5/main/postgresql.conf in ubuntu) in max_connections 

maybe you have some other connections to your database, not just from odoo, and you need to increase it. 



2
Avatar
Zrušiť
Nacho

There is 100 max_connections in postgresql.conf file.

There are 8 instances of odoo connecting to the database.

I have set db_maxconn = 10 instead of 64 and now it works fine and it does not crash.

Avatar
Hilar Andikkadavath
Best Answer

Here is the link which helps for worker calculations. so you can deploy odoo correctly. Have a look here maybe helps

https://www.odoo.com/documentation/10.0/setup/deploy.html#worker-number-calculation

0
Avatar
Zrušiť
Baintex Technologies S.L.
Autor

I know this page but I don't know what is the problem with my configuration.

I put 7 workers and 2 max_cron_threads.

Why is the server crashing after a period of short time (less than a day)?

OdooBot
Can you please ask the same question here <technical@mail.odoo.com>

On Wed, May 16, 2018 at 7:57 PM, Baintex Technologies S.L. <mariajose@baintex.com> wrote:

I know this page but I don't know what is the problem with my configuration.

I put 7 workers and 2 max_cron_threads.

Why is the server crashing after a period of short time (less than a day)?

--
Baintex Technologies S.L.

Sent by Odoo S.A. using Odoo.




--
Hilar AK  Python / Odoo Developer

m: +917736617619
e: hilarak@gmail.com
Follow me:
twitteryoutubegithubstack-overflow


Nacho

I have tried to send an email at that address and I only receive this automatic mail:

Invalid response code from remote server: 5

Final-Recipient: rfc822; technical@mail.odoo.com

Action: failed

Status: 4.5.0

Remote-MTA: dns; ob3.odoo.com. (137.74.205.210, the server for the domain mail.odoo.com.)

Diagnostic-Code: smtp; Invalid response code from remote server: 5 5 0 5 . 7 . 1 M a i l b o x u n a v a i l a b l e - M a i l b o x u n a v a i l a b l e - a l i a s t e c h n i c a l : r e s t r i c t e d t o c h a n n e l m e m b e r s

Last-Attempt-Date: Sat, 19 May 2018 10:18:43 -0700 (PDT)

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

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

Registrácia
Related Posts Replies Zobrazenia Aktivita
Odoo12: Help on tunning up odoo config file Solved
nginx workers
Avatar
Avatar
1
máj 25
24219
Why am I getting 502 error with longpolling?
nginx port longpoll
Avatar
Avatar
Avatar
3
dec 19
22678
adding workers to my config gives me errors that dependencies are not met and fields do not exist Solved
workers longpoll odoo10
Avatar
Avatar
4
nov 19
5379
Odoo 11 Longpolling 502 (Bad Gateway) Error Solved
nginx reverse_proxy longpoll odoov11
Avatar
Avatar
Avatar
Avatar
3
jan 22
45221
CSRF validation failed on path '/web/login'
web nginx odoo9 CSRF
Avatar
Avatar
1
feb 21
12795
Komunita
  • Tutoriály
  • Dokumentácia
  • Fórum
Open Source
  • Stiahnuť
  • Github
  • Runbot
  • Preklady
Služby
  • Odoo.sh hosting
  • Podpora
  • Vyššia verzia
  • Custom Developments
  • Vzdelávanie
  • Nájdite účtovníka
  • Nájdite partnera
  • Staň sa partnerom
O nás
  • Naša spoločnosť
  • Majetok značky
  • Kontaktujte nás
  • Pracovné ponuky
  • Eventy
  • Podcast
  • Blog
  • Zákazníci
  • Právne dokumenty • Súkromie
  • Bezpečnosť
الْعَرَبيّة 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 je sada podnikových aplikácií s otvoreným zdrojovým kódom, ktoré pokrývajú všetky potreby vašej spoločnosti: CRM, e-shop, účtovníctvo, skladové hospodárstvo, miesto predaja, projektový manažment atď.

Odoo prináša vysokú pridanú hodnotu v jednoduchom použití a súčasne plne integrovanými biznis aplikáciami.

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