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
9.01k stars 1.98k forks source link

文件访问提示文件不存在。我在一台服务器上安装fastdfs既做tracker,也做storage。 #345

Open adminSxs opened 4 years ago

adminSxs commented 4 years ago

现在突然出现访问[2019-10-31 06:07:32] WARNING - file: storage_service.c, line: 6899, client ip: 192.168.192.2, logic file: M00/00/04/wKgBZF06xy6ARZEJAAF3buBtN9E397.png not exist错误, 所有的文件都访问不到,但是实际文件存在硬盘的,请问这个是什么问题

happyfish100 commented 4 years ago

修改 storage.conf中的store_path了吗?

adminSxs commented 4 years ago

修改 storage.conf中的store_path了吗?

没有修改过,好像就是重启了一次服务器然后所有文件都获取不到了,提示xxxx not exits。也没有加硬盘

zhaolu138969 commented 4 years ago

[root@3137f2fd9eac /]# fdfs_monitor /etc/fdfs/client.conf [2019-11-20 05:50:40] DEBUG - base_path=/Data/fastdfs, connect_timeout=30, network_timeout=60, tracker_server_count=1, 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

server_count=1, server_index=0

tracker server is 192.168.56.10:22122

group count: 1

Group 1: group name = group1 disk total space = 28662 MB disk free space = 16725 MB trunk free space = 0 MB storage server count = 1 active server count = 1 storage server port = 23000 storage HTTP port = 8888 store path count = 1 subdir count per path = 256 current write server index = 0 current trunk file id = 0

Storage 1:
    id = 172.17.0.1
    ip_addr = 172.17.0.1 (gateway)  ACTIVE
    http domain = 
    version = 5.05
    join time = 2019-11-20 05:41:50
    up time = 2019-11-20 05:41:50
    total storage = 28662 MB
    free storage = 16725 MB
    upload priority = 10
    store_path_count = 1
    subdir_count_per_path = 256
    storage_port = 23000
    storage_http_port = 8888
    current_write_path = 0
    source storage id = 
    if_trunk_server = 0
    connection.alloc_count = 256
    connection.current_count = 1
    connection.max_count = 1
    total_upload_count = 0
    success_upload_count = 0
    total_append_count = 0
    success_append_count = 0
    total_modify_count = 0
    success_modify_count = 0
    total_truncate_count = 0
    success_truncate_count = 0
    total_set_meta_count = 0
    success_set_meta_count = 0
    total_delete_count = 0
    success_delete_count = 0
    total_download_count = 0
    success_download_count = 0
    total_get_meta_count = 0
    success_get_meta_count = 0
    total_create_link_count = 0
    success_create_link_count = 0
    total_delete_link_count = 0
    success_delete_link_count = 0
    total_upload_bytes = 0
    success_upload_bytes = 0
    total_append_bytes = 0
    success_append_bytes = 0
    total_modify_bytes = 0
    success_modify_bytes = 0
    stotal_download_bytes = 0
    success_download_bytes = 0
    total_sync_in_bytes = 0
    success_sync_in_bytes = 0
    total_sync_out_bytes = 0
    success_sync_out_bytes = 0
    total_file_open_count = 0
    success_file_open_count = 0
    total_file_read_count = 0
    success_file_read_count = 0
    total_file_write_count = 0
    success_file_write_count = 0
    last_heart_beat_time = 2019-11-20 05:50:27
    last_source_update = 1970-01-01 00:00:00
    last_sync_update = 1970-01-01 00:00:00
    last_synced_timestamp = 1970-01-01 00:00:00 

[2019-11-20 05:42:46] ERROR - file: tracker_proto.c, line: 48, server: 192.168.56.10:22122, response status 2 != 0 tracker_query_storage fail, error no: 2, error info: No such file or directory

自测无法上传,找不到文件或者目录

happyfish100 commented 4 years ago

看下server端日志文件报错了吗?