This question has been flagged
3 Replies
18734 Views

Hello. Newby here..

I have nginx proxy_pass directed to port 8069. Also another proxy pass for location /longpolling points to 8072. I think it's all fine on the nginx side. The problem is (I think) that longpolling is not working at all.

This is the output from firebug console:

POST https://example.com/longpolling/poll 502 Bad Gateway 2ms

I think my problem is the same as this guy's:

http://stackoverflow.com/questions/30161575/odoo-on-debian-longpolling-port-is-never-used-opened

I can telnet to 8069 but not to 8072.

$ telnet 127.0.0.1 8072

Trying 127.0.0.1...

telnet: Unable to connect to remote host: Connection refused

Nobody responded to him and I don't really understand his own answer. This package 'psycogreen' I already had installed.

I pasted my odoo-server.conf file contents here: http://pastebin.com/rSKaLxSV

Avatar
Discard
Best Answer

Use workers with a non zero value, for example 4. Your current value is 0

This will create a longpolling process on port 8072..


Avatar
Discard
Author

That doesn't work.. I'm still getting 502 :(

Best Answer

Maybe you fixed it already, but seeing i have been looking for an answer and found a fix i'll post it.
This made my Odoo 10 Enterprise installation work again:


1. Install the Python dependencies with the following command:
sudo apt-get install python-dateutil python-docutils python-feedparser python-jinja2 python-ldap python-libxslt1 python-lxml python-mako python-mock python-openid python-psycopg2 python-psutil python-pybabel python-pychart python-pydot python-pyparsing python-reportlab python-simplejson python-tz python-unittest2 python-vatnumber python-vobject python-webdav python-werkzeug python-xlwt python-yaml python-zsi poppler-utils python-pip python-pypdf python-passlib python-decorator gcc python-dev mc bzr python-setuptools python-markupsafe python-reportlab-accel python-zsi python-yaml python-argparse python-openssl python-egenix-mxdatetime python-usb python-serial lptools make python-pydot python-psutil python-paramiko poppler-utils python-pdftools antiword python-requests python-xlsxwriter python-suds python-psycogreen python-ofxparse python-gevent .

(Credits: https://www.getopenerp.com/install-odoo-10-on-ubuntu-16-04/ ).

2. Make sure in your config you have workers = x 
X should be a number > 0


3. If you are running behind a reverse proxy (apache / nginx), make sure your config file has the following line:
proxy_mode = True


Hope this helps others who are having a similar issue

Avatar
Discard