On Saturday, June 3, 2017 at 9:29:57 PM UTC+9, Dr. Praveen Bhatia wrote: > > > > On Saturday, June 3, 2017 at 6:35:07 PM UTC+9, Cédric Krier wrote: >> >> On 2017-06-03 02:10, Dr. Praveen Bhatia wrote: >> > If the global ip address on aws is say 111.222.333.444 and custom tcp >> ports >> > 8888-8890 are opened, is the following correct in the config file? >> > >> > listen=111.222.333.444:8889 OR listen=*:8889 >> >> Using * means all interface but using a specific IP is only for the >> interface with this IP. Using specific IP could be annoying if the IP >> change. >> >> > hostname=111.222.333.444 >> > root=~/mytryton >> > >> > Trytond start: >> > trytond -c /etc/trytond.conf & >> > >> > GIVES ERROR : Address already in use >> > >> > >> > Also, Is the correct Access from tryton client: >> > tryton -c /etc/trytond.conf -p 8889 -s 111.222.333.444 >> > >> > Is the above correct usage? >> >> I see nothing wrong here. >> >> > All combinations I try keep giving the error >> > "Address already in use" >> >> You have another process that is already using this address. >> You have to find it. >> I use this command to find it: >> >> $ netstat -lnp --inet >> >> > When I do: > sudo netstat -lnp --inet | grep 8889 > > I get null, so port 8889 is not being used and yet the "Address already > in use" error comes irrespective of the various ports that I try. > > The error that I get is > > > (tryton4.2) ubuntu@ip-172-30-0-215:~/Projects/tryton4.2$ trytond -c > /etc/trytond.conf & > [1] 14538 > (tryton4.2) ubuntu@ip-172-30-0-215:~/Projects/tryton4.2$ Traceback (most > recent call last): > File "/home/ubuntu/Envs/tryton4.2/bin/trytond", line 51, in <module> > use_reloader=options.dev) > File > "/home/ubuntu/Envs/tryton4.2/local/lib/python2.7/site-packages/werkzeug/serving.py", > > line 739, in run_simple > inner() > File > "/home/ubuntu/Envs/tryton4.2/local/lib/python2.7/site-packages/werkzeug/serving.py", > > line 699, in inner > fd=fd) > File > "/home/ubuntu/Envs/tryton4.2/local/lib/python2.7/site-packages/werkzeug/serving.py", > > line 587, in make_server > passthrough_errors, ssl_context, fd=fd) > File > "/home/ubuntu/Envs/tryton4.2/local/lib/python2.7/site-packages/werkzeug/serving.py", > > line 504, in __init__ > HTTPServer.__init__(self, (host, int(port)), handler) > File "/usr/lib/python2.7/SocketServer.py", line 419, in __init__ > self.server_bind() > File "/usr/lib/python2.7/BaseHTTPServer.py", line 108, in server_bind > SocketServer.TCPServer.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 >
On reboot I could get rid of this error. However, it seems to assign it to localhost port only and not the aws address 111.222.333.444:8888 When I try to connect from my PC by tryton client 111.222.333.444:8888 it is not able to connect to the server and hence find no list of databases..... So what am I doing wrong? The /etc/trytond.conf file has # Activate the json-rpc protocol #jsonrpc = localhost:8001 #ssl_jsonrpc = False listen=111.222.333.444:8888 hostname=111.222.333.444 root=~/db #jsonrpc=*:8889 -- You received this message because you are subscribed to the Google Groups "tryton" group. To view this discussion on the web visit https://groups.google.com/d/msgid/tryton/f4d47ef3-1381-4b41-a3f2-3d8ea77724f1%40googlegroups.com.
