happyfish100 / fastdfs

FastDFS is an open source high performance distributed file system (DFS). It's major functions include: file storing, file syncing and file accessing, and design for high capacity and load balance. Wechat/Weixin public account (Chinese Language): fastdfs
GNU General Public License v3.0
8.91k stars 1.97k forks source link

upload slave file fail, error no: 2 #666

Open Moon1102 opened 9 months ago

Moon1102 commented 9 months ago

[root@iZuf6j4p07um7jjnwr255hZ fdfs]# /usr/bin/fdfs_test client.conf upload 1.png This is FastDFS client test program v5.11

Copyright (C) 2008, Happy Fish / YuQing

FastDFS may be copied only under the terms of the GNU General Public License V3, which may be found in the FastDFS source kit. Please visit the FastDFS Home Page http://www.csource.org/ for more detail.

[2023-09-28 02:03:08] DEBUG - base_path=/var/local/fdfs/storage, connect_timeout=30, network_timeout=60, tracker_server_count=2, anti_steal_token=0, anti_steal_secret_key length=0, use_connection_pool=0, g_connection_pool_max_idle_time=3600s, use_storage_id=0, storage server id count: 0

tracker_query_storage_store_list_without_group: server 1. group_name=, ip_addr=123.56.253.16, port=23000 server 2. group_name=, ip_addr=47.103.192.6, port=23000

group_name=group1, ip_addr=123.56.253.16, port=23000 storage_upload_by_filename group_name=group1, remote_filename=M00/00/00/rBGlIWUU3tyAJNhLAAAAAAAAAAA503.png source ip address: 172.17.165.33 file timestamp=2023-09-28 02:03:08 file size=0 file crc32=0 example file url: http://123.56.253.16:22122/group1/M00/00/00/rBGlIWUU3tyAJNhLAAAAAAAAAAA503.png [2023-09-28 02:03:08] ERROR - file: tracker_proto.c, line: 48, server: 47.103.192.6:23000, response status 2 != 0 [2023-09-28 02:03:08] ERROR - file: ../client/storage_client.c, line: 996, fdfs_recv_response fail, result: 2 storage_upload_slave_by_filename upload slave file fail, error no: 2, error info: No such file or directory

@happyfish100 老师 能帮忙看下这个错误“upload slave file fail” 是什么原因吗 这个错误是在做双tracker双storage相互同步数据的时候,在docker里执行/usr/bin/fdfs_test上传文件后出现的,被上传的 1.png 是在docker的storage里通过touch 生成的空文件,换成文本格式的文件例如txt也是同样错误

出于项目原因只能用5.11版本的fdfs,所以能在这个版本上通过修改配置解决吗 防火墙未开,两台服务器端口已经确认互通,而且参考过本项目主页的集群配置的相关文档