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
 

-- 
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/e57df171-d856-48d6-ae0a-30f24f1c4aee%40googlegroups.com.

Reply via email to