Skip to content

Instantly share code, notes, and snippets.

@v0112358
Created September 1, 2021 01:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save v0112358/91a3c7c22b4ef6ec4af638f48251422f to your computer and use it in GitHub Desktop.
Save v0112358/91a3c7c22b4ef6ec4af638f48251422f to your computer and use it in GitHub Desktop.
get current storage status: query mongo: mongo: no documents in result

MongoDB info

  • MongoDB version: 3.6.23
  • PBM version: 1.6.0
  • Error messages:
Sep  1 07:47:17 vm-prod-mongodb-2 pbm-agent: 2021-09-01T07:47:17.000+0700 I got command backup [name: 2021-09-01T00:47:16Z, compression: s2] <ts: 1630457236>
Sep  1 07:47:17 vm-prod-mongodb-2 pbm-agent: 2021-09-01T07:47:17.000+0700 I got epoch {0 0}
Sep  1 07:47:38 vm-prod-mongodb-2 pbm-agent: 2021-09-01T07:47:38.000+0700 W [agentCheckup] get current storage status: query mongo: mongo: no documents in result
Sep  1 07:47:49 vm-prod-mongodb-2 pbm-agent: 2021-09-01T07:47:49.000+0700 D [backup/2021-09-01T00:47:16Z] nomination timeout
Sep  1 07:47:49 vm-prod-mongodb-2 pbm-agent: 2021-09-01T07:47:49.000+0700 D [backup/2021-09-01T00:47:16Z] skip after nomination, probably started by another node

Root-cause

  • Your database run on MongoDB 3.6.23 with feature compatibility version set to 3.4.
  • PBM only support MongoDB feature compatibility version >= 3.6.

Take action

db.adminCommand( { setFeatureCompatibilityVersion: "3.6" } )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment