Advertisement
pa4ka

Untitled

Sep 1st, 2018
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. fatal: [noc1office]: FAILED! => { "changed": true, "cmd": [ "/usr/bin/mongo", "admin", "/etc/mongod/admininit.js" ], "delta": "0:00:00.106297", "end": "2018-09-01 20:23:35.179633", "rc": 253, "start": "2018-09-01 20:23:35.073336" } STDOUT: MongoDB shell version v3.6.7 connecting to: mongodb://127.0.0.1:27017/admin MongoDB server version: 3.6.7 2018-09-01T20:23:35.174+0300 E QUERY [thread1] Error: couldn't add user: not authorized on admin to execute command { createUser: "root", pwd: "xxx", roles: [ "root" ], digestPassword: false, writeConcern: { w: "majority", wtimeout: 600000.0 }, $clusterTime: { clusterTime: Timestamp(1535822609, 1), signature: { hash: BinData(0, B6E94D3478AA947422752310F118A54676EFF782), keyId: 6596167978142662658 } }, $db: "admin" } : _getErrorWithCode@src/mongo/shell/utils.js:25:13 DB.prototype.createUser@src/mongo/shell/db.js:1437:15 @/etc/mongod/admininit.js:4:1 failed to load: /etc/mongod/admininit.js MSG: non-zero return code
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement