Problems with restoring mongo shard

Hello. I am having problems restoring a mongo backup of our production environment.
This is a server with 5 shards running under mongodb community 4.2.18, pbm has a version of 1.5
I am trying to test that restore process works as intended, for that purposes I’ve created environment with same versions of mongodb and pbm but with no luck.
Four shards are restored while the fifth looks like to be ignored, at the same time it is showing no errors

the problem-generating shard log in status is

2022-02-14T15:47:06Z I [***-sh05/***:27017] got command restore [name: 2022-02-14T15:47:06.434792176Z, backup name: 2022-02-13T20:00:01Z] <ts: 1644853626>
2022-02-14T15:47:06Z I [***-sh05/***:27017] got epoch {1644853379 13}
2022-02-14T15:47:06Z I [***-sh05/***:27017] [restore/2022-02-13T20:00:01Z] restore started

and no more lines for this shard
all other shards have “mongorestore finished” line

pbm-agent log for the 5th shard contains following lines, for example

Feb 14 18:47:09 *** pbm-agent[22525]: 2022-02-14T18:47:09.068+0300        found collection ***.*** bson to restore to ***.***
Feb 14 18:47:09 *** pbm-agent[22525]: 2022-02-14T18:47:09.068+0300        found collection metadata from ***.*** to restore to ***.***
1 Like

Hi, I am sorry to hear you are having issues. I suggest you try the latest version of PBM 1.6.1 which has fixed a few bugs with restore and also includes extra information in the logs. This should help figure out what’s going on here. You can get it from: Download Percona Backup for MongoDB

1 Like