Technical mailing list archives

technical@mail.odoo.com

Avatar

Odoo response during workers restart

by
Max
- 2019年06月16日 11時22分41秒
Let me give a short introduction.

Using Odoo 12.0.

I use nginx:

  upstream portal_backend {
      server odoo:8069 max_fails=0;
  }
    location / {
      proxy_pass http://portal_backend;

I see in my graylog collector the following sequence of error messages:

2019-05-24 16:40:45.885: 2019/05/24 13:40:45 [error] 377#377: *700494 upstream prematurely closed connection while reading response header from upstream
2019-05-24 16:40:45.894 Worker (19) unregistered
2019-05-24 16:40:45.956 Worker WorkerHTTP (33) alive


And my odoorpc client gets the following error:

File "/usr/lib/python2.7/urllib2.py", line 556, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 502: Bad Gateway

I am sure this error is caused by worker restart. 

Does anybody has an idea about this?