Could you please give us more information about your issue? It should not be necessary to reinstall
gevent nor reconfigure the
longpolling_port value. Also, as you can see in the
/opt/bitnami/apps/odoo/conf/httpd-app.conf file, the required redirections for
longpolling are already configured.
Apart from that, according to the Odoo 12 official docs linked below, Odoo won't be able to control workers when running on WSGI mode as we do in our configuration.
However the WSGI server will only expose the main HTTP endpoint for the web client, website and webservice API. Because Odoo does not control the creation of workers anymore it can not setup cron or livechat workers
I did the next steps to verify that longpolling is working:
$ sudo netstat -tulpn | grep 8072
tcp 0 0 0.0.0.0:8072 0.0.0.0:* LISTEN 4867/python3
sudo /opt/bitnami/ctlscript.sh restart
- Checked the
/opt/bitnami/apps/odoo/log/production.log log file doesn't show any issue starting longpolling
2019-03-18 13:01:44,671 5916 INFO ? odoo: Odoo version 12.0-20190218
2019-03-18 13:01:44,672 5916 INFO ? odoo: Using configuration file at /opt/bitnami/apps/odoo/conf/odoo-server.conf
2019-03-18 13:01:44,672 5916 INFO ? odoo: addons paths: ['/opt/bitnami/apps/odoo/data/addons/12.0', '/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190218-py3.7.egg/odoo/addons']
2019-03-18 13:01:44,672 5916 INFO ? odoo: database: firstname.lastname@example.org:5432
2019-03-18 13:01:45,081 5916 INFO ? odoo.addons.base.models.ir_actions_report: You need Wkhtmltopdf to print a pdf version of the reports.
2019-03-18 13:01:45,380 5916 INFO ? odoo.service.server: Evented Service (longpolling) running on 0.0.0.0:8072
- Run curl to the
/longpolling/poll URI. As you can see in the message, the service is up, but the request was invalid. I just did it for checking purposes
$ curl -i 127.0.0.1:8072/longpolling/poll
HTTP/1.1 400 BAD REQUEST
Date: Mon, 18 Mar 2019 12:50:19 GMT
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<title>400 Bad Request</title>
<p><function BusController.poll at 0x7f8e123d19d8>, /longpolling/poll: Function declared as capable of handling request of type 'json' but called with a request of type 'http'</p>
Could you please redo your changes and check if you get the same reply using curl in your server? Remember to restart services for changes to take effect.