免费注册 查看新帖 |

Chinaunix

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

[FastDFS] [SOLVED] 上传文件出错 invalid argument ??? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-01-31 11:48 |只看该作者 |倒序浏览
本帖最后由 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.

论坛徽章:
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 [报告]
发表于 2012-01-31 16:00 |只看该作者
回复 1# amusemelu

怀疑你在配置文件中打开了direct IO,storage.conf中,disk_rw_direct这个参数。
不要设置direct IO,这个功能有问题,没有测试过的。
要支持direct IO,并不是那么简单的。我下个版本将这个特性去掉好了。

论坛徽章:
0
3 [报告]
发表于 2012-01-31 16:31 |只看该作者
大哥,你终于出现了啊。

嗯,还真是去掉就好了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP