Skip ke Konten
Odoo Menu
  • Login
  • Uji coba gratis
  • Aplikasi
    Keuangan
    • Akuntansi
    • Faktur
    • Pengeluaran
    • Spreadsheet (BI)
    • Dokumen
    • Tanda Tangan
    Sales
    • CRM
    • Sales
    • POS Toko
    • POS Restoran
    • Langganan
    • Rental
    Website
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Rantai Pasokan
    • Inventaris
    • Manufaktur
    • PLM
    • Purchase
    • Maintenance
    • Kualitas
    Sumber Daya Manusia
    • Karyawan
    • Rekrutmen
    • Cuti
    • Appraisal
    • Referensi
    • Armada
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Acara
    • Otomatisasi Marketing
    • Survei
    Layanan
    • Project
    • Timesheet
    • Layanan Lapangan
    • Meja Bantuan
    • Planning
    • Appointment
    Produktivitas
    • Diskusi
    • Approval
    • IoT
    • VoIP
    • Pengetahuan
    • WhatsApp
    Aplikasi pihak ketiga Odoo Studio Platform Odoo Cloud
  • Industri-Industri
    Retail
    • Toko Buku
    • Toko Baju
    • Toko Furnitur
    • Toko Kelontong
    • Toko Hardware
    • Toko Mainan
    Makanan & Hospitality
    • Bar dan Pub
    • Restoran
    • Fast Food
    • Rumah Tamu
    • Distributor Minuman
    • Hotel
    Real Estate
    • Agensi Real Estate
    • Firma Arsitektur
    • Konstruksi
    • Estate Management
    • Perkebunan
    • Asosiasi Pemilik Properti
    Konsultansi
    • Firma Akuntansi
    • Mitra Odoo
    • Agensi Marketing
    • Firma huku
    • Talent Acquisition
    • Audit & Sertifikasi
    Manufaktur
    • Tekstil
    • Logam
    • Perabotan
    • Makanan
    • Brewery
    • Corporate Gift
    Kesehatan & Fitness
    • Sports Club
    • Toko Kacamata
    • Fitness Center
    • Wellness Practitioners
    • Farmasi
    • Salon Rambut
    Perdagangan
    • Handyman
    • IT Hardware & Support
    • Sistem-Sistem Energi Surya
    • Pembuat Sepatu
    • Cleaning Service
    • Layanan HVAC
    Lainnya
    • Organisasi Nirlaba
    • Agen Lingkungan
    • Rental Billboard
    • Fotografi
    • Penyewaan Sepeda
    • Reseller Software
    Browse semua Industri
  • Komunitas
    Belajar
    • Tutorial-tutorial
    • Dokumentasi
    • Sertifikasi
    • Pelatihan
    • Blog
    • Podcast
    Empower Education
    • Program Edukasi
    • Game Bisnis 'Scale Up!'
    • Kunjungi Odoo
    Dapatkan Softwarenya
    • Download
    • Bandingkan Edisi
    • Daftar Rilis
    Kolaborasi
    • Github
    • Forum
    • Acara
    • Terjemahan
    • Menjadi Partner
    • Layanan untuk Partner
    • Daftarkan perusahaan Akuntansi Anda.
    Dapatkan Layanan
    • Temukan Mitra
    • Temukan Akuntan
    • Temui penasihat
    • Layanan Implementasi
    • Referensi Pelanggan
    • Bantuan
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Dapatkan demo
  • Harga
  • Bantuan

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

  • CRM
  • e-Commerce
  • Akuntansi
  • Inventaris
  • PoS
  • Project
  • MRP
All apps
Anda harus terdaftar untuk dapat berinteraksi di komunitas.
Semua Post Orang Lencana-Lencana
Label (Lihat semua)
odoo accounting v14 pos v15
Mengenai forum ini
Anda harus terdaftar untuk dapat berinteraksi di komunitas.
Semua Post Orang Lencana-Lencana
Label (Lihat semua)
odoo accounting v14 pos v15
Mengenai forum ini
Help

odoo FATAL: sorry, too many clients already

Langganan

Dapatkan notifikasi saat terdapat aktivitas pada post ini

Pertanyaan ini telah diberikan tanda
nginxworkerslongpollodoo9
7 Replies
27850 Tampilan
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
Buang
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
Jawaban Terbai

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
Buang
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
Jawaban Terbai

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
Buang
Baintex Technologies S.L.
Penulis

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)

Menikmati diskusi? Jangan hanya membaca, ikuti!

Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!

Daftar
Post Terkait Replies Tampilan Aktivitas
Odoo12: Help on tunning up odoo config file Diselesaikan
nginx workers
Avatar
Avatar
1
Mei 25
24227
Why am I getting 502 error with longpolling?
nginx port longpoll
Avatar
Avatar
Avatar
3
Des 19
22694
adding workers to my config gives me errors that dependencies are not met and fields do not exist Diselesaikan
workers longpoll odoo10
Avatar
Avatar
4
Nov 19
5383
Odoo 11 Longpolling 502 (Bad Gateway) Error Diselesaikan
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
12800
Komunitas
  • Tutorial-tutorial
  • Dokumentasi
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Terjemahan
Layanan
  • Odoo.sh Hosting
  • Bantuan
  • Peningkatan
  • Custom Development
  • Pendidikan
  • Temukan Akuntan
  • Temukan Mitra
  • Menjadi Partner
Tentang Kami
  • Perusahaan kami
  • Aset Merek
  • Hubungi kami
  • Tugas
  • Acara
  • Podcast
  • Blog
  • Pelanggan
  • Hukum • Privasi
  • Keamanan
الْعَرَبيّة 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 adalah rangkaian aplikasi bisnis open source yang mencakup semua kebutuhan perusahaan Anda: CRM, eCommerce, akuntansi, inventaris, point of sale, manajemen project, dan seterusnya.

Mudah digunakan dan terintegrasi penuh pada saat yang sama adalah value proposition unik Odoo.

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