Could not connect to Server client error

238 views
Skip to first unread message

Adrian Herrera Montenegro

unread,
May 11, 2017, 3:15:06 PM5/11/17
to tryton
Hi all

I installed trytond 4.5 in Ubuntu 12.04.5 and apparently I initialized correctly the PostgreSQL database because I ran the following command successfully:

trytond-admin -c tryton.config -d tryton --all

This is what I have in my tryton.config file:

[database]
uri=postgresql;//tryton:try...@127.0.0.1

Then I started the server:

trytond -c etc/trytond.config -v

output:

5078 -1216570624 [2017-05-11 17:39:53,993] INFO trytond.config using etc/trytond.config as configuration files
5078 -1216570624 [2017-05-11 17:39:54,674] WARNING py.warnings /usr/local/lib/python2.7/dist-packages/relatorio-0.6.4-py2.7.egg/relatorio/templates/__init__.py:29: UserWarning: Unable to load plugin 'chart'
  warnings.warn("Unable to load plugin '%s'" % name)

5078 -1216570624 [2017-05-11 17:39:54,868] INFO trytond.modules ir:registering classes
5078 -1216570624 [2017-05-11 17:39:54,868] INFO trytond.modules res:registering classes
5078 -1216570624 [2017-05-11 17:39:54,869] INFO trytond.modules tests:registering classes
5078 -1216570624 [2017-05-11 17:39:54,891] INFO werkzeug  * Running on http://localhost:8000/ (Press CTRL+C to quit)

According to the last line, it is running in the port 8000.


I tried to connect with Tryton client v 4.4 installed in Windows 10 in a different computer but in the same network, but when I go to the Profile Editor,and try to connect to the server, I got a Could not connect to Server error message.

I have seen some older posts that describe the same scneario and same error, but I see they have a different output line when they start the service, they have something like this

[Wed May 21 13:28:02 2014] INFO:server:starting JSON-RPC protocol on *:8000

so, I don't have that JSON-RPC in my output, but I have the wekzeug * Running on http://localhost:8000/ output instead

If you have any idea what I can do to solve this, would be much appreciated,

Regards,
Adrian

Cédric Krier

unread,
May 11, 2017, 4:40:07 PM5/11/17
to tryton
On 2017-05-11 10:52, Adrian Herrera Montenegro wrote:
> Hi all
>
> I installed trytond 4.5 in Ubuntu 12.04.5 and apparently I initialized
> correctly the PostgreSQL database because I ran the following command
> successfully:
>
> I tried to connect with Tryton client v 4.4 installed in Windows 10 in a
> different computer but in the same network, but when I go to the Profile
> Editor,and try to connect to the server, I got a Could not connect to
> Server error message.

You must use the same series between the client and the server.
For the client 4.4, you must have a server 4.4.
Also version 4.5 of the server is the development branch, it is always
changing.

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

Sergi Almacellas Abellana

unread,
May 12, 2017, 3:21:05 AM5/12/17
to try...@googlegroups.com
El 11/05/17 a les 19:52, Adrian Herrera Montenegro ha escrit:
> so, I don't have that JSON-RPC in my output, but I have the *wekzeug *
> Running on http://localhost:8000/ *output instead
For newer versions (Since 4.0 IIRC) you have yo use

[web]
listen=0.0.0.0:8000

To make the server listen on all interfaces. Otherwise you will only be
able to connect from the same machine, as trytond by default only
listens to localhost.

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

Adrian Herrera Montenegro

unread,
May 15, 2017, 2:15:07 PM5/15/17
to tryton
I'm not trying to connect via web, I'm trying to connect from Tryton client installed in a different machine, although I'm testing via web just to make sure the server is reachable

One of the things I noticed is that I'm able to Telnet demo4.4.tryton.org, so I tried to Telnet my Tryton server instance without positive results, but that points that something is blocking the traffic from the server itself, I thought it was the firewall, so I deactivated ufw, but still I'm unable to connect.
I keep working on this trying different thins like trying to connect via web from the local machine, here is were I got hope, the server responded with a 400 error code. Now I'm going to try to connect from local instance of Tryton client, if the result is positive, I will work on the thing that is preventing a remote machine to connect to the server.

Sergi Almacellas Abellana

unread,
May 16, 2017, 3:14:37 AM5/16/17
to try...@googlegroups.com
El 15/05/17 a les 18:28, Adrian Herrera Montenegro ha escrit:
> I'm not trying to connect via web, I'm trying to connect from Tryton
> client installed in a different machine, although I'm testing via web
> just to make sure the server is reachable

This doesn't matter you have to apply the same configuration no mather
if you use gtk client or web client.
>
> One of the things I noticed is that I'm able to Telnet
> demo4.4.tryton.org, so I tried to Telnet my Tryton server instance
> without positive results, but that points that something is blocking the
> traffic from the server itself, I thought it was the firewall, so I
> deactivated ufw, but still I'm unable to connect.
> I keep working on this trying different thins like trying to connect via
> web from the local machine, here is were I got hope, the server
> responded with a 400 error code. Now I'm going to try to connect from
> local instance of Tryton client, if the result is positive, I will work
> on the thing that is preventing a remote machine to connect to the server.

As I explained before, that's because your server only listens to local
interface, so you are not able to connect from other machines. Changing
the configuration as already told will solve the issue.

P.S: Don't top post on this mailing list. See
http://groups.tryton.org/netiquette
Reply all
Reply to author
Forward
0 new messages