免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 7532 | 回复: 3
打印 上一主题 下一主题

[FastDFS] 急急急!!!为什么storage连接成功,但无法上传文件 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2018-10-24 15:10 |只看该作者 |倒序浏览
Tracker服务器:192.168.12.101(同时作为Client上传数据)
两个Storage服务器:192.168.12.105(组名group105)、192.168.12.106(组名group106),105和106除组名不同外,其它配置均相同

[root@xm01 data]# cat storage_groups_new.dat
# global section
[Global]
        group_count=2

# group: group105
[Group001]
        group_name=group105
        storage_port=23000
        storage_http_port=8888
        store_path_count=1
        subdir_count_per_path=256
        current_trunk_file_id=0
        trunk_server=
        last_trunk_server=

# group: group106
[Group002]
        group_name=group106
        storage_port=23000
        storage_http_port=8888
        store_path_count=1
        subdir_count_per_path=256
        current_trunk_file_id=0
        trunk_server=
        last_trunk_server=



启动服务均成功,并调用fdfs_monitor检查:
[root@xm01 data]# fdfs_monitor /etc/fdfs/client.conf
[2018-10-24 12:51:24] DEBUG - base_path=/fdfs/client, 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.12.101:22122

group count: 2

Group 1:
group name = group105
disk total space = 2140201 MB
disk free space = 2003688 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 = 192.168.12.105
                ip_addr = 192.168.12.105  ACTIVE
                http domain =
                version = 5.12
                join time = 2018-10-24 12:35:10
                up time = 2018-10-24 12:35:10
                total storage = 2140201 MB
                free storage = 2003688 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 = 0
                connection.max_count = 1
                total_upload_count = 100
                success_upload_count = 100
                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 = 24117248000
                success_upload_bytes = 24117248000
                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 = 100
                success_file_open_count = 100
                total_file_read_count = 0
                success_file_read_count = 0
                total_file_write_count = 100
                success_file_write_count = 100
                last_heart_beat_time = 2018-10-24 12:51:14
                last_source_update = 2018-10-24 12:37:55
                last_sync_update = 1970-01-01 08:00:00
                last_synced_timestamp = 1970-01-01 08:00:00

Group 2:
group name = group106
disk total space = 2122046 MB
disk free space = 2009342 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 = 192.168.12.106
                ip_addr = 192.168.12.106  ACTIVE
                http domain =
                version = 5.12
                join time = 2018-10-24 12:35:16
                up time = 2018-10-24 12:35:16
                total storage = 2122046 MB
                free storage = 2009342 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 = 0
                connection.max_count = 0
                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 = 2018-10-24 12:51:03
                last_source_update = 1970-01-01 08:00:00
                last_sync_update = 1970-01-01 08:00:00
                last_synced_timestamp = 1970-01-01 08:00:00
[root@xm01 data]#


上传文件时,只有105能上传成功,106提示错误如下:
[root@xm01 src]# fdfs_upload_file /etc/fdfs/client.conf test.dat 192.168.12.106:23000 0
[2018-10-24 13:38:28] ERROR - file: connection_pool.c, line: 130, connect to 192.168.12.106:23000 fail, errno: 113, error info: No route to host
upload file fail, error no: 113, error info: No route to host
[root@xm01 src]# fdfs_upload_file /etc/fdfs/client.conf test.dat 192.168.12.105:23000 0
group105/M00/00/01/wKgMaVvQBZiAdTq6AABX-P9F6U86000772


查了防火墙,iptables没启动,没有任何防火墙,不知道什么原因造成的?请大家帮忙解决,谢谢!

论坛徽章:
0
2 [报告]
发表于 2018-10-24 15:45 |只看该作者
注:系统为Redhat 7.3,没发现使用iptables防火墙,不知道是否有其它防火墙?

论坛徽章:
0
3 [报告]
发表于 2018-10-25 12:17 |只看该作者
已解决!!!

论坛徽章:
0
4 [报告]
发表于 2018-10-26 14:28 |只看该作者
就是网络问题吧?开白名单解决的?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP