Skip to Content
Menu
This question has been flagged

This happens randomly after seconds, hours or even days. Restarting odoo, nginx and postgres services doesn't fix it.


My Odoo log says:

2022-03-01 17:47:58,573 3273 INFO odoo longpolling: 192.168.x.y - - [2022-03-01 17:47:58] "POST /longpolling/poll HTTP/1.0" 500 140 71.253036


Ningx log indicates:

2022/03/01 12:48:06 [error] 2836#2836: *106422 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.x.y, server: ..., request: "POST /longpolling/poll HTTP/1.1", upstream: "http://127.0.0.1:8072/longpolling/poll", host: "...", referrer: ".../web"


And PostgreSQL log indicates:

2022-03-01 12:53:13.212 -05 [3442] odoo@odoo ERROR:  40001: could not serialize access due to concurrent update
2022-03-01 12:53:13.212 -05 [3442] odoo@odoo LOCATION: ExecUpdate, nodeModifyTable.c:1442
2022-03-01 12:53:13.212 -05 [3442] odoo@odoo STATEMENT: UPDATE "bus_presence" SET "last_poll"='2022-03-01 17:53:13',"last_presence"='2022-03-01 17:52:28.073075' WHERE id IN (50)


Odoo is running on Ubuntu 20.04 with 16 GB of RAM and 4 vCPU.


I've configured 5 workers, but I've tried with 0 and 1 and the result is the same - although with 1 worker odoo behaves more stable.


I've also tried changing multi_accept values on nginx with the same results.


Any idea?

Avatar
Discard
Author

Just in case, this is about Odoo 14 Community Edition.

Hi,
Did you tried to access with difference browser, or, clearing the cache?

Author Best Answer

Thank you for your answer Altela,

I've tried all this:

  • Only one open session open per user (that is, in one tab)

  • Tried Chrome, Firefox and Edge

  • Deleting cookies

But the issue persist :S


Avatar
Discard

The same issue in my case

2022/03/01 12:48:06 [error] 2836#2836: *106422 connect() failed (111: Connection refused)

Did you set up the firewall (ufw) of linux to accept port 8069 and 8072 (longpolling) ?

Author

Yup, UFW is correctly configured and both ports are open (besides, this issue happens randomically)

Related Posts Replies Views Activity
0
Aug 22
1297
0
Nov 24
79
0
Jun 21
1709
0
Jul 21
3520
0
Mar 24
673