免费注册 查看新帖 |

Chinaunix

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

[FastDFS] FastDFS,PHP上传图片失败 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2014-05-09 08:55 |只看该作者 |倒序浏览
用自带的PHP测试程序,FastDFS/fdfs_test.php
出现错误,
storage_upload_by_filename fail, result=22 tracker_query_storage_list fail, errno: 22 storage_upload_by_filename fail, result=22 tracker_query_storage_fetch fail, errno: 22 storage_download_file_to_file fail, errno: 5 storage_download_file_to_buff fail, errno: 5 set metadata result: 5 storage_get_metadata fail, errno: 5 delete file result: 5

tail -f trackerd.log
[2014-05-08 18:20:05] ERROR - file: tracker_service.c, line: 2277, cmd=105, client ip: 192.168.1.9, package size 16 is not correct, expect length > 38
[2014-05-08 18:22:40] ERROR - file: tracker_service.c, line: 2277, cmd=105, client ip: 192.168.1.9, package size 16 is not correct, expect length > 38
[2014-05-08 18:23:58] ERROR - file: tracker_service.c, line: 2277, cmd=105, client ip: 192.168.1.9, package size 16 is not correct, expect length > 38
[2014-05-08 18:29:16] ERROR - file: tracker_service.c, line: 2277, cmd=105, client ip: 192.168.1.9, package size 16 is not correct, expect length > 38
[2014-05-08 18:31:49] ERROR - file: tracker_service.c, line: 2277, cmd=105, client ip: 192.168.1.9, package size 16 is not correct, expect length > 38
[2014-05-08 18:33:25] ERROR - file: tracker_service.c, line: 2277, cmd=105, client ip: 192.168.1.9, package size 16 is not correct, expect length > 38
[2014-05-09 08:13:14] ERROR - file: tracker_service.c, line: 2277, cmd=105, client ip: 192.168.1.9, package size 16 is not correct, expect length > 38
[2014-05-09 08:13:19] ERROR - file: tracker_service.c, line: 2277, cmd=105, client ip: 192.168.1.9, package size 16 is not correct, expect length > 38
[2014-05-09 08:20:54] ERROR - file: tracker_service.c, line: 2277, cmd=105, client ip: 192.168.1.9, package size 16 is not correct, expect length > 38
[2014-05-09 08:20:58] ERROR - file: tracker_service.c, line: 2277, cmd=105, client ip: 192.168.1.9, package size 16 is not correct, expect length > 38
[2014-05-09 08:37:53] ERROR - file: tracker_service.c, line: 2277, cmd=105, client ip: 192.168.1.9, package size 16 is not correct, expect length > 38
[2014-05-09 08:40:09] ERROR - file: tracker_service.c, line: 2277, cmd=105, client ip: 192.168.1.9, package size 16 is not correct, expect length > 38
[2014-05-09 08:44:11] ERROR - file: tracker_service.c, line: 2277, cmd=105, client ip: 192.168.1.9, package size 16 is not correct, expect length > 38
[2014-05-09 08:45:27] ERROR - file: tracker_service.c, line: 2277, cmd=105, client ip: 192.168.1.9, package size 16 is not correct, expect length > 38
[2014-05-09 08:47:13] ERROR - file: tracker_service.c, line: 2277, cmd=105, client ip: 192.168.1.9, package size 16 is not correct, expect length > 38
[2014-05-09 08:47:20] ERROR - file: tracker_service.c, line: 2277, cmd=105, client ip: 192.168.1.9, package size 16 is not correct, expect length > 38
[2014-05-09 08:47:42] ERROR - file: tracker_service.c, line: 2277, cmd=105, client ip: 192.168.1.9, package size 16 is not correct, expect length > 38



