- 论坛徽章:
- 0
|
本帖最后由 amusemelu 于 2012-01-31 16:33 编辑
问题是在上传文件的时候出现的。
[fastdfs@xunuu63 ~]$ fdfs_upload_file conf/client.conf aaa
upload file fail, error no: 2, error info: No such file or directory
[fastdfs@xunuu63 ~]$ touch aaa
[fastdfs@xunuu63 ~]$ fdfs_upload_file conf/client.conf aaa
group3/M00/00/00/wKimQE8nWhe4IIUAAAAAAAAAAAA6705500
[fastdfs@xunuu63 ~]$ echo "hello" > ccc
[fastdfs@xunuu63 ~]$ fdfs_upload_file conf/client.conf ccc
upload file fail, error no: 22, error info: Invalid argument
上传aaa就可以,上传ccc就出错。而且在tracker开启debug级别的日志中也没有出错信息。
用fdfs_test也出错
[fastdfs@xunuu63 ~]$ fdfs_test conf/client.conf upload ccc
This is FastDFS client test program v3.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.
[2012-01-31 11:37:44] INFO - base_path=/home/fastdfs/logs, connect_timeout=30, network_timeout=60, tracker_server_count=2, anti_steal_token=0, anti_steal_secret_key length=0
tracker_query_storage_store_list_without_group:
server 1. group_name=group3, ip_addr=192.168.166.64, port=23000
group_name=group3, ip_addr=192.168.166.64, port=23000
[2012-01-31 11:37:44] DEBUG - file: tracker_proto.c, line: 48, server: 192.168.166.64:23000, response status 22 != 0
storage_upload_by_filename
upload file fail, error no: 22, error info: Invalid argument
我在一台storage server 的日志中找到了如下出错信息,不知道是什么问题。
[2012-01-31 11:04:02] ERROR - file: storage_dio.c, line: 460, write to file: /home/fastdfs/fastdfs3/data/00/00/wKimQE8nWiKssXB6AAAABlvOqos5574350 fail, fd=74, write_bytes=6, errno: 22, error info: Invalid argument
[2012-01-31 11:07:09] ERROR - file: tracker_client_thread.c, line: 988, tracker server 192.168.166.60:22122, recv data fail, errno: 107, error info: Transport endpoint is not connected.
[2012-01-31 11:07:10] ERROR - file: tracker_client_thread.c, line: 988, tracker server 192.168.166.60:22121, recv data fail, errno: 107, error info: Transport endpoint is not connected.
|
|