weedfs getsockopt: connection timed out

启动master

weed master -ip 10.191.197.133 -mdir /namenode -ip.bind 10.191.197.133
I0809 16:53:51  7721 file_util.go:20] Folder /namenode Permission: -rwxr-xr-x
I0809 16:53:51  7721 master_server.go:59] Volume Size Limit is 30000 MB
I0809 16:53:51  7721 master.go:69] Start Seaweed Master 0.70 at 10.191.197.133:9333
I0809 16:53:51  7721 raft_server.go:103] Old conf,log,snapshot should have been removed.
I0809 16:54:20  7721 master_server.go:89] [ 10.191.197.133:9333 ] 10.191.197.133:9333 becomes leader.
I0809 16:54:21  7721 node.go:208] topo adds child DefaultDataCenter
I0809 16:54:21  7721 node.go:208] topo:DefaultDataCenter adds child DefaultRack
I0809 16:54:21  7721 node.go:208] topo:DefaultDataCenter:DefaultRack adds child 10.91.197.158:8100
I0809 16:54:21  7721 node.go:208] topo:DefaultDataCenter:DefaultRack adds child 10.91.197.119:8200
I0809 16:56:39  7721 volume_growth.go:206] Failed to assign volume 7 to [Node:topo:DefaultDataCenter:DefaultRack:10.91.197.119:8200, volumes:map[], Ip:10.91.197.119, Port:8200, PublicUrl:10.91.197.119:8200, Dead:false] error Post http://10.91.197.119:8200/admin/assign_volume: dial tcp 10.91.197.119:8200: getsockopt: connection timed out

启动两个volume

nerc@svr1:~$ weed volume -dir /datanode -mserver 10.191.197.133:9333 -max 100 -ip 10.91.197.158 -port 8100
I0809 16:49:00  1944 file_util.go:20] Folder /datanode Permission: -rwxr-xr-x
I0809 16:49:00  1944 store.go:227] Store started on dir: /datanode with 0 volumes max 100
I0809 16:49:00  1944 volume.go:138] Start Seaweed volume server 0.70 at 0.0.0.0:8100
I0809 16:49:00  1944 volume_server.go:73] Volume server bootstraps with master 10.191.197.133:9333
I0809 16:52:31  1944 store.go:48] Reset master 10.191.197.133:9333 from: [10.191.197.133:9333 10.191.197.133:9333]
I0809 16:54:21  1944 volume_server.go:85] Volume Server Connected with master at 10.191.197.133:9333
nerc@svr2:/$ weed volume -dir /datanode -mserver 10.191.197.133:9333 -max 100 -ip 10.91.197.119 -port 8200
I0809 16:49:03 18927 file_util.go:20] Folder /datanode Permission: -rwxr-xr-x
I0809 16:49:03 18927 store.go:227] Store started on dir: /datanode with 0 volumes max 100
I0809 16:49:03 18927 volume.go:138] Start Seaweed volume server 0.70 at 0.0.0.0:8200
I0809 16:49:03 18927 volume_server.go:73] Volume server bootstraps with master 10.191.197.133:9333
I0809 16:52:37 18927 store.go:48] Reset master 10.191.197.133:9333 from: [10.191.197.133:9333 10.191.197.133:9333]
I0809 16:54:21 18927 volume_server.go:85] Volume Server Connected with master at 10.191.197.133:9333

尝试在另一台机器运行CURL

root@cubieboard4:~# curl -X POST http://10.191.197.133:9333/dir/assign
{"error":"Cannot grow volume group! Failed to assign 7: Post http://10.91.197.119:8200/admin/assign_volume: dial tcp 10.91.197.119:8200: getsockopt: connection timed out"}

报错信息

I0809 16:56:39  7721 volume_growth.go:206] Failed to assign volume 7 to [Node:topo:DefaultDataCenter:DefaultRack:10.91.197.119:8200, volumes:map[], Ip:10.91.197.119, Port:8200, PublicUrl:10.91.197.119:8200, Dead:false] error Post http://10.91.197.119:8200/admin/assign_volume: dial tcp 10.91.197.119:8200: getsockopt: connection timed out

133 ubuntu 16.04 64
158 119 ubuntu14.04 64

 

通过每台机器的排查发现是master机无法向外通信,原因不明,继续排查。
但通过换一台机器问题解决

你可能感兴趣的:(weedfs getsockopt: connection timed out)