Deploying of MongoDB cluster fails
Hi!
I tried to set up a MongoDB ReplicaSet. All goes well until it tries to initiate the cluster. I get the following error messages:
-
[14:48:44]: Failed to initiate replicaset my_mongodb_1. Error:
not authorized on admin to execute command { replSetInitiate: { _id: "my_mongodb_1", members: [ { _id: 0.0, host: "server1.example.com:27017", arbiterOnly: false, hidden: false, priority: 1.0, slaveDelay: 0.0, votes: 1.0 }, { _id: 1.0, host: "server2.example.com:27017", arbiterOnly: false, hidden: false, priority: 1.0, slaveDelay: 0.0, votes: 1.0 }, { _id: 2.0, host: "server3.example.com:27017", arbiterOnly: false, hidden: false, priority: 1.0, slaveDelay: 0.0, votes: 1.0 } ] }, $db: "admin" } - [14:48:44]: server3.example.com:27017: Evaluating command by mongo client on the remote host: JSON.stringify(rs.initiate({_id: "my_mongodb_1", members: [{_id: 0, host: "server1.example.com:27017" , arbiterOnly: false, hidden: false, priority: 1, slaveDelay: 0, votes: 1},{_id: 1, host: "server2.example.com:27017" , arbiterOnly: false, hidden: false, priority: 1, slaveDelay: 0, votes: 1},{_id: 2, host: "server3.example.com:27017" , arbiterOnly: false, hidden: false, priority: 1, slaveDelay: 0, votes: 1}]}));
-
[14:48:44]: server3.example.com: Initiating replicaset my_mongodb_1.
Please note the attached screenshots. Those show my config for the cluster minus the nodes.
-
Official comment
Hi,
We can't reproduce this.
Could you do go to the Activity Viewer (Activity in the UI), select the failed job, copy the job spect and log messages and paste them here. See screenshots.
Press "Expand Job Specs", copy paste what you see. Also press "Copy to clipboard" to get the job messages.If it contains sensitive data then you can create a support issue here:https://support.severalnines.com/hc/en-us (Create Support Request).
BRjohan
Comment actions
Please sign in to leave a comment.
Comments
1 comment