listen = 0.0.0.0:8035 should be set according to ip, I guess

2015-04-08 17:45 GMT+02:00 Fabyc <[email protected]>:
> On Wednesday, April 8, 2015 at 10:31:10 AM UTC-5, Giovanni wrote:
>>
>> Just wondering, could you try using a 'fixed' ip in your trytond.conf
>> rather
>> than 0.0.0.0 ?
>
>
> I tried fixed ip and it doesn't work. For example 192.168.10.100:8035 (mi
> client ip). I got this error:
>
> Traceback (most recent call last):
>   File "server/bin/trytond", line 80, in <module>
>     server.TrytonServer(options).run()
>   File "/home/stt/.virtualenvs/trytond35/server/trytond/server.py", line 77,
> in run
>     self.start_servers()
>   File "/home/stt/.virtualenvs/trytond35/server/trytond/server.py", line
> 190, in start_servers
>     self.jsonrpcd.append(JSONRPCDaemon(hostname, port, ssl))
>   File
> "/home/stt/.virtualenvs/trytond35/server/trytond/protocols/jsonrpc.py", line
> 394, in __init__
>     self.server = server_class((interface, port), handler_class, 0)
>   File
> "/home/stt/.virtualenvs/trytond35/server/trytond/protocols/jsonrpc.py", line
> 369, in __init__
>     HandlerClass, logRequests)
>   File
> "/home/stt/.virtualenvs/trytond35/server/trytond/protocols/jsonrpc.py", line
> 329, in __init__
>     bind_and_activate)
>   File "/usr/lib/python2.7/SocketServer.py", line 419, in __init__
>     self.server_bind()
>   File
> "/home/stt/.virtualenvs/trytond35/server/trytond/protocols/jsonrpc.py", line
> 358, 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 99] Cannot assign requested address
>
>
>
> It works when I use 192.168.10.0:8035
>
>
>>
>> And post the jsonrpc section of your configuration as well ?
>
>
> This is the jsonrpcsection of my config file:
>
> [jsonrpc]
> # Settings for the JSON-RPC network interface
>
> # The IP/host and port number of the interface
> #listen = localhost:8000
> listen = 0.0.0.0:8035
> # Listen on all interfaces (IPv4 and IPv6)
> #listen = 0.0.0.0:8000,*:8000
>
> # The hostname for this interface
> #hostname =
>
> # The root path to retrieve data for GET requests
> #data = jsondata
>
>
>>
>> Jean Cavallo
>> Coopengo

Reply via email to