免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: happy_fish100
打印 上一主题 下一主题

[FastDFS] FastDFS FAQ (欢迎反馈,我将及时整理) [复制链接]

论坛徽章:
0
101 [报告]
发表于 2015-06-30 14:17 |只看该作者
您好,版主。我们公司现在在用fastdfs做文件服务器。现在的服务器架构是两台trackerd服务器,两台storaged服务器。trackerd上的软件是nginx1.6  fastdfs5.02 php5.3.29。。。 storaged上的nginx扩展是1.16 。。。之前使用test命令分别在两台trackerd上测试是没有问题的。文件上传到一台storage可以同步到另一台storage。。。。现在的问题是使用生产环境的php程序上传文件之后不能同步。。。两台storage服务器的状态全部是active。跪求大神帮忙。。。我的QQ是:598929084

论坛徽章:
0
102 [报告]
发表于 2015-07-02 18:29 |只看该作者
php5.6版本 的fastdfs 应该用哪个版本呢,或者兼容php 5.6+版本?

论坛徽章:
2
2015年辞旧岁徽章
日期:2015-03-03 16:54:15IT运维版块每日发帖之星
日期:2015-07-13 23:10:20
103 [报告]
发表于 2015-07-10 10:05 |只看该作者
您好,版主,我现在在线的一组fastdfs,有一台storage,mark文件无故被清空了,想问下是为什么

[2015-07-10 10:03:26] ERROR - file: tracker_client_thread.c, line: 290, connect to tracker server 【server1 ip】:22122 fail, errno: 4, error info: Interrupted system call
[2015-07-10 10:03:26] ERROR - file: tracker_client_thread.c, line: 290, connect to tracker server 【server2 ip】:22122 fail, errno: 4, error info: Interrupted system call
[2015-07-10 10:03:30] ERROR - file: storage_sync.c, line: 1946, in mark file "/opt/fdfs/storage/data/sync/【server1 ip】_23000.mark", item count: 0 < 7
[2015-07-10 10:03:30] CRIT - file: storage_sync.c, line: 2762, storage_reader_init fail, errno=2, program exit!
[2015-07-10 10:03:30] ERROR - file: storage_sync.c, line: 1946, in mark file "/opt/fdfs/storage/data/sync/【server2 ip】_23000.mark", item count: 0 < 7
[2015-07-10 10:03:30] CRIT - file: storage_sync.c, line: 2762, storage_reader_init fail, errno=2, program exit!

论坛徽章:
2
2015年辞旧岁徽章
日期:2015-03-03 16:54:15IT运维版块每日发帖之星
日期:2015-07-13 23:10:20
104 [报告]
发表于 2015-07-10 10:09 |只看该作者
顺便贴一下,凌晨三点的时候,发生错误时段的报警变化

