Skip to content

Mongo 3.6 : Could not evaluate: Can't connect to any member of replicaset rsmain #464

@Dharmender-Singh

Description

@Dharmender-Singh

Hi,

We are trying to setup the replication using this module but getting following error :

Notice: /Stage[main]/Mongodb::Replset/Mongodb_replset[rsmain]/ensure: created Warning: Can't connect to replicaset member 192.168.33.5:8080. Warning: Can't connect to replicaset member 192.168.33.6:8080. Warning: Can't connect to replicaset member 192.168.33.7:8080. Error: /Stage[main]/Mongodb::Replset/Mongodb_replset[rsmain]: Could not evaluate: Can't connect to any member of replicaset rsmain.

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 5.3.2
  • Ruby: 2..0.0
  • Distribution: Centos 7.4.1708 (Core)
  • Module version: 2.1.2

How to reproduce (e.g Puppet code you use)

  1. Create three AWS EC2 instances with port 8080 open
  2. Set the replication configuration :
    class { 'mongodb::server': auth => false, verbose => true, port => $port, dbpath => $dbpath, logpath => $logpath, service_ensure => stopped, replset => 'rsmain', replset_config => { 'rsmain' => { ensure => present, members => ['192.168.33.5:8080', '192.168.33.6:8080', '192.168.33.7:8080'] } } }
  3. Execute Puppet Apply

What are you seeing

Error: /Stage[main]/Mongodb::Replset/Mongodb_replset[rsmain]: Could not evaluate: Can't connect to any member of replicaset rsmain.

What behaviour did you expect instead

Replication should work

Output log

Please refer to the attached file for debug log
Error_Log.txt

Any additional information you'd like to impart

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions