test error
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:/#
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
哦,我错了,monitor一下发现是OFFLINE...
fish哥,我也遇到了相同的问题,storage确定已经初始化完成了。
回复 3# rxxluowei
192.168.139.142这台storage server状态为INIT了?
上传时返回的错误码是2,表示没有ACTIVE的storage server
另外,192.168.139.133的状态是什么样的呢?
本帖最后由 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 这个状态以前没见过,
本帖最后由 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#