# Unable to rebuild discourse due to no space left on device

**URL:** <https://meta.discourse.org/t/unable-to-rebuild-discourse-due-to-no-space-left-on-device/174774>\
**Category:** Self-hosting\
**Created:** [January 2, 2021, 4:59am UTC](https://meta.discourse.org/t/unable-to-rebuild-discourse-due-to-no-space-left-on-device/174774 "2021-01-02T04:59:55Z")\
**Posts on this page:** 1\
**Showing post:** 23

<div class="post-metadata">

**Author:** ![littleviolette](https://avatars.discourse-cdn.com/v4/letter/l/d26b3c/32.png) [@littleviolette](https://meta.discourse.org/u/littleviolette)\
**Post date:** [November 15, 2022, 8:01pm UTC](https://meta.discourse.org/t/unable-to-rebuild-discourse-due-to-no-space-left-on-device/174774/23 "2022-11-15T20:01:43Z")

</div>

I get the same `No space left on device` error when I try to backup my Discourse:

```plaintext
[2022-11-15 08:23:38] EXCEPTION: /var/www/discourse/lib/discourse.rb:131:in `exec': Failed to gzip archive.

gzip: /var/www/discourse/public/backups/default/forum-leasehackr-2022-11-15-080439-v20221110175456.tar.gz: No space left on device

```

My backup and image uploads are set up on DigitalOcean’s Spaces and have been working fine for a few years until recent months. Here are what I have tried so far:

1. I cleared all hidden multipart uploads on my DO Space. There should be more than 100GiB of storage available on my DO Space.
2. I tried rebuilding and cleaning up using the following commands:

```plaintext
cd /var/discourse
apt-get update
apt-get upgrade
apt-get autoclean
apt-get autoremove
./launcher rebuild app
./launcher cleanup

```

Anyone knows why my backups keep failing still? Thank you!

---

_[View the full topic](https://meta.discourse.org/t/unable-to-rebuild-discourse-due-to-no-space-left-on-device/174774)._
