how to debug a client-server connection

100 views
Skip to first unread message

lists.j...@symetrie.com

unread,
Jul 13, 2017, 8:52:39 AM7/13/17
to try...@googlegroups.com
Hi,


I used the 4.2 mac client with my server without any pb.
I upgraded to 4.4, installed the 4.4 mac client.
Since this, I cannot connect (the client doesn’t see any connection, hence no db, in Profiles).

The strange point is that sao works correctly on this server: working from the browser through sao is possible.
The mac client works well with a 4.4 trytond running on localhost.

Is there a way to debug the connection problem with this 4.4 mac client ? for instance, enable a log file of his attempts to communicate ?

I already tried to clean up the known_hosts file.
I tried to give the server ip instead of the host name too.
telnet myserver 8000 shows a connection for a few seconds (no reply to ‘GET /‘).

Jean-Christophe Michel

Sergi Almacellas Abellana

unread,
Jul 13, 2017, 9:02:45 AM7/13/17
to try...@googlegroups.com
El 13/07/17 a les 14:52, lists.j...@symetrie.com ha escrit:
> Hi,
>
>
> I used the 4.2 mac client with my server without any pb.
> I upgraded to 4.4, installed the 4.4 mac client.
> Since this, I cannot connect (the client doesn’t see any connection, hence no db, in Profiles).
>
> The strange point is that sao works correctly on this server: working from the browser through sao is possible.
> The mac client works well with a 4.4 trytond running on localhost.
>
> Is there a way to debug the connection problem with this 4.4 mac client ? for instance, enable a log file of his attempts to communicate ?

You can lunch the client with --debug and --verbose flags to see what's
happing.

The same options are also avialble on the server.

Are you sure the server is listening to the ip you are accessing?
There is any firewall blocking the comunication? Maybe the mac client is
blocked by some firewall on your host.

Hope it helps.

--
Sergi Almacellas Abellana
www.koolpi.com
Twitter: @pokoli_srk

Dominique Chabord

unread,
Jul 13, 2017, 9:09:31 AM7/13/17
to tryton
2017-07-13 14:52 GMT+02:00 lists.j...@symetrie.com
<lists.j...@symetrie.com>:

>
> The strange point is that sao works correctly on this server: working from the browser through sao is possible.
> The mac client works well with a 4.4 trytond running on localhost.

Tryton client demands official certificates to connect to ssl else it
blocks with no warning.




--
Dominique Chabord - SISalp
Logiciel libre pour l'entreprise Tryton et open-source Odoo, OpenERP
18 avenue Beauregard 74960 Cran Gevrier
145A rue Alexandre Borrely 83000 Toulon
tel(repondeur) +33(0)950274960 fax +33(0)955274960 mob +33(0)622616438
http://sisalp.fr
http://openerp-online.fr
https://twitter.com/SISalp l'actualité de vos services en temps réel.

lists.j...@symetrie.com

unread,
Jul 14, 2017, 5:26:22 AM7/14/17
to try...@googlegroups.com
Hi Dominique,


Le 13 juil. 2017 à 15:09, Dominique Chabord <dominiqu...@sisalp.org> a écrit :
> 2017-07-13 14:52 GMT+02:00 lists.j...@symetrie.com
> <lists.j...@symetrie.com>:
>
>>
>> The strange point is that sao works correctly on this server: working from the browser through sao is possible.
>> The mac client works well with a 4.4 trytond running on localhost.
>
> Tryton client demands official certificates to connect to ssl else it
> blocks with no warning.

Thanks, that’s the point. I have a cacert.org certificate but Tryton client maybe doesn’t ask the MacOs Keychain for the root certificate.
Either a warning should be emitted by the client, or this need be officially stated on the tryton website...


Jean-Christophe Michel

Cédric Krier

unread,
Jul 14, 2017, 6:05:13 AM7/14/17
to try...@googlegroups.com
You can configure your own CA to use by the client:
http://doc.tryton.org/4.4/tryton/doc/usage.html#configuration-file

Normally, in verbose mode, there should be a error log displayed in case
of SSL error.
But I agree that we should show more information to the user:
https://bugs.tryton.org/issue6642

--
Cédric Krier - B2CK SPRL
Email/Jabber: cedric...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

lists.j...@symetrie.com

unread,
Jul 14, 2017, 6:08:22 AM7/14/17
to try...@googlegroups.com
Hi Cedric,
I was using the compiled client, that’s why I didn’t have a log.
I’ll try with tryton source to see the log and contribute if I can.

Jean-Christophe Michel

Cédric Krier

unread,
Jul 14, 2017, 6:50:05 AM7/14/17
to try...@googlegroups.com
You can still pass arguments to the compiled client.

lists.j...@symetrie.com

unread,
Jul 14, 2017, 10:38:15 AM7/14/17
to try...@googlegroups.com
Hi Cedric,

Le 14 juil. 2017 à 12:48, Cédric Krier <cedric...@b2ck.com> a écrit :
> You can still pass arguments to the compiled client.

Didn’t think I could. So I tried.

~$ /Applications/Tryton.app/Contents/MacOS/tryton --verbose -l DEBUG -d

INFO:tryton.rpc:common.server.version(None, None)
ERROR:tryton.rpc:[Errno 54] Connection reset by peer

This error is not very clear :/

I finally solved this connection pb after adding intermediate certificate on top of .config/tryton/4.4/ca_certs file
and deleting again .config/tryton/4.4/known_hosts.
Good to use GTK client, often faster than sao in Firefox.

Thks

Jean-Christophe Michel

Reply all
Reply to author
Forward
0 new messages