etcd-io/etcdlabs

address already in use

zhaohansprt opened this issue · 2 comments

os: centos6 x64

weird thing !!!!
root@localhost etcdlabs]# netstat -ntlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:27017 0.0.0.0:* LISTEN 536/sshd
tcp 0 0 :::27017 :::* LISTEN 536/sshd

2017-06-22 02:57:20.580914 I | embed: listening for peers on http://localhost:2298
2017-06-22 02:57:20.581062 I | embed: listening for client requests on localhost:2297
2017-06-22 02:57:20.581105 I | embed: stopping listening for client requests on 127.0.0.1:2297
2017-06-22 02:57:20.581231 I | embed: listening for peers on http://localhost:2290
2017-06-22 02:57:20.581352 I | embed: listening for client requests on localhost:2289
2017-06-22 02:57:20.581406 I | embed: stopping listening for client requests on 127.0.0.1:2289
2017-06-22 02:57:20.581650 I | embed: listening for peers on http://localhost:2292
2017-06-22 02:57:20.581748 I | embed: listening for client requests on localhost:2291
2017-06-22 02:57:20.581784 I | embed: stopping listening for client requests on 127.0.0.1:2291
2017-06-22 02:57:20.581890 I | embed: listening for peers on http://localhost:2294
2017-06-22 02:57:20.583698 I | embed: listening for peers on http://localhost:2296
2017-06-22 02:57:20.590379 I | embed: listening for client requests on localhost:2295
2017-06-22 02:57:20.590458 I | embed: stopping listening for client requests on 127.0.0.1:2295
2017-06-22 02:57:20.590530 I | embed: listening for client requests on localhost:2293
2017-06-22 02:57:20.590554 I | embed: stopping listening for client requests on 127.0.0.1:2293
F0622 02:57:20.590584 6012 main.go:51] listen tcp 127.0.0.1:2297: bind: address already in use

gyuho commented

Works for me? Seems like your local machine is already using 2297 port?

Yes ! i tryed on windows,locally not seen this error ,but for my vps the 2397, 2297 ,38897 (changed) both didn't work