免费注册 查看新帖 |

Chinaunix

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

[FastDFS] FASTDFS 上传失败(fdfs_test上传response status 2 != 0,但是浏览器可以访问该文件) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2014-08-05 09:23 |只看该作者 |倒序浏览
linux 版本 CentOS release 6.5
libevent 版本 1.4.13-4.el6
FastDFS_v3.03.tar.gz
fastdfs-nginx-module_v1.08.tar.gz
nginx-1.6.0

在以上环境下,通过/usr/local/bin/fdfs_test /etc/fdfs/client.conf upload /www/test.txt 上传文件测试

  1. This is FastDFS client test program v3.03

  2. Copyright (C) 2008, Happy Fish / YuQing

  3. FastDFS may be copied only under the terms of the GNU General
  4. Public License V3, which may be found in the FastDFS source kit.
  5. Please visit the FastDFS Home Page http://www.csource.org/
  6. for more detail.

  7. [2014-08-05 09:10:29] INFO - base_path=/www/fastdfs, connect_timeout=30, network_timeout=60, tracker_server_count=1, anti_steal_token=0, anti_steal_secret_key length=0

  8. tracker_query_storage_store_list_without_group:
  9.         server 1. group_name=2012, ip_addr=172.19.xx.x, port=23000

  10. group_name=2012, ip_addr=172.19.xx.x, port=23000
  11. [2014-08-05 09:10:29] DEBUG - file: tracker_proto.c, line: 48, server: 172.19.xx.x:23000, response status 2 != 0
  12. [2014-08-05 09:10:29] DEBUG - file: tracker_proto.c, line: 48, server: 172.19.xx.x:23000, response status 2 != 0
  13. storage_upload_by_filename
  14. upload file fail, error no: 2, error info: No such file or directory
复制代码
上传返回错误,此时stroage日志
ERROR - file: storage_service.c, line: 5328, client ip: 172.19.xx.x, stat logic file M00/00/00/rBMzBFPgLwUIAAAAAAAAB2M22qkAAAAAgP_tzQAAAAf046.txt fail, errno: 2, error info: No such file or directory
但是通过浏览器访问172.19.xx.x:8000/2012/M00/00/00/rBMzBFPgLwUIAAAAAAAAB2M22qkAAAAAgP_tzQAAAAf046.txt
可以访问到该文件,求各位大大解惑?谢谢

此时通过/usr/local/bin/fdfs_monitor /etc/fdfs/client.conf
查看服务状态
  1. INFO - base_path=/www/fastdfs, connect_timeout=30, network_timeout=60, tracker_server_count=1, anti_steal_token=0, anti_steal_secret_key length=0

  2. server_count=1, server_index=0

  3. tracker server is 172.19.xx.x:22122

  4. group count: 1

  5. Group 1:
  6. group name = 2012
  7. disk free space = 39 GB
  8. trunk free space = 0 GB
  9. storage server count = 1
  10. active server count = 1
  11. storage server port = 23000
  12. storage HTTP port = 8823
  13. store path count = 1
  14. subdir count per path = 256
  15. current write server index = 0
  16. current trunk file id = 5

  17.         Storage 1:
  18.                 ip_addr = 172.19.xx.x  ACTIVE
  19.                 http domain =
  20.                 version = 3.03
  21.                 join time = 2014-07-10 04:13:55
  22.                 up time = 2014-08-04 17:46:55
  23.                 total storage = 49GB
  24.                 free storage = 39GB
  25.                 upload priority = 10
  26.                 store_path_count = 1
  27.                 subdir_count_per_path = 256
  28.                 storage_port = 23000
  29.                 storage_http_port = 8823
  30.                 current_write_path = 0
  31.                 source ip_addr =
  32.                 if_trunk_server= 1
  33.                 total_upload_count = 1074
  34.                 success_upload_count = 1074
  35.                 total_append_count = 0
  36.                 success_append_count = 0
  37.                 total_set_meta_count = 10
  38.                 success_set_meta_count = 10
  39.                 total_delete_count = 0
  40.                 success_delete_count = 0
  41.                 total_download_count = 0
  42.                 success_download_count = 0
  43.                 total_get_meta_count = 0
  44.                 success_get_meta_count = 0
  45.                 total_create_link_count = 0
  46.                 success_create_link_count = 0
  47.                 total_delete_link_count = 0
  48.                 success_delete_link_count = 0
  49.                 total_upload_bytes = 298043074
  50.                 success_upload_bytes = 298043074
  51.                 total_append_bytes = 0
  52.                 success_append_bytes = 0
  53.                 stotal_download_bytes = 0
  54.                 success_download_bytes = 0
  55.                 total_sync_in_bytes = 0
  56.                 success_sync_in_bytes = 0
  57.                 total_sync_out_bytes = 0
  58.                 success_sync_out_bytes = 0
  59.                 total_file_open_count = 1087
  60.                 success_file_open_count = 1087
  61.                 total_file_read_count = 0
  62.                 success_file_read_count = 0
  63.                 total_file_write_count = 1899
  64.                 success_file_write_count = 1899
  65.                 last_heart_beat_time = 2014-08-05 09:19:55
  66.                 last_source_update = 2014-08-05 09:15:30
  67.                 last_sync_update = 1970-01-01 07:00:00
  68.                 last_synced_timestamp = 1970-01-01 07:00:00
复制代码
谢谢各位高手

论坛徽章:
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 [报告]
发表于 2014-08-05 09:49 |只看该作者
版本太旧啦!

论坛徽章:
0
3 [报告]
发表于 2014-08-05 10:09 |只看该作者
happy_fish100 发表于 2014-08-05 09:49
版本太旧啦!

谢谢您的答复,您指fastdfs版本太旧了么?
我们一直用的这个版本的fastdfs,目前别的服务器也依然在用,而且是正常的。
其他正常环境的nginx都用的1.0.4,libevent-2.0.19-stable.tar.gz
您能详细说一下吗?谢谢。

论坛徽章:
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 [报告]
发表于 2014-08-05 13:09 |只看该作者
FDFS server版本过旧。请使用v4.08或者v5.02,谢谢!

论坛徽章:
0
5 [报告]
发表于 2014-08-05 13:30 |只看该作者
谢谢,我再试试。回复 4# happy_fish100


   
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP