I have a trytond instance running with sao through uwsgi and apache with the infrastructure design like this:
- apache server as local proxy based on hostname
- uwsgi server to manage trytond instance
- virtual-env for trytond and modules
- postgresql user with access to the db
When I connect to sao with any browser the custom.domain works fine, but when I tried to connect with tryton this doesn’t work. I think the issue is with apache but I’m not sure how to configure it correctly. BTW, I read [1] for config settings but I’m not sure if I need to add something to it.
Is you server return 3xx redirection status because the Tryton client does not follow them normally.
Also you should provide the log of the client when trying to connect (use --verbose option).
The only line with --verbose option when tryton tries to connect is
28115 139960185530112 [2018-08-16 21:44:18,362] INFO werkzeug ::ffff:45.35.107.32 - - [16/Aug/2018 21:44:18] “GET / HTTP/1.1” 302 -
When the connection is from sao works fine.
I only use wget and receive this:
Resolving domain.com (domain.com)… 74.76.x.x
Connecting… connected.
What I need to add for tryton works with custom domain (it works with IP and ports).
I was working on windows and have no idea how to see the log, I need to install it on a debian machine.
So, the log for the client is:
INFO:tryton.common.common:URL de comprobación: https://downloads.tryton.org/4.8/tryton-4.8.5.tar.gz
INFO:tryton.common.common:URL de comprobación: https://downloads.tryton.org/4.8/tryton-4.8.6.tar.gz
INFO:tryton.rpc:common.db.list()
INFO:tryton.rpc:common.server.version(None, None)
INFO:tryton.rpc:common.db.list()
INFO:tryton.rpc:common.server.version(None, None)
ERROR:tryton.rpc:timed out
I tried to configure it with nginx but is the same result, but if I use custom.domain:8000 with specific port it works.
In tryton client windows now I have the follow traceback:
Traceback (most recent call last):
File “tryton/gui/window/dblogin.py”, line 306, in refresh_databases_end
File “tryton/gui/window/dblogin.py”, line 276, in test_server_version
File “tryton/rpc.py”, line 58, in server_version
File “C:/msys32/mingw32/lib/python2.7/xmlrpclib.py”, line 1243, in call
File “tryton/jsonrpc.py”, line 285, in __request
File “C:/msys32/mingw32/lib/python2.7/xmlrpclib.py”, line 1283, in request
File “C:/msys32/mingw32/lib/python2.7/xmlrpclib.py”, line 1313, in single_request
File “C:/msys32/mingw32/lib/python2.7/httplib.py”, line 1121, in getresponse
File “C:/msys32/mingw32/lib/python2.7/httplib.py”, line 438, in begin
File “C:/msys32/mingw32/lib/python2.7/httplib.py”, line 402, in _read_status
BadStatusLine: ‘’