免费注册 查看新帖 |

Chinaunix

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

[FastDFS] fastdfs和fastDHT结合上传文件问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2013-05-13 14:21 |只看该作者 |倒序浏览
本帖最后由 wuchengjiang 于 2013-05-13 14:21 编辑

鱼大,你好:
   有个问题请教一下,我用fastdfs和fastdht上传文件有个问题:
   版本信息 FastDFS_v4.06.tar.gz, FastDHT_v1.23.tar.gz
   1.在没有和fastdht结合的时候
   用这个命令上传文件是正常的,/usr/local/bin/fdfs_test /etc/fdfs/client.conf upload /root/install.log
   2.但是和fastdht结合的时候以后,上传文件报如下错误
   [root@fastdfs_24_11 fdfs]#  /usr/local/bin/fdfs_test /etc/fdfs/client.conf upload /root/install.log
This is FastDFS client test program v4.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.

[2013-05-13 14:15:05] DEBUG - base_path=/home/fastdfs, connect_timeout=30, network_timeout=60, tracker_server_count=3, 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

tracker_query_storage_store_list_without_group:
        server 1. group_name=, ip_addr=10.8.24.10, port=23000
        server 2. group_name=, ip_addr=10.8.24.8, port=23000
        server 3. group_name=, ip_addr=10.8.24.9, port=23000

group_name=group1, ip_addr=10.8.24.3, port=23000
[2013-05-13 14:15:05] DEBUG - file: tracker_proto.c, line: 48, server: 10.8.24.3:23000, response status 22 != 0
[2013-05-13 14:15:05] DEBUG - file: tracker_proto.c, line: 48, server: 10.8.24.3:23000, response status 22 != 0
storage_upload_by_filename
upload file fail, error no: 22, error info: Invalid argument

[root@fastdfs_24_11 fdfs]#

用fdfs_upload_file 是没有问题的
[root@fastdfs_24_11 fdfs]#  /usr/local/bin/fdfs_upload_file /etc/fdfs/client.conf /root/install.log
group3/M00/00/00/CggYClGQhSWAYttmAACXb0Xgabg288.log
[root@fastdfs_24_11 fdfs]#


不知道是什么问题,请鱼大指教一下。

论坛徽章:
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
2 [报告]
发表于 2013-05-13 15:32 |只看该作者
看storage server日志就清楚是怎么回事了

论坛徽章:
0
3 [报告]
发表于 2013-05-13 16:09 |只看该作者
回复 2# happy_fish100
鱼大,你好我看了下日志:
大概有下面的两种:
1.fastdfs_24_8:

    [2013-05-13 16:05:23] ERROR - file: storage_service.c, line: 3248, client ip:10.8.24.11, group_name: group1 not correct, should be: group3
    [2013-05-13 16:05:23] ERROR - file: storage_service.c, line: 7334, client ip:10.8.24.11, group_name: group1 not correct, should be: group3

2.fastdfs_24_4:

    [2013-05-13 16:05:46] ERROR - file: storage_service.c, line: 3286, client ip:10.8.24.11, call lstat logic file: M00/00/00/CggYAlGQntqAGWa7AAC32QL8wx091.
html fail, errno: 2, error info: No such file or directory
    [2013-05-13 16:05:46] ERROR - file: storage_service.c, line: 7366, client ip: 10.8.24.11, stat logic file M00/00/00/CggYAlGQntqAGWa7AAC32QL8wx091.html f
ail, errno: 2, error info: No such file or directory

其中10.8.24.11 是tracker server的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
4 [报告]
发表于 2013-05-13 16:35 |只看该作者
你是不是改过一个group的group name呢?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP