Details
-
Bug
-
Status: Done
-
Medium
-
Resolution: Fixed
-
None
-
None
-
None
-
Yes
-
Yes
Description
Hi,
STR:
1) setup storage with no PITR chunks
pbm status -s backups
Backups:
========
S3 us-east-1 s3://https://storage.googleapis.com/sandra-test
Snapshots:
2022-09-22T10:59:13Z 149.30MB <logical> [restore_to_time: 2022-09-22T10:59:19Z]
2) try to run PITR restore to any TS
pbm restore --time="2022-09-22T06:46:54" Starting restore to the point in time '2022-09-22T06:46:54'...............Error: no confirmation that restore has successfully started. Replsets status: <no replset has started restore> 2022-09-22T11:00:18.000+0000 I [pitrestore/2022-09-22T11:00:17.060156694Z] to time: 2022-09-22T06:46:54Z 2022-09-22T11:00:18.000+0000 I [pitrestore/2022-09-22T11:00:17.060156694Z] recovery started panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x78 pc=0xdba715] goroutine 1 [running]: github.com/percona/percona-backup-mongodb/pbm/restore.(*Restore).MarkFailed(0xc0000d9900, {0x1374100, 0xc000402d50}) /home/vagrant/percona-backup-mongodb/pbm/restore/logical.go:1178 +0x135 github.com/percona/percona-backup-mongodb/pbm/restore.(*Restore).exit(0xc0000d9900, {0x1374100, 0xc000402d50}, 0x5b5607?) /home/vagrant/percona-backup-mongodb/pbm/restore/logical.go:71 +0x73 github.com/percona/percona-backup-mongodb/pbm/restore.(*Restore).PITR.func1() /home/vagrant/percona-backup-mongodb/pbm/restore/logical.go:154 +0x2c github.com/percona/percona-backup-mongodb/pbm/restore.(*Restore).PITR(0xc0000d9900, 0xc0004a8780, {0x63, 0x2c, 0x40, 0x41, 0x60, 0x43, 0x73, 0x36, ...}, ...) /home/vagrant/percona-backup-mongodb/pbm/restore/logical.go:161 +0x232 github.com/percona/percona-backup-mongodb/agent.(*Agent).PITRestore(0xc0004d6140, 0xc0004a8780, {0x63, 0x2c, 0x40, 0x41, 0x60, 0x43, 0x73, 0x36, ...}, ...) /home/vagrant/percona-backup-mongodb/agent/pitr.go:311 +0x8d7 github.com/percona/percona-backup-mongodb/agent.(*Agent).Start(0xc0004d6140) /home/vagrant/percona-backup-mongodb/agent/agent.go:92 +0xa0e main.runAgent({0xc0000405f0, 0x42}, 0xfd9ed5?) /home/vagrant/percona-backup-mongodb/cmd/pbm-agent/main.go:81 +0x205 main.main() /home/vagrant/percona-backup-mongodb/cmd/pbm-agent/main.go:59 +0xead