免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3328 | 回复: 3

[FastDFS] 求助-fastdfs5.5上传文件时好时坏,errno: 107, error info: Transport endpoint i... [复制链接]

论坛徽章:
0
发表于 2017-04-03 17:09 |显示全部楼层
本帖最后由 nash_nene 于 2017-04-03 18:17 编辑

求助环境:
    操作系统:CentOS6.5
    Tracker、Storaged均无外网IP,使用Nginx做的反向代理

问题:
    FastDFS单机模式下,使用java-api上传图片时时好时坏,详情见下图:

因最早搭建的时候是两台tracker和两台storaged服务器,第一反应是负载均衡服务器指向的问题,然后从头到尾排查了一遍没有发现问题。

经过各种调试均不成功(仍然是时好时坏),每次启动storaged服务时日志里会有一条报错,但不知道怎么解决,storaged日志如下:






论坛徽章:
0
发表于 2017-04-03 17:12 |显示全部楼层
[root@bg-test-control02 ~]# fdfs_monitor /etc/fdfs/storage.conf
[2017-04-03 17:11:59] DEBUG - base_path=/storage/fdfs/storage-data, connect_timeout=60, 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 172.16.1.93:22122

group count: 1

Group 1:
group name = group1
disk total space = 50396 MB
disk free space = 33693 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.16.1.93
                ip_addr = 172.16.1.93 (rabbit@bg-test-control02.bj)  ACTIVE
                http domain =
                version = 5.05
                join time = 2017-04-01 09:54:05
                up time = 2017-04-03 16:12:07
                total storage = 50396 MB
                free storage = 33693 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 = 172.16.1.93
                if_trunk_server = 0
                connection.alloc_count = 256
                connection.current_count = 0
                connection.max_count = 1
                total_upload_count = 3597
                success_upload_count = 3597
                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 = 261
                success_set_meta_count = 261
                total_delete_count = 41
                success_delete_count = 41
                total_download_count = 56
                success_download_count = 56
                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 = 1270273088
                success_upload_bytes = 1270273088
                total_append_bytes = 0
                success_append_bytes = 0
                total_modify_bytes = 0
                success_modify_bytes = 0
                stotal_download_bytes = 9962584
                success_download_bytes = 9962584
                total_sync_in_bytes = 423025970
                success_sync_in_bytes = 423025970
                total_sync_out_bytes = 0
                success_sync_out_bytes = 0
                total_file_open_count = 4393
                success_file_open_count = 4393
                total_file_read_count = 71
                success_file_read_count = 71
                total_file_write_count = 9183
                success_file_write_count = 9183
                last_heart_beat_time = 2017-04-03 17:11:38
                last_source_update = 2017-04-03 17:10:10
                last_sync_update = 2017-03-14 09:58:16
                last_synced_timestamp = 2017-03-14 09:58:11

论坛徽章:
0
发表于 2017-04-03 18:20 |显示全部楼层
,貌似传文件失败和storaged日志内ERROR - file: tracker_client_thread.c, line: 1120, tracker server 172.16.1.93:22122, recv data fail, errno: 107, error info: Transport endpoint is not connected.报错没有关系,重启一下storaged就没有ERROR了。但是上传图片时还是时好时坏。

论坛徽章:
0
发表于 2017-04-04 14:59 |显示全部楼层
余大大
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP