Hi,
I’m trying to set up PBM for testing in a cluster consisting of one Data RS and one Config RS (3+3 nodes).
I was able to start pbm-agent on the Config RS nodes, but I’m getting the following error when trying to start it on the data nodes:
# sudo -u mongod pbm-agent --mongodb-uri "mongodb://pbmuser:pbmuser@localhost:27018/?authSource=admin"
2025-01-24T10:30:54.000+0000 E Exit: connect to PBM: create mongo connection to configsvr: ping: connection() error occurred during connection handshake: auth error: sasl conversation error: unable to authenticate using mechanism "SCRAM-SHA-1": (AuthenticationFailed) Authentication failed.
I encounter the same issue when starting it via systemctl with PBM_MONGODB_URI.
The pbmuser account has been created on both replica sets with the same properties.
According to mongodb logs pbm-agent disconnects itself for some reason:
2025-01-24T10:06:10.455249+00:00 sjc03-t05-ldb01 INFO mongod[1593975]:
{
"t":{
"$date":"2025-01-24T10:06:10.455+00:00"
},
"s":"I",
"c":"NETWORK",
"id":22943,
"ctx":"listener",
"msg":"Connection accepted",
"attr":{
"remote":"127.0.0.1:48620",
"uuid":"613b96bb-6ce5-4afc-b158-e5be3fcdd246",
"connectionId":1801,
"connectionCount":7
}
}
2025-01-24T10:06:10.456433+00:00 sjc03-t05-ldb01 INFO mongod[1593975]:
{
"t":{
"$date":"2025-01-24T10:06:10.456+00:00"
},
"s":"I",
"c":"NETWORK",
"id":51800,
"ctx":"conn1801",
"msg":"client metadata",
"attr":{
"remote":"127.0.0.1:48620",
"client":"conn1801",
"doc":{
"application":{
"name":"pbm-agent"
},
"driver":{
"name":"mongo-go-driver",
"version":"1.16.0"
},
"os":{
"type":"linux",
"architecture":"amd64"
},
"platform":"go1.22.8"
}
}
}
2025-01-24T10:06:10.458127+00:00 sjc03-t05-ldb01 INFO mongod[1593975]:
{
"t":{
"$date":"2025-01-24T10:06:10.458+00:00"
},
"s":"I",
"c":"NETWORK",
"id":22944,
"ctx":"conn1801",
"msg":"Connection ended",
"attr":{
"remote":"127.0.0.1:48620",
"uuid":"613b96bb-6ce5-4afc-b158-e5be3fcdd246",
"connectionId":1801,
"connectionCount":6
}
}
2025-01-24T10:06:10.458680+00:00 sjc03-t05-ldb01 INFO mongod[1593975]:
{
"t":{
"$date":"2025-01-24T10:06:10.458+00:00"
},
"s":"I",
"c":"NETWORK",
"id":22943,
"ctx":"listener",
"msg":"Connection accepted",
"attr":{
"remote":"10.16.128.160:37568",
"uuid":"c8603449-0c37-4c51-bd12-5485642efef2",
"connectionId":1802,
"connectionCount":7
}
}
2025-01-24T10:06:10.459367+00:00 sjc03-t05-ldb01 INFO mongod[1593975]: {"t":{"$date":"2025-01-24T10:06:10.459+00:00"},"s":"I", "c":"NETWORK", "id":51800, "ctx":"conn1802","msg":"client metadata","attr":{"remote":"10.16.128.160:37568","client":"conn1802","doc":{"application":{"name":"pbm-agent"},"driver":{"name":"mongo-go-driver","version":"1.16.0"},"os":{"type":"linux","architecture":"amd64"},"platform":"go1.22.8"}}}
2025-01-24T10:06:10.460526+00:00 sjc03-t05-ldb01 INFO mongod[1593975]: {"t":{"$date":"2025-01-24T10:06:10.460+00:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"10.16.128.160:37580","uuid":"5705fce7-0431-4558-941a-bb2152e233b8","connectionId":1803,"connectionCount":8}}
2025-01-24T10:06:10.461003+00:00 sjc03-t05-ldb01 INFO mongod[1593975]: {"t":{"$date":"2025-01-24T10:06:10.460+00:00"},"s":"I", "c":"NETWORK", "id":51800, "ctx":"conn1803","msg":"client metadata","attr":{"remote":"10.16.128.160:37580","client":"conn1803","doc":{"application":{"name":"pbm-agent"},"driver":{"name":"mongo-go-driver","version":"1.16.0"},"os":{"type":"linux","architecture":"amd64"},"platform":"go1.22.8"}}}
2025-01-24T10:06:10.461359+00:00 sjc03-t05-ldb01 INFO mongod[1593975]: {"t":{"$date":"2025-01-24T10:06:10.461+00:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"10.16.128.160:37582","uuid":"bb043ede-59a3-49cf-822b-6124264a729c","connectionId":1804,"connectionCount":9}}
2025-01-24T10:06:10.461769+00:00 sjc03-t05-ldb01 INFO mongod[1593975]: {"t":{"$date":"2025-01-24T10:06:10.461+00:00"},"s":"I", "c":"NETWORK", "id":51800, "ctx":"conn1804","msg":"client metadata","attr":{"remote":"10.16.128.160:37582","client":"conn1804","doc":{"application":{"name":"pbm-agent"},"driver":{"name":"mongo-go-driver","version":"1.16.0"},"os":{"type":"linux","architecture":"amd64"},"platform":"go1.22.8"}}}
2025-01-24T10:06:10.477184+00:00 sjc03-t05-ldb01 INFO mongod[1593975]:
{
"t":{
"$date":"2025-01-24T10:06:10.477+00:00"
},
"s":"I",
"c":"ACCESS",
"id":20250,
"ctx":"conn1804",
"msg":"Authenticationsucceeded",
"attr":{
"mechanism":"SCRAM-SHA-256",
"speculative":true,
"principalName":"pbmuser",
"authenticationDatabase":"admin",
"remote":"10.16.128.160:37582",
"extraInfo":{
}
}
}
2025-01-24T10:06:10.481116+00:00 sjc03-t05-ldb01 INFO mongod[1593975]:
{
"t":{
"$date":"2025-01-24T10:06:10.481+00:00"
},
"s":"I",
"c":"-",
"id":20883,
"ctx":"conn1802",
"msg":"Interrupted operation as its client disconnected",
"attr":{
"opId":6446527
}
}
2025-01-24T10:06:10.481423+00:00 sjc03-t05-ldb01 INFO mongod[1593975]: {"t":{"$date":"2025-01-24T10:06:10.481+00:00"},"s":"I", "c":"NETWORK", "id":22944, "ctx":"conn1804","msg":"Connection ended","attr":{"remote":"10.16.128.160:37582","uuid":"bb043ede-59a3-49cf-822b-6124264a729c","connectionId":1804,"connectionCount":8}}
2025-01-24T10:06:10.481900+00:00 sjc03-t05-ldb01 INFO mongod[1593975]: {"t":{"$date":"2025-01-24T10:06:10.481+00:00"},"s":"I", "c":"NETWORK", "id":22944, "ctx":"conn1803","msg":"Connection ended","attr":{"remote":"10.16.128.160:37580","uuid":"5705fce7-0431-4558-941a-bb2152e233b8","connectionId":1803,"connectionCount":7}}
2025-01-24T10:06:10.482299+00:00 sjc03-t05-ldb01 INFO mongod[1593975]: {"t":{"$date":"2025-01-24T10:06:10.482+00:00"},"s":"I", "c":"NETWORK", "id":22944, "ctx":"conn1802","msg":"Connection ended","attr":{"remote":"10.16.128.160:37568","uuid":"c8603449-0c37-4c51-bd12-5485642efef2","connectionId":1802,"connectionCount":6}}