tail -f /home/fastdfs/storage/logs/storaged.log
[2014-05-08 15:59:06] INFO - file: storage_sync.c, line: 2698, successfully connect to storage server 192.168.1.229:23000
[2014-05-08 18:07:41] ERROR - file: storage_service.c, line: 4435, client ip: 192.168.1.9, pkg length is not correct, invalid file bytes: 35, total body length: 4722
[2014-05-08 18:11:26] ERROR - file: storage_service.c, line: 4435, client ip: 192.168.1.9, pkg length is not correct, invalid file bytes: 35, total body length: 4722
[2014-05-08 18:13:08] ERROR - file: storage_service.c, line: 4435, client ip: 192.168.1.9, pkg length is not correct, invalid file bytes: 35, total body length: 4722
[2014-05-08 18:16:03] ERROR - file: storage_service.c, line: 4435, client ip: 192.168.1.9, pkg length is not correct, invalid file bytes: 35, total body length: 4722
[2014-05-08 18:22:41] ERROR - file: storage_service.c, line: 4435, client ip: 192.168.1.9, pkg length is not correct, invalid file bytes: 35, total body length: 4722
[2014-05-08 18:29:17] ERROR - file: storage_service.c, line: 4435, client ip: 192.168.1.9, pkg length is not correct, invalid file bytes: 35, total body length: 4722
[2014-05-08 18:33:26] ERROR - file: storage_service.c, line: 4435, client ip: 192.168.1.9, pkg length is not correct, invalid file bytes: 33, total body length: 4720
[2014-05-09 08:13:19] ERROR - file: storage_service.c, line: 4435, client ip: 192.168.1.9, pkg length is not correct, invalid file bytes: 33, total body length: 4720
[2014-05-09 08:20:58] ERROR - file: storage_service.c, line: 4435, client ip: 192.168.1.9, pkg length is not correct, invalid file bytes: 33, total body length: 4720
[2014-05-09 08:44:12] ERROR - file: storage_service.c, line: 4435, client ip: 192.168.1.9, pkg length is not correct, invalid file bytes: 33, total body length: 4720
[2014-05-09 08:47:14] ERROR - file: storage_service.c, line: 4435, client ip: 192.168.1.9, pkg length is not correct, invalid file bytes: 33, total body length: 60649
[2014-05-09 08:47:43] ERROR - file: storage_service.c, line: 4435, client ip: 192.168.1.9, pkg length is not correct, invalid file bytes: 33, total body length: 60649


请问是什么问题啊。!?


论坛徽章:
0
2 [报告]
发表于 2014-05-09 09:32 |只看该作者
没人回复,自己顶。

论坛徽章:
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 [报告]
发表于 2014-05-09 10:59 |只看该作者
php 扩展模块和FDFS server端的版本不匹配么?

论坛徽章:
0
4 [报告]
发表于 2014-05-09 20:48 |只看该作者
php扩展最新版在哪下的,我是google code里下来的

论坛徽章:
0
5 [报告]
发表于 2014-05-09 20:51 |只看该作者
回复 4# lifeblood
php client api 的版本是V1.6

FASTDFS版本是 5.01

   

论坛徽章:
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
6 [报告]
发表于 2014-05-09 22:27 |只看该作者
哎呀,FastDFS内置的扩展模块!
纯PHP实现,早就废弃了!

论坛徽章:
0
7 [报告]
发表于 2014-05-10 07:46 |只看该作者
本帖最后由 lifeblood 于 2014-05-10 07:49 编辑

 悲剧,您的意思要用fastDFS里php扩展目录里的测试程序?
这几天把PHP程序看了一个遍。。
回单位再去试下

论坛徽章:
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
8 [报告]
发表于 2014-05-10 08:54 |只看该作者
使用FDFS自带的PHP扩展模块及测试程序!

论坛徽章:
0
9 [报告]
发表于 2014-05-10 15:15 |只看该作者
回复 8# happy_fish100

谢谢版主,想再问个问题,默认的软链接目录是M00,这个配置是在哪里设置的,如果再加M01,M02要在哪里配置?   

论坛徽章:
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
10 [报告]
发表于 2014-05-10 20:08 |只看该作者
M后面的是存储路径(硬盘挂载点)序号,M00表示第一个存储路径,M01表示第二个存储路径,以此类推。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP