Error initializing listener of type tcp: listen tcp 127.0.0.1:8200: bind: address already in use

416 views
Skip to first unread message

Bharath Channakeshava

unread,
Jan 26, 2017, 2:38:22 AM1/26/17
to Vault
Hi,

I am running into the following error message (and subsequent exit) when I run vault container:
"Error initializing listener of type tcp: listen tcp 127.0.0.1:8200: bind: address already in use"

I am pretty sure I do not have any anything on this port, so wondering what I am missing...

Further information:

docker run -d --net=host -v /vault/config:/vault/config --cap-add=IPC_LOCK vault server -config=/vault/config/vault.conf.hcl

$ docker logs 7c3c70901c1b
Vault v0.6.4 ('f4adc7fa960ed8e828f94bc6785bcdbae8d1b263')
Error initializing listener of type tcp: listen tcp 127.0.0.1:8200: bind: address already in use

$ docker ps -a
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS                      PORTS               NAMES
7c3c70901c1b        vault               "docker-entrypoint.sh"   12 seconds ago      Exited (1) 12 seconds ago                       dreamy_meninsky
1176d8b65288        consul              "docker-entrypoint.sh"   2 hours ago         Up 2 hours                                      consul

$ cat /vault/config/vault.conf.hcl 
backend "consul" {
  address = "a.x.y.z:8500"
  path = "vault"
}

listener "tcp" {
 tls_disable = 1
}

$ netstat -antl
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State      
tcp        0      0 127.0.0.1:6379          0.0.0.0:*               LISTEN     
tcp        0      0 a.x.y.z:8300       0.0.0.0:*               LISTEN     
tcp        0      0 a.x.y.z:8301       0.0.0.0:*               LISTEN     
tcp        0      0 a.x.y.z:8302       0.0.0.0:*               LISTEN     
tcp        0      0 a.x.y.z:8400       0.0.0.0:*               LISTEN     
tcp        0      0 a.x.y.z:8500       0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN     
tcp        0      0 a.x.y.z:8600       0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:8888            0.0.0.0:*               LISTEN     
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:24224           0.0.0.0:*               LISTEN     
tcp        0      0 127.0.0.1:24230         0.0.0.0:*               LISTEN     
tcp        0      0 a.x.y.z:43202      10.193.37.66:8301       TIME_WAIT  
tcp        0      0 a.x.y.z:8301       10.193.37.66:54384      TIME_WAIT  
tcp        0      0 a.x.y.z:37174      10.193.37.66:8300       ESTABLISHED
tcp        0      0 a.x.y.z:8300       10.193.37.66:41736      ESTABLISHED
tcp        0      0 a.x.y.z:22         10.193.37.33:40824      ESTABLISHED
tcp        0      0 a.x.y.z:8300       10.193.37.66:41738      ESTABLISHED
Reply all
Reply to author
Forward
0 new messages