免费注册 查看新帖 |

Chinaunix

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

[mogileFS] MogileFS上传文件报错 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2013-04-24 11:30 |只看该作者 |倒序浏览
[root@centos100 mogilefs]# mogtool --trackers=172.16.23.100:7500 --domain=mingdao --class=doc inject mogstored.conf mogconf
file mogconf: 6ea5a02ca49090431d733310363c530a, len = 92
Spawned child 15359 to deal with chunk number 1.
WARNING: Unable to save file 'mogconf': MogileFS::Backend: timed out after 3s against 172.16.23.100:7500 when sending command: [create_open domain=mingdao&fid=0&class=doc&multi_dest=1&key=mogconf
] at /usr/lib/perl5/site_perl/5.8.8/MogileFS/Client.pm line 268

System error message: MogileFS::Backend: timed out after 3s against 172.16.23.100:7500 when sending command: [create_open domain=mingdao&fid=0&class=doc&multi_dest=1&key=mogconf
] at /usr/lib/perl5/site_perl/5.8.8/MogileFS/Client.pm line 268

This was try #1 and it's been 3.00 seconds since we first tried.  Retrying...

上面的情况谁遇到过,难道是我perl脚本的问题吗?

上面提示268行有问题,我不懂perl,谁帮我看一下
  1. 260     # Extra args to be passed along with the create_open and create_close commands.
  2.     261     # Any internally generated args of the same name will overwrite supplied ones in
  3.     262     # these hashes.
  4.     263     my $create_open_args =  $opts->{create_open_args} || {};
  5.     264     my $create_close_args = $opts->{create_close_args} || {};
  6.     265
  7.     266     $self->run_hook('new_file_start', $self, $key, $class, $opts);
  8.     267
  9.     268     my $res = $self->{backend}->do_request
  10.     269         ("create_open", {
  11.     270             %$create_open_args,
  12.     271             domain => $self->{domain},
  13.     272             class  => $class,
  14.     273             key    => $key,
  15.     274             fid    => $opts->{fid} || 0, # fid should be specified, or pass 0 meaning to auto-generate one
  16.     275             multi_dest => 1,
  17.     276         }) or return undef;
  18.     277
  19.     278     my $dests = [];  # [ [devid,path], [devid,path], ... ]
  20.     279
  21.     280     # determine old vs. new format to populate destinations
  22.     281     unless (exists $res->{dev_count}) {
  23.     282         push @$dests, [ $res->{devid}, $res->{path} ];
复制代码

论坛徽章:
0
2 [报告]
发表于 2013-04-24 12:29 |只看该作者
不好意思,上面是我把端口搞错了。现在纠正了。但是我启动的时候为啥总是报404呢,这个有知道怎么解决的吗?
  1. [mogile@centos100 ~]$ mogilefsd -c /etc/mogilefs/mogilefsd.conf
  2. [Wed Apr 24 20:29:03 2013] beginning run
  3. [Wed Apr 24 20:29:03 2013] Job monitor has only 0, wants 1, making 1.
  4. [Wed Apr 24 20:29:03 2013] [monitor(16924)] Port 7500 not listening on 172.16.23.100 (http://172.16.23.100:7500/dev16777215/usage)?  Error was: 404 Not Found
  5. [Wed Apr 24 20:29:04 2013] Job replicate has only 0, wants 5, making 5.
  6. [Wed Apr 24 20:29:04 2013] Job delete has only 0, wants 1, making 1.
  7. [Wed Apr 24 20:29:04 2013] Job queryworker has only 0, wants 10, making 10.
  8. [Wed Apr 24 20:29:04 2013] Job reaper has only 0, wants 1, making 1.
  9. [Wed Apr 24 20:29:04 2013] Job job_master has only 0, wants 1, making 1.
  10. [Wed Apr 24 20:29:04 2013] Job fsck has only 0, wants 1, making 1.
  11. [Wed Apr 24 20:29:06 2013] [monitor(16924)] Port 7500 not listening on 172.16.23.100 (http://172.16.23.100:7500/dev16777215/usage)?  Error was: 404 Not Found
  12. [Wed Apr 24 20:29:09 2013] [monitor(16924)] Port 7500 not listening on 172.16.23.100 (http://172.16.23.100:7500/dev16777215/usage)?  Error was: 404 Not Found
  13. [Wed Apr 24 20:29:12 2013] [monitor(16924)] Port 7500 not listening on 172.16.23.100 (http://172.16.23.100:7500/dev16777215/usage)?  Error was: 404 Not Found
  14. [Wed Apr 24 20:29:13 2013] ending run due to SIGINT
复制代码
如果忽略以上信息,上传文件还是会报错
  1. [root@centos100 ~]# mogtool inject install.log logkey --trackers=172.16.23.100:7001  --domain=mingdao
  2. file logkey: a81c0b848d24e8745fa6f549b7830737, len = 60083
  3. Spawned child 17038 to deal with chunk number 1.
  4. WARNING: Unable to save file 'logkey': Unable to create new file at /usr/bin/mogtool line 826, <Sock_172.16.23.100:7001> line 1.

  5. System error message: Unable to create new file at /usr/bin/mogtool line 826, <Sock_172.16.23.100:7001> line 1.

  6. This was try #1 and it's been 0.01 seconds since we first tried.  Retrying...
复制代码
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP