We have sharded mongodb cluster with one shard:
4 config servers (2 community and 2 Percona Server for MongoDB)
4 nodes with data (2 community and 2 Percona Server for MongoDB)
Major version is 7.
I tried to restore physical backup, but got an error:
pbm --mongodb-uri “mongodb://pbmuser:pbmuser@eis-mongo-test01:26001” status
Cluster:
csrs:
- csrs/eis-mongo-test01:26001 [P]: pbm-agent v2.5.0 OK
- csrs/eis-mongo-test02:26001 [S]: pbm-agent v2.5.0 OK
- csrs/eis-mongo-test03:26001 [S]: pbm-agent v2.5.0 OK
- csrs/eis-mongo-test04:26001 [S]: pbm-agent v2.5.0 OK
repl-set1: - repl-set1/eis-mongo-test05:27011 [P]: pbm-agent v2.5.0 OK
- repl-set1/eis-mongo-test06:27011 [S]: pbm-agent v2.5.0 OK
- repl-set1/eis-mongo-test07:27011 [S]: pbm-agent v2.5.0 OK
- repl-set1/eis-mongo-test08:27011 [S]: pbm-agent v2.5.0 OK
PITR incremental backup:
Status [OFF]
Currently running:
(none)
Backups:
FS /u01/backups
Snapshots:
2026-03-04T13:10:40Z 103.77MB [restore_to_time: 2026-03-04T13:10:42Z]
PITR chunks [1.16MB]:
2026-03-04T13:10:43Z - 2026-03-04T13:26:50Z
pbm --mongodb-uri “mongodb://pbmuser:pbmuser@eis-mongo-test01:26001” restore 2026-03-04T13:10:40Z
Starting restore 2026-03-04T13:43:10.531378882Z from ‘2026-03-04T13:10:40Z’.Error: get metadata: parse physical restore status: read ts from rs.csrs/node.eis-mongo-test03:26001.hb: strconv.ParseInt: parsing “”: invalid syntax
Pbm logs in each node don’t show any problems and look like this:
мар 04 14:57:02 eis-mongo-test02 pbm-agent[1604190]: 2026-03-04T14:57:02.000+0300 D [restore/2026-03-04T11:53:09.527876037Z] rm tmp conf
мар 04 14:57:02 eis-mongo-test02 pbm-agent[1604190]: 2026-03-04T14:57:02.000+0300 D [restore/2026-03-04T11:53:09.527876037Z] rm tmp logs
мар 04 14:57:02 eis-mongo-test02 pbm-agent[1604190]: 2026-03-04T14:57:02.000+0300 I [restore/2026-03-04T11:53:09.527876037Z] recovery successfully finished
мар 04 14:57:02 eis-mongo-test02 pbm-agent[1604190]: 2026-03-04T14:57:02.000+0300 I change stream was closed
мар 04 14:57:02 eis-mongo-test02 pbm-agent[1604190]: 2026-03-04T14:57:02.000+0300 D [restore/2026-03-04T11:53:09.527876037Z] hearbeats stopped
мар 04 14:57:02 eis-mongo-test02 pbm-agent[1604190]: 2026/03/04 14:57:02 Exit:
After this restore attempt all mongod processes were stopped, and pbm status looked like this:
Backups:
FS /u01/backups
Snapshots:
2026-03-04T13:10:40Z 0.00B [ERROR: Backup stuck at starting stage, last beat ts: 1772629841] [2026-03-04T13:10:40Z]
How can I fix this problem?