weixin_39595621
2020-11-23 04:25 阅读 72

Oplog Tailer initialize failed: no oplog ns in mongo

when use sharding sync, conf urls: mongo_urls = mongodb://sync:password.168.123.10:27021;192.168.123.20:27022;192.168.123.30:27023

but when exec: ./bin/collector -conf=conf/collector.conf

it issue : [17:15:37 HKT 2018/12/18] [CRIT] (mongoshake/collector.(*ReplicationCoordinator).sanitizeMongoDB:67) There has no oplog collection in mongo db server Oplog Tailer initialize failed: no oplog ns in mongo

what is happen?

该提问来源于开源项目:alibaba/MongoShake

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

18条回答 默认 最新

  • weixin_39880621 weixin_39880621 2020-11-23 04:25

    the source in your configuration is mongos ? If not, check the local.oplog.rs collection in your database.

    点赞 评论 复制链接分享
  • weixin_39595621 weixin_39595621 2020-11-23 04:25

    yes,my env is: shard1 master: 192.168.123.10:27021 shard2 master: 192.168.123.20:27022 shard3 master: 192.168.123.30:27023

    and when i connetc it use mongo shell,i can see the local.oplog.rs

    shard1_zxl:PRIMARY> use local; switched to db local shard1_zxl:PRIMARY> show tables; me oplog.rs replset.election replset.minvalid startup_log system.replset

    点赞 评论 复制链接分享
  • weixin_39880621 weixin_39880621 2020-11-23 04:25

    It doesn't make sense, so you can connect to each shard successfully in replicaSet module?

    点赞 评论 复制链接分享
  • weixin_39880621 weixin_39880621 2020-11-23 04:25

    any progress?

    点赞 评论 复制链接分享
  • weixin_39595621 weixin_39595621 2020-11-23 04:25

    i am sorry,i reply late,i want to say is: i use is not mongos connect,i connect is sharding master shard1 master: 192.168.123.10:27021 shard2 master: 192.168.123.20:27022 shard3 master: 192.168.123.30:27023 config file is mongo_urls = mongodb://sync:password.168.123.10:27021;192.168.123.20:27022;192.168.123.30:27023

    点赞 评论 复制链接分享
  • weixin_39880621 weixin_39880621 2020-11-23 04:25

    So each shard have local.oplog.rs inside?

    点赞 评论 复制链接分享
  • weixin_39595621 weixin_39595621 2020-11-23 04:25

    yes

    点赞 评论 复制链接分享
  • weixin_39595621 weixin_39595621 2020-11-23 04:25

    if i use mongo_urls = mongodb://sync:password.168.123.10:27021 it can sync normal

    点赞 评论 复制链接分享
  • weixin_39595621 weixin_39595621 2020-11-23 04:25

    i use one sharding master,the log will issuse: [EEROR] [collector.(*OplogSyncer).next:259] oplog collection capped error, users should fix it manually

    点赞 评论 复制链接分享
  • weixin_39880621 weixin_39880621 2020-11-23 04:25

    please check out "collection capped error" question in faq

    点赞 评论 复制链接分享
  • weixin_39595621 weixin_39595621 2020-11-23 04:25

    what is the problem i use sharding url: mongo_urls = mongodb://sync:password.168.123.10:27021;192.168.123.20:27022;192.168.123.30:27023 ?

    点赞 评论 复制链接分享
  • weixin_39880621 weixin_39880621 2020-11-23 04:25

    You can follow this source code (mongoshake/collector.(*ReplicationCoordinator).sanitizeMongoDB:67) to debug.

    点赞 评论 复制链接分享
  • weixin_39595621 weixin_39595621 2020-11-23 04:25

    how to do?

    点赞 评论 复制链接分享
  • weixin_39880621 weixin_39880621 2020-11-23 04:25

    please reopen this issue if anyone has the same question

    点赞 评论 复制链接分享
  • weixin_39941792 weixin_39941792 2020-11-23 04:25

    please reopen this issue if anyone has the same question

    [2020/08/27 15:06:13 CST] [INFO] New session to mongodb://sync:-wz*41.mongodb.rds.aliyuncs.com:3717 successfully [2020/08/27 15:06:13 CST] [CRIT] There has no oplog collection in mongo db server

    点赞 评论 复制链接分享
  • weixin_39880621 weixin_39880621 2020-11-23 04:25

    checkout wiki faq

    点赞 评论 复制链接分享
  • weixin_39941792 weixin_39941792 2020-11-23 04:25

    源库是aliyun的mongodb复制集, mongoshell 看是有的 mgset-33021339:PRIMARY> show tables oplog.rs replset.oplogTruncateAfterPoint

    点赞 评论 复制链接分享
  • weixin_39880621 weixin_39880621 2020-11-23 04:25

    看下wiki里面faq的说明,有问题请重开一个issue

    点赞 评论 复制链接分享

相关推荐