Trytond always listen on localhost:8000 instead of the value specified in config file

I start trytond like this:

./trytond --dev -d myerp_erp --logconf=/home/tryton/.local/lib/python3.7/site-packages/trytond/log.conf -c /etc/tryton/trytond.conf --verbose

I have this parameter in the config file:

[database]
uri = postgresql://myuser:mypwd@localhost:5432

[jsonrpc]
listen = 0.0.0.0:8000

But it listens to localhost:8000 and can’t reach it from other computers, and I can’t figure out why trytond doesn’t use the values specified in the config file.

Sat Aug 17 02:39:13 2019] INFO:werkzeug: * Running on http://localhost:8000/ (Press CTRL+C to quit)

EDIT: Reformulated my question.

It is not in the jsonrpc section but in web section that the listen must be set, see Configuration file for Tryton — trytond 5.3 documentation

1 Like

Ahhhh!

As you said, it’s in the web section.

[web]
0.0.0.0:8000

did the trick

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.