Ubuntu Pastebin

Paste from kina_ at Mon, 25 Jul 2016 15:29:43 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
$ mongo --ssl -u machine-0 -p $(sudo grep statepass /var/lib/juju/agents/machine-0/agent.conf | awk '{print $2}') localhost:37017/admin
MongoDB shell version: 2.6.10
connecting to: localhost:37017/admin
2016-07-25T15:20:14.032+0000 Error: 18 { ok: 0.0, errmsg: "auth failed", code: 18 } at src/mongo/shell/db.js:1287
exception: login failed

$ mongo --ssl -u admin -p $(sudo grep oldpass /var/lib/juju/agents/machine-0/agent.conf | awk '{print $2}') localhost:37017/admin
MongoDB shell version: 2.6.10
connecting to: localhost:37017/admin
2016-07-25T15:22:08.287+0000 Error: 18 { ok: 0.0, errmsg: "auth failed", code: 18 } at src/mongo/shell/db.js:1287
exception: login failed

# With mongodb-org-shell v3.2.8
$ mongo --ssl -u admin -p $(sudo grep oldpass /var/lib/juju/agents/machine-0/agent.conf | awk '{print $2}') localhost:37017/adminMongoDB shell version: 3.2.8
connecting to: localhost:37017/admin
2016-07-25T15:28:27.967+0000 E NETWORK  [thread1] SSL peer certificate validation failed: unable to get local issuer certificate
2016-07-25T15:28:27.968+0000 E QUERY    [thread1] Error: socket exception [CONNECT_ERROR] for SSL peer certificate validation failed: unable to get local issuer certificate :
connect@src/mongo/shell/mongo.js:231:14
@(connect):1:6

exception: connect failed


$ mongo --ssl -u machine-0 -p $(sudo grep statepass /var/lib/juju/agents/machine-0/agent.conf | awk '{print $2}') localhost:37017/admin
MongoDB shell version: 3.2.8
connecting to: localhost:37017/admin
2016-07-25T15:29:18.476+0000 E NETWORK  [thread1] SSL peer certificate validation failed: unable to get local issuer certificate
2016-07-25T15:29:18.476+0000 E QUERY    [thread1] Error: socket exception [CONNECT_ERROR] for SSL peer certificate validation failed: unable to get local issuer certificate :
connect@src/mongo/shell/mongo.js:231:14
@(connect):1:6

exception: connect failed
Download as text