免费注册 查看新帖 |

Chinaunix

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

[FastDFS] fdfs_trackerd和fdfs_storaged正常,php无法上传 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-01-29 11:52 |只看该作者 |倒序浏览
fdfs_trackerd和fdfs_storaged正常,php无法上传

  1. storage_upload_by_filename fail, result=28
  2. Warning: unpack() [function.unpack]: Type N: not enough input, need 4, have 0 in /usr/vhost/192.168.2.227/fdfs/fdfs_common.php on line 304
  3. tracker_query_storage_list fail, errno: 22
复制代码


  1. Active Internet connections (servers and established)
  2. Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name   
  3. tcp        0      0 0.0.0.0:22122               0.0.0.0:*                   LISTEN      15334/fdfs_trackerd
  4. tcp        0      0 0.0.0.0:3306                0.0.0.0:*                   LISTEN      2272/mysqld         
  5. tcp        0      0 192.168.2.223:11211         0.0.0.0:*                   LISTEN      16270/memcached     
  6. tcp        0      0 0.0.0.0:8080                0.0.0.0:*                   LISTEN      15334/fdfs_trackerd
  7. tcp        0      0 0.0.0.0:8888                0.0.0.0:*                   LISTEN      15928/fdfs_storaged
  8. tcp        0      0 0.0.0.0:23000               0.0.0.0:*                   LISTEN      15928/fdfs_storaged
  9. tcp        0      0 192.168.2.223:3306          192.168.2.223:20995         ESTABLISHED 2272/mysqld         
  10. tcp        0      0 192.168.2.223:13367         192.168.2.223:22122         ESTABLISHED 15928/fdfs_storaged
  11. tcp        0      0 192.168.2.223:22122         192.168.2.223:13367         ESTABLISHED 15334/fdfs_trackerd
复制代码

  1. [root@test03 data]# fdfs_monitor /etc/fdfs/storage.conf
  2. group count: 1

  3. Group 1:
  4. group name = group1
  5. free space = 1 GB
  6. storage server count = 1
  7. active server count = 1
  8. storage_port = 23000
  9. storage_http_port = 8888
  10. store path count = 1
  11. subdir count per path= 256
  12. current write server index = 0

  13.         Host 1:
  14.                 ip_addr = 192.168.2.223   ACTIVE
  15.                 total storage = 9GB
  16.                 free storage = 1GB
  17.                 total_upload_count = 0
  18.                 success_upload_count = 0
  19.                 total_set_meta_count = 0
  20.                 success_set_meta_count = 0
  21.                 total_delete_count = 0
  22.                 success_delete_count = 0
  23.                 total_download_count = 0
  24.                 success_download_count = 0
  25.                 total_get_meta_count = 0
  26.                 success_get_meta_count = 0
  27.                 total_create_link_count = 0
  28.                 success_create_link_count = 0
  29.                 total_delete_link_count = 0
  30.                 success_delete_link_count = 0
  31.                 last_heart_beat_time = 2010-01-30 12:01:20
  32.                 last_source_update = 1970-01-01 07:00:00
  33.                 last_sync_update = 1970-01-01 07:00:00
  34.                 last_synced_timestamp= 1970-01-01 07:00:00
复制代码


状态正常


fdfs_test.php

  1. storage_upload_by_filename fail, result=28
  2. Warning: unpack() [function.unpack]: Type N: not enough input, need 4, have 0 in /usr/vhost/192.168.2.227/fdfs/fdfs_common.php on line 304
  3. tracker_query_storage_list fail, errno: 22 storage_upload_by_filename fail, result=5 tracker_query_storage_fetch fail, errno: 5 storage_download_file_to_file fail, errno: 5 storage_download_file_to_buff fail, errno: 5
  4. Warning: fopen() [function.fopen]: Filename cannot be empty in /usr/vhost/192.168.2.227/fdfs/fdfs_test.php on line 165
  5. set metadata result: 5 storage_get_metadata fail, errno: 5 delete file result: 5
复制代码

论坛徽章:
0
2 [报告]
发表于 2010-01-29 13:44 |只看该作者
靠,居然是空间太小导致的诡异事件

论坛徽章:
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
3 [报告]
发表于 2010-01-29 14:06 |只看该作者

回复 #2 zhengwei_zw 的帖子

建议使用php扩展,不要使用纯PHP版本的客户端API。
可以下载V1.23。
V1.25本周末将发布,修改了几个bug,功能更加强大。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP