报错日志:
[root@wx seaweedfs]# docker-compose -f seaweedfs.yml logs volume
Attaching to seaweedfs_volume_1
volume_1 | I1206 03:22:31 1 config.go:28] Reading : Config File "security" Not Found in "[/ /root/.seaweedfs /etc/seaweedfs]"
volume_1 | I1206 03:22:31 1 file_util.go:19] Folder /data Permission: -rwxr-xr-x
volume_1 | I1206 03:22:31 1 volume_loading.go:90] loading index /data/5.idx to memory readonly false
volume_1 | I1206 03:22:31 1 volume_loading.go:90] loading index /data/3.idx to memory readonly false
volume_1 | I1206 03:22:31 1 volume_loading.go:90] loading index /data/7.idx to memory readonly false
volume_1 | I1206 03:22:31 1 volume_loading.go:90] loading index /data/6.idx to memory readonly false
volume_1 | I1206 03:22:31 1 volume_loading.go:90] loading index /data/2.idx to memory readonly false
volume_1 | I1206 03:22:31 1 volume_loading.go:90] loading index /data/4.idx to memory readonly false
volume_1 | I1206 03:22:31 1 volume_loading.go:90] loading index /data/1.idx to memory readonly false
volume_1 | I1206 03:22:31 1 disk_location.go:68] data file /data/6.dat, replicaPlacement=000 v=3 size=8 ttl=
volume_1 | I1206 03:22:31 1 disk_location.go:68] data file /data/7.dat, replicaPlacement=000 v=3 size=8 ttl=
volume_1 | I1206 03:22:31 1 disk_location.go:68] data file /data/5.dat, replicaPlacement=000 v=3 size=8 ttl=
volume_1 | I1206 03:22:31 1 disk_location.go:68] data file /data/3.dat, replicaPlacement=000 v=3 size=51272 ttl=
volume_1 | I1206 03:22:31 1 disk_location.go:68] data file /data/2.dat, replicaPlacement=000 v=3 size=227192 ttl=
volume_1 | I1206 03:22:31 1 disk_location.go:68] data file /data/1.dat, replicaPlacement=000 v=3 size=8 ttl=
volume_1 | I1206 03:22:31 1 disk_location.go:68] data file /data/4.dat, replicaPlacement=000 v=3 size=196088 ttl=
volume_1 | I1206 03:22:31 1 disk_location.go:109] Store started on dir: /data with 7 volumes max 15
volume_1 | I1206 03:22:31 1 disk_location.go:112] Store started on dir: /data with 0 ec shards
volume_1 | I1206 03:22:31 1 volume.go:162] Start Seaweed volume server 30GB 1.45 at 0.0.0.0:8080
volume_1 | I1206 03:22:31 1 volume_grpc_client_to_master.go:24] Volume server start with seed master nodes: [master:9333]
volume_1 | I1206 03:22:31 1 volume_grpc_client_to_master.go:68] Heartbeat to: master:9333
volume_1 | I1206 03:22:31 1 volume_grpc_client_to_master.go:45] heartbeat error: rpc error: code = Unknown desc = Raft Server not initialized!
volume_1 | I1206 03:22:36 1 volume_grpc_client_to_master.go:68] Heartbeat to: master:9333
volume_1 | I1206 03:22:36 1 volume_grpc_client_to_master.go:45] heartbeat error: rpc error: code = Unknown desc = Raft Server not initialized!
volume_1 | I1206 03:22:41 1 volume_grpc_client_to_master.go:68] Heartbeat to: master:9333
volume_1 | I1206 03:22:41 1 volume_grpc_client_to_master.go:45] heartbeat error: rpc error: code = Unknown desc = Raft Server not initialized!
volume_1 | I1206 03:22:46 1 volume_grpc_client_to_master.go:68] Heartbeat to: master:9333
volume_1 | I1206 03:22:46 1 volume_grpc_client_to_master.go:45] heartbeat error: rpc error: code = Unknown desc = Raft Server not initialized!
volume没办法连接到master的9333端口,试过重启volume没用,重启了下master就恢复正常了。
解决方法:
[root@wx seaweedfs]# docker-compose -f seaweedfs.yml restart master
Restarting seaweedfs_master_1 ... done
[root@wx seaweedfs]# docker-compose -f seaweedfs.yml logs volume
Attaching to seaweedfs_volume_1
volume_1 | I1206 03:22:31 1 config.go:28] Reading : Config File "security" Not Found in "[/ /root/.seaweedfs /etc/seaweedfs]"
volume_1 | I1206 03:22:31 1 file_util.go:19] Folder /data Permission: -rwxr-xr-x
volume_1 | I1206 03:22:31 1 volume_loading.go:90] loading index /data/5.idx to memory readonly false
volume_1 | I1206 03:22:31 1 volume_loading.go:90] loading index /data/3.idx to memory readonly false
volume_1 | I1206 03:22:31 1 volume_loading.go:90] loading index /data/7.idx to memory readonly false
volume_1 | I1206 03:22:31 1 volume_loading.go:90] loading index /data/6.idx to memory readonly false
volume_1 | I1206 03:22:31 1 volume_loading.go:90] loading index /data/2.idx to memory readonly false
volume_1 | I1206 03:22:31 1 volume_loading.go:90] loading index /data/4.idx to memory readonly false
volume_1 | I1206 03:22:31 1 volume_loading.go:90] loading index /data/1.idx to memory readonly false
volume_1 | I1206 03:22:31 1 disk_location.go:68] data file /data/6.dat, replicaPlacement=000 v=3 size=8 ttl=
volume_1 | I1206 03:22:31 1 disk_location.go:68] data file /data/7.dat, replicaPlacement=000 v=3 size=8 ttl=
volume_1 | I1206 03:22:31 1 disk_location.go:68] data file /data/5.dat, replicaPlacement=000 v=3 size=8 ttl=
volume_1 | I1206 03:22:31 1 disk_location.go:68] data file /data/3.dat, replicaPlacement=000 v=3 size=51272 ttl=
volume_1 | I1206 03:22:31 1 disk_location.go:68] data file /data/2.dat, replicaPlacement=000 v=3 size=227192 ttl=
volume_1 | I1206 03:22:31 1 disk_location.go:68] data file /data/1.dat, replicaPlacement=000 v=3 size=8 ttl=
volume_1 | I1206 03:22:31 1 disk_location.go:68] data file /data/4.dat, replicaPlacement=000 v=3 size=196088 ttl=
volume_1 | I1206 03:22:31 1 disk_location.go:109] Store started on dir: /data with 7 volumes max 15
volume_1 | I1206 03:22:31 1 disk_location.go:112] Store started on dir: /data with 0 ec shards
volume_1 | I1206 03:22:31 1 volume.go:162] Start Seaweed volume server 30GB 1.45 at 0.0.0.0:8080
volume_1 | I1206 03:22:31 1 volume_grpc_client_to_master.go:24] Volume server start with seed master nodes: [master:9333]
volume_1 | I1206 03:22:31 1 volume_grpc_client_to_master.go:68] Heartbeat to: master:9333
volume_1 | I1206 03:22:31 1 volume_grpc_client_to_master.go:45] heartbeat error: rpc error: code = Unknown desc = Raft Server not initialized!
volume_1 | I1206 03:22:36 1 volume_grpc_client_to_master.go:68] Heartbeat to: master:9333
volume_1 | I1206 03:24:01 1 volume_grpc_client_to_master.go:45] heartbeat error: rpc error: code = Unknown desc = Raft Server not initialized!
volume_1 | I1206 03:24:06 1 volume_grpc_client_to_master.go:68] Heartbeat to: master:9333
volume_1 | I1206 03:24:31 1 volume_grpc_client_to_master.go:45] heartbeat error: rpc error: code = Unknown desc = Raft Server not initialized!
volume_1 | I1206 03:24:36 1 volume_grpc_client_to_master.go:68] Heartbeat to: master:9333
volume_1 | I1206 03:24:36 1 volume_grpc_client_to_master.go:84] Volume Server found a new master newLeader: 192.168.64.2:9333 instead of master:9333
volume_1 | I1206 03:24:36 1 volume_grpc_client_to_master.go:68] Heartbeat to: 192.168.64.2:9333
[root@wx seaweedfs]#