首页 > 解决方案 > SeaweedFS 超时异常

问题描述

我正在搜索文件存储库以存储我的大数据。所以我找到了 SeaweedFS,它看起来非常适合我的项目。我在本地主机上使用 Windows bash 进行测试,但由于超时问题而出现错误。

命令

./weed server -master.port=9333 -volume.port=8080 -dir="./data"

日志

I0513 18:03:48 12524 file_util.go:20] Folder ./data Permission: -rwxrwxrwx
I0513 18:03:48 12524 master.go:150] current: 169.254.255.169:9555 peers:169.254.255.169:9555
I0513 18:03:48 12524 file_util.go:20] Folder ./data Permission: -rwxrwxrwx
I0513 18:03:48 12524 master_server.go:108] Volume Size Limit is 30000 MB
I0513 18:03:48 12524 master_server.go:196] adminScripts:
I0513 18:03:48 12524 master.go:113] Start Seaweed Master 30GB 1.77 at 0.0.0.0:9555
I0513 18:03:48 12524 disk_location.go:117] Store started on dir: ./data with 0 volumes max 7
I0513 18:03:48 12524 disk_location.go:120] Store started on dir: ./data with 0 ec shards
I0513 18:03:48 12524 volume_grpc_client_to_master.go:27] Volume server start with seed master nodes: [169.254.255.169:9555]
I0513 18:03:48 12524 raft_server.go:47] Starting RaftServer with 169.254.255.169:9555
I0513 18:03:48 12524 raft_server.go:51] Peers Change: [] => [169.254.255.169:9555]
I0513 18:03:48 12524 volume.go:279] Start Seaweed volume server 30GB 1.77 at 0.0.0.0:5001
I0513 18:03:48 12524 raft_server.go:74] Initializing new cluster
I0513 18:03:48 12524 raft_server.go:87] current cluster leader: 169.254.255.169:9555
I0513 18:03:48 12524 master_server.go:151] [ 169.254.255.169:9555 ] I am the leader!
I0513 18:03:48 12524 master.go:137] Start Seaweed Master 30GB 1.77 grpc server at 0.0.0.0:19555
I0513 18:04:08 12524 volume_grpc_client_to_master.go:68] SendHeartbeat to 169.254.255.169:9555: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 169.254.255.169:19555: i/o timeout"
I0513 18:04:08 12524 volume_grpc_client_to_master.go:48] heartbeat error: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 169.254.255.169:19555: i/o timeout"
I0513 18:04:08 12524 masterclient.go:75] master failed to keep connected to 169.254.255.169:9555: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 169.254.255.169:19555: i/o timeout"
I0513 18:04:08 12524 masterclient.go:118] master failed to connect with master 169.254.255.169:9555: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 169.254.255.169:19555: i/o timeout"
I0513 18:04:09 12524 masterclient.go:75] master failed to keep connected to 169.254.255.169:9555: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 169.254.255.169:19555: i/o timeout"
I0513 18:04:09 12524 masterclient.go:118] master failed to connect with master 169.254.255.169:9555: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 169.254.255.169:19555: i/o timeout"
I0513 18:04:29 12524 masterclient.go:75] master failed to keep connected to 169.254.255.169:9555: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 169.254.255.169:19555: i/o timeout"
I0513 18:04:29 12524 masterclient.go:118] master failed to connect with master 169.254.255.169:9555: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 169.254.255.169:19555: i/o timeout"
I0513 18:04:30 12524 masterclient.go:75] master failed to keep connected to 169.254.255.169:9555: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 169.254.255.169:19555: i/o timeout"
I0513 18:04:30 12524 masterclient.go:118] master failed to connect with master 169.254.255.169:9555: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 169.254.255.169:19555: i/o timeout"
I0513 18:04:33 12524 volume_grpc_client_to_master.go:68] SendHeartbeat to 169.254.255.169:9555: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 169.254.255.169:19555: i/o timeout"
I0513 18:04:33 12524 volume_grpc_client_to_master.go:48] heartbeat error: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 169.254.255.169:19555: i/o timeout"

我在互联网上找不到任何解决方案。

标签: timeoutweed-fsseaweedfs

解决方案


删除“./data”文件夹下的所有内容并重新启动。


推荐阅读