免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 9068 | 回复: 4

[FastDFS] 运行fdfs_monitor查看storage服务器是否登记到tracker时报错 怎解~~ [复制链接]

论坛徽章:
0
发表于 2015-01-06 15:36 |显示全部楼层
[[root@localhost ~]# '/usr/local/FastDFS/bin/fdfs_monitor' '/etc/fdfs/storage.conf'
[2015-01-07 07:10:01] DEBUG - base_path=/home/fastdfs, connect_timeout=30, network_timeout=60, tracker_server_count=2, anti_steal_token=0, anti_steal_secret_key length=0, use_connection_pool=0, g_connection_pool_max_idle_time=3600s, use_storage_id=0, storage server id count: 0

server_count=2, server_index=0

tracker server is 192.168.19.56:22122

group count: 2

Group 1:
group name = group1
disk total space = 0 MB
disk free space = 0 MB
trunk free space = 0 MB
storage server count = 2
active server count = 0
storage server port = 23000
storage HTTP port = 8888
store path count = 1
subdir count per path = 256
current write server index = 0
current trunk file id = 0

[2015-01-07 07:10:01] ERROR - file: ../client/tracker_client.c, line: 338, tracker server 192.168.19.56:22122 response data length: 1224 is invalid

Group 2:
group name = group2
disk total space = 0 MB
disk free space = 0 MB
trunk free space = 0 MB
storage server count = 1
active server count = 0
storage server port = 23000
storage HTTP port = 8888
store path count = 1
subdir count per path = 256
current write server index = 0
current trunk file id = 0

[2015-01-07 07:10:01] ERROR - file: ../client/tracker_client.c, line: 338, tracker server 192.168.19.56:22122 response data length: 612 is invalid
[root@localhost ~]#

论坛徽章:
0
发表于 2015-01-13 15:05 |显示全部楼层
同问,java调用也遇到同样问题,使用的版本是v5.0.4

论坛徽章:
0
发表于 2015-01-13 15:34 |显示全部楼层
找到原因了,之前使用的java版本是5.0.1,现在使用的是5.0.4,版本升级以后多了几个字节,不过不知道为什么你使用的这个自带的monitor为什么也会报这样的错了

论坛徽章:
0
发表于 2017-03-22 18:12 |显示全部楼层
本帖最后由 jfhgmv 于 2017-03-22 21:51 编辑

今天也遇到这个错了,2 台机器分别运行 Tracker 和 Storage ,版本都是 5.0.9;节点 1 的 fdfs_monitor 正常,节点 2 的 fdfs_monitor 报错和 1 楼一样。排查下来是没有调用 libfastcommon 这个库,正常的信息如下:
  1. ldd /usr/bin/fdfs_monitor
  2.         linux-vdso.so.1 =>  (0x00007ffe07934000)
  3.         libpthread.so.0 => /lib64/libpthread.so.0 (0x00007eff9fc14000)
  4.         libfastcommon.so => /lib/libfastcommon.so (0x00007eff9f9db000)
  5.         libc.so.6 => /lib64/libc.so.6 (0x00007eff9f619000)
  6.         /lib64/ld-linux-x86-64.so.2 (0x00007eff9fe39000)
  7.         libm.so.6 => /lib64/libm.so.6 (0x00007eff9f317000)
复制代码


报错的节点 2,可执行文件也不 /usr/bin/ 目录下的:
  1. which fdfs_monitor
  2. /usr/local/bin/fdfs_monitor
复制代码

也没有去加载 libfastcommon.so 这个库文件,重新编译安装就好了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP