anybox / anybox.recipe.odoo

Buildout recipe for Odoo >=8. For older versions please use anybox.recipe.openerp
http://docs.anybox.fr/anybox.recipe.odoo/current/
GNU Affero General Public License v3.0
25 stars 63 forks source link

start_odoo: Port already in use #98

Closed thomaspaulb closed 7 years ago

thomaspaulb commented 7 years ago

I have below file on my localhost, but am getting the error that port is already in use, even though it's not. When I run Odoo in my "old" way, it works, and it also doesn't matter which port I choose.

I have modified Odoo source to print out when it's trying to bind to a port, and I notice that it's trying to bind twice. The first time works, but the second time fails.

Is there something wrong in my buildout.cfg that makes Odoo to bind to the port twice?

[buildout]
parts = odoo
find-links =
    http://download.gna.org/pychart/
    http://github.com/aeroo/aeroolib/tarball/master#egg=aeroolib
versions = versions
extensions = gp.vcsdevelop
newest = false
eggs-directory=/home/antiflu/Code/buildout/global-eggs

[odoo]
release = 8.0
recipe = anybox.recipe.odoo:server
eggs =
    gevent
    inouk.recipe.odoo_cmd

version = path /opt/odoo8

merges = 

[versions]

[odoo]
eggs += pyserial

vcs-clear-retry = True

options.xmlrpc_port = 11069
options.logfile = /var/log/odoo/odoo8.log
options.workers = 2
options.db_host = localhost
options.db_name = testing
options.db_port = 5432
options.db_user = odoo8
options.db_password = odoo8
options.xmlrpc = True
options.xmlrpcs = False
options.netrpc = False
options.without_demo = True
options.limit_time_cpu = 36000
options.limit_time_real = 72000
options.longpolling_port = 8170
options.log_handler = :DEBUG,werkzeug:CRITICAL,openerp.service.server:INFO
options.log_level = debug
options.lang = nl_NL
thomaspaulb commented 7 years ago

Right, I solved my own issue again, although I still don't understand what's going on...

When I remove options.workers = 2 it works. But I have that setting defined on my server as well, and there it gives no problems.