Hello everyone. I have a problem that I just can’t solve. I hope very much for your help.
I have a Mongodb sharded cluster which I back up using Percona Logical Backup.
I’m trying to restore data to a clean prepared mongodb sharded cluster with the same replica
assignments, but with a different server name. I keep getting the following error over and over again:
'reply oplog: replay chunk 1708916666.1708916678: apply oplog for chunk: applying
an entry: op: {"Timestamp":{"T":1708916672,"I":48},"Term":1,"Hash":null,"Version":2,"Operation":"i","Namespace":"config.actionlog","Object":[{"Key":"_id","Value":"zst-mongodbcfg-1:27017-2024-02-26T03:04:32.719+00:00-65dbffc06235b23d81fe4e16"},{"Key":"server","Value":"zst-mongodbcfg-1:27017"},{"Key":"shard","Value":"config"},{"Key":"clientAddr","Value":"10.212.3.138:60684"},{"Key":"time","Value":"2024-02-26T03:04:32.719Z"},{"Key":"what","Value":"balancer.stop"},{"Key":"ns","Value":""},{"Key":"details","Value":[]}],"Query":[{"Key":"_id","Value":"zst-mongodbcfg-1:27017-2024-02-26T03:04:32.719+00:00-65dbffc06235b23d81fe4e16"}],"UI":{"Subtype":4,"Data":"QhhVsGwmROm1I685D3uU7A=="},"LSID":null,"TxnNumber":null,"PrevOpTime":null}
| merr <nil>: applyOps: (NamespaceNotFound) Failed to apply operation due to missing
collection (421855b0-6c26-44e9-b523-af390f7b94ec): { ts: Timestamp(1708916672, 48),
t: 1, v: 2, op: "i", ns: "config.actionlog", o: { _id: "zst-mongodbcfg-1:27017-2024-02-26T03:04:32.719+00:00-65dbffc06235b23d81fe4e16",
server: "zst-mongodbcfg-1:27017", shard: "config", clientAddr: "10.212.3.138:60684",
time: new Date(1708916672719), what: "balancer.stop", ns: "", details: {} }, o2:
{ _id: "zst-mongodbcfg-1:27017-2024-02-26T03:04:32.719+00:00-65dbffc06235b23d81fe4e16"
}, ui: UUID("421855b0-6c26-44e9-b523-af390f7b94ec"), h: 0, wall: new Date(0) }'
I have a clean cluster with created replicas. Restoring to 2 replicas is successful, but the KFG server keeps getting an error!
name: "2024-02-26T17:52:51.481892178Z"
opid: 65dccff3317093a07994d1be
backup: "2024-02-26T03:04:31Z"
type: logical
status: error
error: 'reply oplog: replay chunk 1708916666.1708916678: apply oplog for chunk: applying
an entry: op: {"Timestamp":{"T":1708916672,"I":48},"Term":1,"Hash":null,"Version":2,"Operation":"i","Namespace":"config.actionlog","Object":[{"Key":"_id","Value":"zst-mongodbcfg-1:27017-2024-02-26T03:04:32.719+00:00-65dbffc06235b23d81fe4e16"},{"Key":"server","Value":"zst-mongodbcfg-1:27017"},{"Key":"shard","Value":"config"},{"Key":"clientAddr","Value":"10.212.3.138:60684"},{"Key":"time","Value":"2024-02-26T03:04:32.719Z"},{"Key":"what","Value":"balancer.stop"},{"Key":"ns","Value":""},{"Key":"details","Value":[]}],"Query":[{"Key":"_id","Value":"zst-mongodbcfg-1:27017-2024-02-26T03:04:32.719+00:00-65dbffc06235b23d81fe4e16"}],"UI":{"Subtype":4,"Data":"QhhVsGwmROm1I685D3uU7A=="},"LSID":null,"TxnNumber":null,"PrevOpTime":null}
| merr <nil>: applyOps: (NamespaceNotFound) Failed to apply operation due to missing
collection (421855b0-6c26-44e9-b523-af390f7b94ec): { ts: Timestamp(1708916672, 48),
t: 1, v: 2, op: "i", ns: "config.actionlog", o: { _id: "zst-mongodbcfg-1:27017-2024-02-26T03:04:32.719+00:00-65dbffc06235b23d81fe4e16",
server: "zst-mongodbcfg-1:27017", shard: "config", clientAddr: "10.212.3.138:60684",
time: new Date(1708916672719), what: "balancer.stop", ns: "", details: {} }, o2:
{ _id: "zst-mongodbcfg-1:27017-2024-02-26T03:04:32.719+00:00-65dbffc06235b23d81fe4e16"
}, ui: UUID("421855b0-6c26-44e9-b523-af390f7b94ec"), h: 0, wall: new Date(0) }'
last_transition_time: "2024-02-26T17:53:06Z"
replsets:
- name: modbcfg
status: error
last_transition_time: "2024-02-26T17:53:06Z"
error: ""
- name: multi-sb
status: done
last_transition_time: "2024-02-26T17:53:07Z"
- name: multi-sa
status: done
last_transition_time: "2024-02-26T17:53:06Z"