odoo / odoo/docker

Longpolling issue - Multiple Docker instances on server with multiple workers for each instance

Open
#359 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Dockerfile
Stars
1.2k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

I have multiple dockers installed on my server with each docker having multiple workers. The issue is my longpolling doesn`t work.

What should I change in my setup to make it work?

The image below shows all of the dockers running.
image

Below is my Nginx config file for one of the sites....

server {
	root /var/www/html;
	index index.html index.htm index.nginx-debian.html;
	server_name website.co.za www.website.co.za;

	location / {
		proxy_read_timeout 720s;
        proxy_connect_timeout 720s;
        proxy_send_timeout 720s;
		proxy_pass http://127.0.0.1:8069;
		proxy_redirect off;
		proxy_set_header Host $host;
		proxy_set_header X-Real-IP $remote_addr;
		proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
		proxy_set_header X-Forwarded-Proto $scheme;
	}

    listen [::]:443 ssl ipv6only=on; # managed by Certbot
    listen 443 ssl; # managed by Certbot
    ssl_certificate /etc/letsencrypt/live/www.website.co.za/fullchain.pem; # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/www.website.co.za/privkey.pem; # managed by Certbot
    include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot

    add_header Strict-Transport-Security "max-age=31536000" always; # managed by Certbot

}

server {
	listen 80;
	listen [::]:80;
	root /var/www/html;

	index index.html index.htm index.nginx-debian.html;
	server_name website.co.za www.website.co.za;

	location / {
		proxy_read_timeout 720s;
        proxy_connect_timeout 720s;
        proxy_send_timeout 720s;
		proxy_pass http://127.0.0.1:8069;
		proxy_redirect off;
		proxy_set_header Host $host;
		proxy_set_header X-Real-IP $remote_addr;
		proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
		proxy_set_header X-Forwarded-Proto $scheme;
	}
}

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the posted Nginx server block and the Docker setup containing multiple instances and workers. Trace how longpolling requests are routed for each site and compare that with the container and worker configuration. Done means identifying and documenting a setup change that makes longpolling work across the shown instances.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, nginx
Domain
infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.