On Mon, Dec 16, 2013 at 9:22 PM, Cédric Krier <[email protected]> wrote:
> On 16/12/13 20:10 +0100, Mark van Deursen wrote: > > On Mon, Dec 16, 2013 at 7:44 PM, Cédric Krier <[email protected]> > wrote: > > > > > On 16/12/13 19:27 +0100, Mark van Deursen wrote: > > > > Thanks Axel but I still can't get it working. Maybe you or someone > else > > > can > > > > help me? > > > > > > > > I have the following setup: > > > > - Client : Tryton 3.0.1 OSX > > > > - Server : Ubuntu 13.04 on a virtual machine (Virtualbox setup with > > > vagrant) > > > > > > > > This file is part of Tryton. The COPYRIGHT file at the top level of > > > > #this repository contains the full copyright notices and license > terms. > > > > [options] > > > > > > > > # Activate the json-rpc protocol > > > > jsonrpc = *:8000 > > > > #ssl_jsonrpc = False > > > > > > This makes probably the server listening only on IPv6 and probably that > > > the connection between the client and the server is not IPv6 aware. > > > You must use: > > > > > > jsonrpc = *:8000,0.0.0.0:8000 > > > > > > Thanks but that doesn't seem to work. > > When changing the line to what you wrote I got the following error: > > Traceback (most recent call last): > > File "bin/trytond", line 111, in <module> > > trytond.server.TrytonServer(options).run() > > File "/home/vagrant/trytond/trytond/server.py", line 96, in run > > self.start_servers() > > File "/home/vagrant/trytond/trytond/server.py", line 204, in > start_servers > > CONFIG['ssl_jsonrpc'])) > > File "/home/vagrant/trytond/trytond/protocols/jsonrpc.py", line 372, in > > __init__ > > self.server = server_class((interface, port), handler_class, 0) > > File "/home/vagrant/trytond/trytond/protocols/jsonrpc.py", line 294, in > > __init__ > > bind_and_activate) > > File "/usr/lib/python2.7/SocketServer.py", line 419, in __init__ > > self.server_bind() > > File "/home/vagrant/trytond/trytond/protocols/jsonrpc.py", line 336, in > > server_bind > > SimpleJSONRPCServer.server_bind(self) > > File "/usr/lib/python2.7/SocketServer.py", line 430, in server_bind > > self.socket.bind(self.server_address) > > File "/usr/lib/python2.7/socket.py", line 224, in meth > > return getattr(self._sock,name)(*args) > > socket.error: [Errno 98] Address already in use > > > > I changed it to: > > jsonrpc = 0.0.0.0:8000 > > > > Now the server starts OK but I get the same error when I want to connect > > with the client. > > This means that the server host is IPv4 only. > So the problem is probably due to connection being blocked somewhere. > You should try first to connect to the server from the same host. > OK. Thanks. I'll have to see how I'm going to that. It's the server version of ubuntu so the GUI client isn't option. > > -- > Cédric Krier - B2CK SPRL > Email/Jabber: [email protected] > Tel: +32 472 54 46 59 > Website: http://www.b2ck.com/ >
