we use odoo 12 (local version) since 1,5 years now.
since some weeks users get disconnect/reconnected Messages about 5-8 times per day.
Server (odoo and DB) runs on a VM with:
8 Cores
32GB RAM
Number of Sale-Orders in System: about 400000
we alreay found some threads regarding this topic but only solution there was to increase workers.
Odoo will be used by about 16 people (most time working in the erp sales/stock).
we already increased workers to 17 but still some disconnects occure during the day.
at this times we do not see any errors in odoo/nginx/postgres logs.
while monitoring the PG-Activity we sometimes see Messages like:
158806 odoonewDB 150854 odoo 52/45391 AccessShareLock Yes 2020-10-21 08:23:48+02 SELECT "printing_job"."id" as "id","printing_job"."name" as "name","printing_job"."active" as "active","printing_job"."job_id_cups" as "job_id_cups","printing_job"."printer_id" as "printer_id","printing_job"."time_at_processing" as "time_at_processin
158608 odoonewDB 161168 odoo 13/54879 AccessShareLock Yes 2020-10-21 08:26:16+02 SELECT "product_template"."id" as "id","product_template"."uom_id" as "uom_id","product_template"."list_price" as "list_price","product_template"."responsible_id" as "responsible_id","product_template"."expense_policy" as "expense_policy","product_te
Do you have nginx/apace configured?
nginx is configured see config below
we alreay tried your nginx settings but still same problem.
sometimes now we see errors like:
/web/dataset/call_kw/product.pricelist.item/read: Invalid JSON data: 'nrpc":"2.0","method":"call","params":{"args":[[9931049],["order_id"....
if users work by direct odoo access http://XX.XX.XX.XX:8089 it workjs without any errors.
full error Message:
nrpc":"2.0","method":"call","params":{"args":[[9931049],["order_id","order_date_ref","invoice_date","invoice_ids","product_id","name","order_partner_id","product_uom_qty","product_uom","vk_price","discount_one","discount_two","price_unit","price_subtotal","contribution_margin","sale_price_ref"]],"model":"sale.order.line","method":"read","kwargs":{"context":{"tz":"Europe/Vienna","lang":"de_DE","uid":134}}},"id":113049970}e_end","fixed_price","brutto_price","price_info","product_id","applied_on","customer_id","supplier_id","condition_group_id","group_cond","article_cond","main_price"]],"model":"product.pricelist.item","method":"read","kwargs":{"context":{"tz":"Europe/Vienna","lang":"de_DE","uid":134,"default_product_id":388802,"default_applied_on":"0_product_variant","default_compute_price":"fixed"}}},"id":831912066}
/web/dataset/call_kw/product.pricelist.item/read: Invalid JSON data: 'nrpc":"2.0","method":"call","params":{"args":[[9931049],["order_id","order_date_ref","invoice_date","invoice_ids","product_id","name","order_partner_id","product_uom_qty","product_uom","vk_price","discount_one","discount_two","price_unit","price_subtotal","contribution_margin","sale_price_ref"]],"model":"sale.order.line","method":"read","kwargs":{"context":{"tz":"Europe/Vienna","lang":"de_DE","uid":134}}},"id":113049970}e_end","fixed_price","brutto_price","price_info","product_id","applied_on","customer_id","supplier_id","condition_group_id","group_cond","article_cond","main_price"]],"model":"product.pricelist.item","method":"read","kwargs":{"context":{"tz":"Europe/Vienna","lang":"de_DE","uid":134,"default_product_id":388802,"default_applied_on":"0_product_variant","default_compute_price":"fixed"}}},"id":831912066}'