New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Longpolling problems with multiple workers #283
Comments
@fractalf In your Docker container, you need to make sure you have these global dependencies (refers to psycogreen and gevent:
Next your odoo.conf as below
Make sure you have proxy_mode = true set!! Next your NGINX configuration.
|
I'm having the same problem just running Odoo in a docker container without any proxying. Is there a config that allows multiple workers when connecting directly to the docker port? |
@codeagencybe Thanks a lot for you input. Would you also care to share your |
I managed to get it working, and I think I discovered a very weird thing (bug? unexpected behaviour?) First, the reason it didn't work for me is because I was starting odoo like this (from entrypoint.sh) ..
exec odoo --dev=all "$@" "${DB_ARGS[@]}"
.. Note the optional Removing this argument and just using the default, and thing works.. ..
exec odoo "$@" "${DB_ARGS[@]}"
.. ...will file a bug report for this I spend a whole day debugging this silly bug :/ Thanks to https://github.com/idazco/odoo-docker-ez (which works) I was able to narrow it down to this. |
@codeagencybe I have multiple dockers installed on my server. Do you think your solution will still work? Also what is the $serviceName variable in your Nginx config? Below is my Nginx config file for one of the sites....
|
Has anyone managed to get the longpolling set up correctly witn Odoo 12 running in docker with multiple workers?
I get this error in the log:
This is the actual XHR call (formated as a curl to get all the data) that just hangs after the error
Searched high and low for a solution and tried a lot, but I'm stuck..
odoo.conf
docker-compose.yml
The text was updated successfully, but these errors were encountered: