# Discourse failed to backup, how to debug?

**URL:** <https://meta.discourse.org/t/discourse-failed-to-backup-how-to-debug/52217>\
**Category:** Product Support\
**Created:** [29 Ottobre 2016, 11:05pm UTC](https://meta.discourse.org/t/discourse-failed-to-backup-how-to-debug/52217 "2016-10-29T23:05:28Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![trandatnh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/trandatnh/32/115055_2.png) [@trandatnh](https://meta.discourse.org/u/trandatnh)\
**Post date:** [29 Ottobre 2016, 11:05pm UTC](https://meta.discourse.org/t/discourse-failed-to-backup-how-to-debug/52217/1 "2016-10-29T23:05:28Z")

</div>

Hi,

My discourse keeps failing backup for the last 2 days

Here is the backup logs:

> [2016-10-29 22:58:43] Making sure ‘/var/www/discourse/tmp/backups/default/2016-10-29-225843’ exists…  
> [2016-10-29 22:58:43] Backup process was cancelled!  
> [2016-10-29 22:58:43] Notifying ‘ltd’ of the end of the backup…

The directory `/var/www/discourse/tmp/backups/default/2016-10-29-225843` exists

At the parent directory, I found 5 empty directories. I guess 4 are created manually and 1 automatically created.

```plaintext
root@daynhauhoc-app:/var/www/discourse/tmp/backups/default# ls -lrth
total 20K
drwxr-xr-x 2 discourse www-data 4.0K Oct 29 07:17 2016-10-29-071717
drwxr-xr-x 2 discourse www-data 4.0K Oct 29 08:00 2016-10-29-080055
drwxr-xr-x 2 discourse www-data 4.0K Oct 29 08:14 2016-10-29-081441
drwxr-xr-x 2 discourse www-data 4.0K Oct 29 21:08 2016-10-29-210807
drwxr-xr-x 2 discourse www-data 4.0K Oct 29 22:58 2016-10-29-225843

```

* * *

I’m using 1.7.0.beta6, latest commit on 28 Oct 16.

[https://github.com/discourse/discourse/commit/4d58a00387f6c911b3d35c126289552f93044acc](https://github.com/discourse/discourse/commit/4d58a00387f6c911b3d35c126289552f93044acc)

I have done a successfully manual backup right before this issue.  
Before that the automatically backup worked fine, but not now.

I got no ideas how to debug this issue.

Thanks

---

_[View the full topic](https://meta.discourse.org/t/discourse-failed-to-backup-how-to-debug/52217)._