[2015-07-10 03:20:00] ERROR - file: ../common/sockopt.c, line: 740, bind port 23000 failed, errno: 98, error info: Address already in use.
[2015-07-10 03:20:10] ERROR - file: ../common/sockopt.c, line: 740, bind port 23000 failed, errno: 98, error info: Address already in use.
[2015-07-10 03:20:20] ERROR - file: ../common/sockopt.c, line: 740, bind port 23000 failed, errno: 98, error info: Address already in use.
[2015-07-10 03:20:30] ERROR - file: ../common/sockopt.c, line: 740, bind port 23000 failed, errno: 98, error info: Address already in use.
[2015-07-10 03:20:34] ERROR - file: storage_sync.c, line: 1379, write to binlog file "/opt/fdfs/storage/data/sync/binlog.013" fail, fd=0, errno: 2, error info: No such file or directory
[2015-07-10 03:20:35] ERROR - file: storage_func.c, line: 164, write to file "/opt/fdfs/storage/data/sync/[server1 ip]_23000.mark" fail, error no: 28, error info: No space left on device
[2015-07-10 03:20:35] CRIT - file: storage_sync.c, line: 2886, storage_write_to_mark_file fail, program exit!
[2015-07-10 03:20:35] ERROR - file: storage_func.c, line: 164, write to file "/opt/fdfs/storage/data/sync/[server1 ip]_23000.mark" fail, error no: 28, error info: No space left on device
[2015-07-10 03:20:35] CRIT - file: storage_sync.c, line: 2966, storage_write_to_mark_file fail, program exit!
[2015-07-10 03:20:35] ERROR - file: storage_func.c, line: 164, write to file "/opt/fdfs/storage/data/sync/[server2 ip]_23000.mark" fail, error no: 28, error info: No space left on device
[2015-07-10 03:20:35] CRIT - file: storage_sync.c, line: 2966, storage_write_to_mark_file fail, program exit!
[2015-07-10 03:20:41] ERROR - file: ../common/sockopt.c, line: 740, bind port 23000 failed, errno: 98, error info: Address already in use.
[2015-07-10 03:20:51] ERROR - file: ../common/sockopt.c, line: 740, bind port 23000 failed, errno: 98, error info: Address already in use.
[2015-07-10 03:21:01] ERROR - file: ../common/sockopt.c, line: 740, bind port 23000 failed, errno: 98, error info: Address already in use.
[2015-07-10 03:21:11] ERROR - file: ../common/sockopt.c, line: 740, bind port 23000 failed, errno: 98, error info: Address already in use.
[2015-07-10 03:21:21] ERROR - file: ../common/sockopt.c, line: 740, bind port 23000 failed, errno: 98, error info: Address already in use.
[2015-07-10 03:21:31] ERROR - file: tracker_client_thread.c, line: 290, connect to tracker server 10.4.2.173:22122 fail, errno: 4, error info: Interrupted system call
[2015-07-10 03:21:31] ERROR - file: tracker_proto.c, line: 37, server: 10.17.34.1:22122, recv data fail, errno: 4, error info: Interrupted system call
[2015-07-10 03:21:34] ERROR - file: storage_sync.c, line: 1946, in mark file "/opt/fdfs/storage/data/sync/[server1 ip]_23000.mark", item count: 0 < 7
[2015-07-10 03:21:34] CRIT - file: storage_sync.c, line: 2762, storage_reader_init fail, errno=2, program exit!
[2015-07-10 03:21:34] ERROR - file: storage_sync.c, line: 1946, in mark file "/opt/fdfs/storage/data/sync/[server2 ip]_23000.mark", item count: 0 < 7
[2015-07-10 03:21:34] CRIT - file: storage_sync.c, line: 2762, storage_reader_init fail, errno=2, program exit!

论坛徽章:
2
2015年辞旧岁徽章
日期:2015-03-03 16:54:15IT运维版块每日发帖之星
日期:2015-07-13 23:10:20
105 [报告]
发表于 2015-07-10 11:04 |只看该作者
发现BUG触发机制了,把你邮箱地址私信我,跟你说BUG详情

论坛徽章:
0
106 [报告]
发表于 2015-07-17 16:07 |只看该作者
请教版主:  fastdfs 有没有 批量删除的功能, 比如我批量删除某个时间短内的数据?

论坛徽章:
0
107 [报告]
发表于 2015-07-22 11:38 |只看该作者
请问 上传是已返回storage的存储路径  可怎么查看文件内容呢

论坛徽章:
0
108 [报告]
发表于 2015-08-31 14:49 |只看该作者
回复 104# fjw6204


    不知道,你解决没有,我现在也是这个问题。storage.log 文件中是dos模式,我启动storage不成功,我怀疑是这个文件的问题。但是又不知道,怎么处理这个文件,我也转换过unix,但是不起作用。

论坛徽章:
2
2015年辞旧岁徽章
日期:2015-03-03 16:54:15IT运维版块每日发帖之星
日期:2015-07-13 23:10:20
109 [报告]
发表于 2015-09-03 14:34 |只看该作者
回复 109# friendly290


    我的问题是搞定了,不过不知道你的问题跟我是不是同一个问题,你把报错贴出来看看

论坛徽章:
0
110 [报告]
发表于 2015-09-06 13:25 |只看该作者
回复 1# happy_fish100


    配置Storage的存储目录时,设置在/root的子目录下(例如/root/fdfs/storage),会出现权限问题。

[2015-09-02 19:50:08] ERROR - file: /usr/local/src/fastdfs-nginx-module/src/common.c, line: 881, stat file: /root/fdfs/storage/data/00/00/Csf21FXlQm6AbprMAAC-izWwuYM810.jpg fail, errno: 13, error info: Permission denied
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP