免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 9193 | 回复: 10

[FastDFS] recv failed, connection disconnected [复制链接]

论坛徽章:
0
发表于 2011-01-04 15:14 |显示全部楼层
DEBUG - file: tracker_nio.c, line: 270, client ip: 192.168.0.11, recv failed, connection disconnected

总是不成功,于是在log里面使用debug级别,终于发现是这个问题。

该怎么解决呢?

论坛徽章:
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
发表于 2011-01-04 15:20 |显示全部楼层
回复 1# zxpxyz

这个debug信息,表示客户端关闭了连接,完全可以忽略掉。
出现错误时,客户端会有出错信息的啊,应该看客户端的出错信息。

论坛徽章:
0
发表于 2011-01-04 15:27 |显示全部楼层
回复 2# happy_fish100


fdfs_test /etc/fdfs/client.conf upload install.log
This is FastDFS client test program v2.06

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.

[2011-01-04 17:29:19] INFO - base_path=/opt/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=group1, ip_addr=192.168.0.12, port=23000
        server 2. group_name=group1, ip_addr=192.168.0.13, port=23000
        server 3. group_name=group1, ip_addr=192.168.0.14, port=23000

group_name=group1, ip_addr=192.168.0.14, port=23000
storage_upload_by_filename
group_name=group1, remote_filename=M00/00/00/wKgADk0i6IYAAAAAAABeYMNHjAA610.log
source ip address: 192.168.0.14
file timestamp=2011-01-04 17:29:42
file size=24160
file crc32=3276246016
file url: http://192.168.0.11/group1/M00/0 ... AAABeYMNHjAA610.log
storage_upload_slave_by_filename
group_name=group1, remote_filename=M00/00/00/wKgADk0i6IYAAAAAAABeYMNHjAA610_big.log
source ip address: 192.168.0.14
file timestamp=2011-01-04 17:29:42
file size=24160
file crc32=3276246016
file url: http://192.168.0.11/group1/M00/0 ... eYMNHjAA610_big.log

论坛徽章:
0
发表于 2011-01-04 15:28 |显示全部楼层
请恕小弟愚钝,我没有看出来是哪里出了问题。。。

论坛徽章:
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
发表于 2011-01-04 16:29 |显示全部楼层
回复 4# zxpxyz

一切正常,请不要管debug信息,好吧。

论坛徽章:
0
发表于 2011-01-04 16:58 |显示全部楼层
感谢鱼老大~

我使用你推荐的http方式,即tracker用自带的http,storage使用nginx+fastdfs_module。但是我打开提示的URL的时候反馈给我的却是404。其中指向到192.168.0.11的自动转到其他的IP地址了。

百思不得其解,请鱼老大提供一些使用方法吧。

我按照本版的 安装 配置 使用 那三篇帖子做的,可是就是出不来效果。

论坛徽章:
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
发表于 2011-01-04 17:08 |显示全部楼层
回复 6# zxpxyz

如果在storage server上使用module方式,那么就不需要在tracker server上部署web server了,直接访问storage server上的web server即可。

论坛徽章:
0
发表于 2011-01-04 17:25 |显示全部楼层
感谢鱼老大~

我的重点是,我按照提示出来的URL访问,得到的404。

我的测试环境 centos 5.5 32bit 我都用yum安装的依赖软件。

论坛徽章:
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
发表于 2011-01-04 20:56 |显示全部楼层
回复 8# zxpxyz

请仔细看一下我楼上的回复。
使用扩展模板方式,直接访问storage server,不需要通过tracker server跳转。
更多信息,请看一下最新的PPT文档:http://linux.chinaunix.net/bbs/thread-1174984-1-1.html

论坛徽章:
0
发表于 2011-01-05 10:23 |显示全部楼层
回复  zxpxyz

请仔细看一下我楼上的回复。
使用扩展模板方式,直接访问storage server,不需要通过tra ...
happy_fish100 发表于 2011-01-04 20:56



感谢鱼老大费心~

你这样一说我就重新调整得到的URL,去掉原URL的里面的“/group1” 就可以直接在storage上面得到了我已经上传的文件了。感谢鱼老大的帮助。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP