@lalit.choudhary
-
Backup is enabled
-
I’m using local storage of the mongodb node, with pbm cli I able too create backup, so this should be OK.
-
PMM-client is installed on mongodb node, pmm-agent up and running.
root@vmccpipmongo1td:/home/admin $ pmm-admin status
Agent ID : /agent_id/16304382-ba6a-486b-a354-4fc128cdc9c8
Node ID : /node_id/595d815d-9257-42fd-8106-277dc0e3f23d
Node name: vmccpipmongo1td
PMM Server:
URL : https://10.140.225.154:8443/
Version: 2.37.0
PMM Client:
Connected : true
Time drift : 95.176µs
Latency : 312.545µs
Connection uptime: 100
pmm-admin version: 2.37.0
pmm-agent version: 2.37.0
Agents:
/agent_id/2f33a325-7cfd-4ec8-9c26-0a3499e33401 vmagent Running 42000
/agent_id/36174260-32f5-49eb-9f3f-93041c545d00 mongodb_exporter Running 42001
/agent_id/41d72d4f-18cf-463d-864a-b32cb0e3b532 mongodb_profiler_agent Running 0
/agent_id/771a7389-a593-437d-b5f0-8d60e950fde8 node_exporter Running 42002
-
PBM is intalled on mongodb node, it is up and running. I able to do backup from cli, so the configuraiton should be OK.
-
pmm is run with root user, and root is able to use mongod binary from anywhere
$ echo $PATH
/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/opt/puppetlabs/bin
-
Mongodb node added as cluster
-
mongodb node run as rs
rs0 [direct: primary] test> rs.status
[Function: status] AsyncFunction {
apiVersions: [ 0, 0 ],
returnsPromise: true,
serverVersions: [ '0.0.0', '999.999.999' ],
topologies: [ 'ReplSet', 'Sharded', 'LoadBalanced', 'Standalone' ],
returnType: { type: 'unknown', attributes: {} },
deprecated: false,
platforms: [ 'Compass', 'Browser', 'CLI' ],
isDirectShellCommand: false,
acceptsRawInput: false,
shellCommandCompleter: undefined,
help: [Function (anonymous)] Help
}
- pmm has pmm user and pbm has pbm user in mongodb, and both have all the rights which was described in the related documentation
{
_id: 'admin.pbmuser',
userId: new UUID("830caf50-effe-410d-a13f-04d084782d3f"),
user: 'pbmuser',
db: 'admin',
roles: [
{ role: 'restore', db: 'admin' },
{ role: 'readWrite', db: 'admin' },
{ role: 'clusterMonitor', db: 'admin' },
{ role: 'pbmAnyAction', db: 'admin' },
{ role: 'backup', db: 'admin' }
],
mechanisms: [ 'SCRAM-SHA-1', 'SCRAM-SHA-256' ]
},
{
_id: 'admin.pmm',
userId: new UUID("c50c830c-9464-4542-9c5c-f780e8d1f0b2"),
user: 'pmm',
db: 'admin',
roles: [
{ role: 'readWrite', db: 'admin' },
{ role: 'explainRole', db: 'admin' },
{ role: 'restore', db: 'admin' },
{ role: 'read', db: 'local' },
{ role: 'backup', db: 'admin' },
{ role: 'pbmAnyAction', db: 'admin' },
{ role: 'clusterMonitor', db: 'admin' }
],
mechanisms: [ 'SCRAM-SHA-1', 'SCRAM-SHA-256' ]
}
- I dont see any issue here.
So to summarize the installation I dont see any issue here. What I don’t understand is that:
If the pbm cli backup works properly why pmm compains to pbm config erro ???
10 14:27:24 vmccpipmongo1td pmm-agent[2128860]: pbm config error: {"Error":"connect to mongodb: create mongo connection: mongo ping: server selection error: server selection timeout, current topology: { Type: Unknown, Servers: [{ Addr: 10.140.225.153:27017, Type: Unknown, Last error: connection(10.140.225.153:27017[-64]) socket was unexpectedly closed: EOF }, ] }"}
From where pmm should get the pba configuration? How to double check this settings ?