免费注册 查看新帖 |

Chinaunix

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

[FastDFS] errno: 107, 急!上传文件报错error info: Transport endpoint is not connected [复制链接]

论坛徽章:
0
发表于 2012-07-10 11:29 |显示全部楼层
5可用积分
/usr/local/bin/fdfs_test /etc/fdfs/client.conf upload /usr/local/bin/aa.php
This is FastDFS client test program v3.08

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.

[2012-07-10 11:17:56] INFO - base_path=/home/cmcc/cmri/yuqing/fastdfs, connect_timeout=30, network_timeout=60, tracker_server_count=1, anti_steal_token=0, anti_steal_secret_key length=0

tracker_query_storage_store_list_without_group:
        server 1. group_name=group2, ip_addr=10.2.5.192, port=23000

group_name=group2, ip_addr=10.2.5.192, port=23000
[2012-07-10 11:17:56] ERROR - file: tracker_proto.c, line: 37, server: 10.2.5.192:23000, recv data fail, errno: 107, error info: Transport endpoint is not connected
storage_upload_by_filename
upload file fail, error no: 107, error info: Transport endpoint is not connected
[2012-07-10 11:17:56] ERROR - file: tracker_proto.c, line: 154, tracker server: 10.2.5.192:23000, send data fail, errno: 9, error info: Bad file descriptor


我的client端在10.2.5.191 上  ,tracker server 和 storage server  在 192上  之前测试能成功,现在出现这个问题了。

论坛徽章:
0
发表于 2012-07-10 11:45 |显示全部楼层
从启下storage 就没问题了 但是还是不知道具体原因在哪!

论坛徽章:
4
2015年辞旧岁徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:56:11IT运维版块每日发帖之星
日期:2016-08-11 06:20:00IT运维版块每日发帖之星
日期:2016-08-15 06:20:00
发表于 2012-07-10 13:22 |显示全部楼层
当client出现错误的时候,看一下storage server的日志报什么错误。

论坛徽章:
0
发表于 2012-07-10 14:23 |显示全部楼层
happy_fish100 发表于 2012-07-10 13:22
当client出现错误的时候,看一下storage server的日志报什么错误。


谢谢鱼大的指点  storage.log的错误信息如下

[2012-07-10 14:15:01] ERROR - file: storage_service.c, line: 1666, malloc task buff failed

比起盲目的发帖询问,鱼大给我提供了好的建议。我先自己去论坛看看,如果找到解决办法 我会在下面回复。谢谢鱼大!

论坛徽章:
0
发表于 2012-07-10 14:27 |显示全部楼层
http://bbs.chinaunix.net/forum.php?mod=viewthread&tid=1920470应该是这的关系

16. fdfs_trackerd或者fdfs_storaged的日志中出现:malloc task buff failed字样的错误,这是怎么回事?
  出现此类信息表示已经达到最大连接数。server端支持的最大连接数可以通过max_connections这个参数来设置。
  出现这样的问题,需要排查一下是否客户端使用不当导致的,比如客户端没有及时关闭无用的连接。

所以下一步得去看看如何关掉不必要的链接了......

论坛徽章:
0
发表于 2012-07-10 18:21 |显示全部楼层
我用的PHPclient  导致如上的问题是由于 服务连接没有及时关闭。 通过调用php api的disconnect 后 基本好了 经过一些测试 发现无论是文件的上传 删除 在性能方面都是较优的 感谢鱼大!

论坛徽章:
0
发表于 2012-08-14 15:42 |显示全部楼层
呵,问题有始有终,就对大家有帮助了,谢谢
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP