# Can't cancel pbm backup

**URL:** <https://forums.percona.com/t/cant-cancel-pbm-backup/10272>\
**Category:** Percona Backup for MongoDB\
**Tags:** mongodb\
**Created:** [April 28, 2021, 7:44am UTC](https://forums.percona.com/t/cant-cancel-pbm-backup/10272 "2021-04-28T07:44:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jaschaio](https://avatars.discourse-cdn.com/v4/letter/j/a9adbd/32.png) [@jaschaio](https://forums.percona.com/u/jaschaio)\
**Post date:** [April 28, 2021, 7:44am UTC](https://forums.percona.com/t/cant-cancel-pbm-backup/10272/1 "2021-04-28T07:44:22Z")

</div>

I recently had a out of disk error in one of my MongoDB Instances. This happened while a backup was running. The backup never completed, but if I try to cancel it nothing happens.

```
pbm cancel-backup
Backup cancellation has started

```

It says Backup cancellation has started, but even after quite some time it is still marked as “running” when I execute pbm status.

There is nothing in the logs beside:

```
2021-04-28T07:39:47.000+0000 I got command cancelBackup <ts: 1619595586>

```

I tried deleting it but that doesn’t work as it’s still running:

```
pbm delete-backup 2021-04-27T00:19:49Z
Are you sure you want delete backup(s)? [y/N] y
Waiting for delete to be done ..
Error: deleting: unable to delete backup in running state

```

I tried disabling PITR as that helped with another problem before but to no avail.

The problem is that while it’s still running I can’t run another backup. So my PBM is basically unusable.

I guess I might be able to just remove it from the database directly, but I am hesistant to mess with the PBM documents without going through the command line as I have no idea if it might lead to unintended side effect.

MongoDB Version: 4.4.0  
PBM Version: 1.4.1

---

<div class="post-metadata">

**Author:** ![Andrew\_Pogrebnoi](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/andrew_pogrebnoi/32/77_2.png) [@Andrew\_Pogrebnoi](https://forums.percona.com/u/Andrew_Pogrebnoi)\
**Post date:** [June 7, 2021, 4:43pm UTC](https://forums.percona.com/t/cant-cancel-pbm-backup/10272/2 "2021-06-07T16:43:23Z")

</div>

Hi @jaschaio

I suppose because out of disk pbm-agents weren’t able to receive the cancellation command or properly handle it.  
Anyway, try to restart pbm-agents. And run a new backup in 30 sec after that. That should work.  
After restarting agents its locks became stale in 15-20 sec. The next pbm operation will recognise it and remove such locks and marks the stale operation as failed. And system should be available again.
