免费注册 查看新帖 |

Chinaunix

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

[FastDFS] test error [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-10-25 18:36 |只看该作者 |倒序浏览
root@ubuntu:/# /usr/local/bin/fdfs_test conf/client.conf upload /usr/include/stdlib.h
This is FastDFS client test program v2.01

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.

[2010-10-25 03:30:29] ERROR - file: ../common/ini_file_reader.c, line: 116, chdir to the path of conf file: conf/client.conf fail, errno: 2, error info: No such file or directory
[2010-10-25 03:30:29] ERROR - load conf file "conf/client.conf" fail, ret code: 2
root@ubuntu:/#

论坛徽章:
0
2 [报告]
发表于 2010-10-25 18:50 |只看该作者
本帖最后由 rxxluowei 于 2010-10-26 09:31 编辑

解决方法:INSTALL文件中的代码默认是在/home/stor11/FastDFS路径下执行,所以,切换到该路径即可执行。
注:这里环境是1个tracker --192.168.139.141 ,一个storage server--192.168.139.133,client server 和 storage server共用一台。别忘了修改client.conf
------------------------------------------------------------------------------------------------------------------------------------

root@ubuntu:/# cd /home/stor11/FastDFS
root@ubuntu:/home/stor11/FastDFS# ls
client  COPYING-3_0.txt  init.d   make.sh     restart.sh  test
common  data             INSTALL  php_client  stop.sh     tracker
conf    HISTORY          logs     README      storage
root@ubuntu:/home/stor11/FastDFS# /usr/local/bin/fdfs_test conf/client.conf upload /usr/include/stdlib.h
This is FastDFS client test program v2.01

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.

base_path=/home/stor11/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.139.133, port=23000

group_name=group1, ip_addr=192.168.139.133, port=23000
storage_upload_by_filename
group_name=group1, remote_filename=M00/00/00/wKiLhUzFYFwAAAAAAACErjIG7oU78073.h
source ip address: 192.168.139.133
file timestamp=2010-10-25 03:47:56
file size=33966
file url: http://192.168.139.141:8080/grou ... AAACErjIG7oU78073.h
storage_upload_slave_by_filename
group_name=group1, remote_filename=M00/00/00/wKiLhUzFYFwAAAAAAACErjIG7oU78073_big.h
source ip address: 192.168.139.133
file timestamp=2010-10-25 03:47:56
file size=33966
file url: http://192.168.139.141:8080/grou ... ErjIG7oU78073_big.h
root@ubuntu:/home/stor11/FastDFS#

论坛徽章:
0
3 [报告]
发表于 2010-11-10 10:25 |只看该作者
本帖最后由 rxxluowei 于 2010-11-10 10:31 编辑

又出现上传错误,调试好几遍,还是没查到问题,现在贴出来,请高手指点

tracker:192.168.139.141
group:group1
storage:192.168.139.142
storage:192.168.139.133(测试时该storage为关闭状态)

报错如下:
--------------------------
stor13@ubuntu:~$ /usr/local/bin/fdfs_test /etc/fdfs/client.conf upload /usr/include/stdlib.h
This is FastDFS client test program v2.01

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.

base_path=/home/stor13/FastDFS, connect_timeout=30, network_timeout=60, tracker_server_count=1, anti_steal_token=0, anti_steal_secret_key length=0
[2010-11-09 18:10:02] ERROR - file: tracker_proto.c, line: 48, server: 192.168.139.141:22122, response status 2 != 0
[2010-11-09 18:10:02] ERROR - file: tracker_proto.c, line: 48, server: 192.168.139.141:22122, response status 2 != 0
tracker_query_storage fail, error no: 2, error info: No such file or directory

运行monitor后,部分显示如下
----------
Host 2:
                ip_addr = 192.168.139.142 (ubuntu.local)  INIT
                http domain =
                version = 2.01
                up time =
                total storage = 0GB
                free storage = 0GB
                upload priority = 10
                store_path_count = 1
                subdir_count_per_path = 256
                storage_port = 23000
                storage_http_port = 8888
                current_write_path = 0
                source ip_addr =
                total_upload_count = 0
                success_upload_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
                last_heart_beat_time = 1969-12-31 16:00:00
                last_source_update = 1969-12-31 16:00:00
                last_sync_update = 1969-12-31 16:00:00
                last_synced_timestamp= 1969-12-31 16:00:00

第一行的ip_addr = 192.168.139.142 (ubuntu.local)  INIT  这个状态以前没见过,

论坛徽章:
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 [报告]
发表于 2010-11-10 14:08 |只看该作者
回复 3# rxxluowei

192.168.139.142这台storage server状态为INIT了?
上传时返回的错误码是2,表示没有ACTIVE的storage server

另外,192.168.139.133的状态是什么样的呢?

论坛徽章:
0
5 [报告]
发表于 2011-12-24 13:49 |只看该作者
fish哥,我也遇到了相同的问题,storage确定已经初始化完成了。

论坛徽章:
0
6 [报告]
发表于 2011-12-24 14:00 |只看该作者
happy_fish100 发表于 2010-11-10 14:08
回复 3# rxxluowei

192.168.139.142这台storage server状态为INIT了?

哦,我错了,monitor一下发现是OFFLINE...
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP