# Cannot upgrade to latest version, disk full

**URL:** https://meta.discourse.org/t/cannot-upgrade-to-latest-version-disk-full/253826
**Category:** Self-hosting
**Tags:** server-resources
**Created:** [February 2, 2023, 11:57am UTC](https://meta.discourse.org/t/cannot-upgrade-to-latest-version-disk-full/253826 "2023-02-02T11:57:44Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![dalu](https://avatars.discourse-cdn.com/v4/letter/d/7bcc69/32.png) [@dalu](https://meta.discourse.org/u/dalu)
#### Post date: [February 2, 2023, 11:57am UTC](https://meta.discourse.org/t/cannot-upgrade-to-latest-version-disk-full/253826/1 "2023-02-02T11:57:44Z")

</div>

hello

i wanted to update to latest version but it failed  
when i do  
./launcher rebuild app  
the system is asking me to clean space, and retry, then it keeps doing that looping to clean space, and cannot launch

i have vps of 20 gb is this enough ?

/var/lib/docker/overlay2 is 14 GB !!  
can i delete some stuff inside ?

i tried docker system prune, it did nothing

when i ls /overlay 2 i got this  
19d43f341265aeab22365de27a4dd8b1c4e5ee578c7901b68edf02103c21dbb6 acfc9065c8d50e1ad0ab7be49b774cd14409e23d22e4679e604a1898ffbffea1  
26ca303cc9a5d3a2520903b39083aa6c44e59f9bad920a89dff8aa39487e8d2b b0ab505b1163d0a7a749e7e31fe64caf8d8c8f489f6d17a8b15ca72a055fc601  
3210d77c5f7beb694f86ed40ee711221cea9f3fa0a0e9decb0a4227538bf70d2 c61c99cb191068c612cd7794d38af1d7e09439233e697de57550197778d3c944  
3210d77c5f7beb694f86ed40ee711221cea9f3fa0a0e9decb0a4227538bf70d2-init f8941bf25fb2feb9791a96b1b64ca87c4d303d68fc5302df92abb17e41dc34a4  
a5022d73051a305135f883c8a4e34ccc5a09c783eef7c9b0d86849015c059b9c l

do i need all this how do i know which one i could delete ?  
discourse is offline responding error 500

thanks a lot

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [February 2, 2023, 12:12pm UTC](https://meta.discourse.org/t/cannot-upgrade-to-latest-version-disk-full/253826/2 "2023-02-02T12:12:53Z")

</div>

Hi dalu! 👋

Does your app start if you do `./launcher start app`?

If it does, you can sort of double-check if it is indeed running with `docker ps`.

If `app` is running, then I think you can use `./launcher cleanup` which will remove unused images and may free some space.

Of course, always have a backup somewhere in case something goes wrong 🙂

---

<div class="post-metadata">

### Author: ![dalu](https://avatars.discourse-cdn.com/v4/letter/d/7bcc69/32.png) [@dalu](https://meta.discourse.org/u/dalu)
#### Post date: [February 2, 2023, 12:23pm UTC](https://meta.discourse.org/t/cannot-upgrade-to-latest-version-disk-full/253826/3 "2023-02-02T12:23:15Z")

</div>

salut coin coin 😉

i just did a launcher cleanup  
Total reclaimed space: 3.318GB

but when i do ./launcher start app  
it redownloads the image.  
it downloads 2 images, discourse  
but it keeps repeating  
Would you like to attempt to recover space by cleaning docker images and containers in the system? (y/N)y  
and redownloading images  
maybe i’ll try to delete backups, not all 😉

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [February 2, 2023, 12:34pm UTC](https://meta.discourse.org/t/cannot-upgrade-to-latest-version-disk-full/253826/4 "2023-02-02T12:34:05Z")

</div>

Hello 😺

If your backups take up space, you could store them elsewhere while you try to free up some additional space.

You could also increase your disk size if your hosting service allows it.

Which company do you rent your server from? Digital Ocean?

As for the loop you’re describing, I don’t know about it, my technical knowledge is limited. 😕

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [February 2, 2023, 12:39pm UTC](https://meta.discourse.org/t/cannot-upgrade-to-latest-version-disk-full/253826/5 "2023-02-02T12:39:28Z")

</div>

There was some good discussion in this recent topic that may be of use?

> [@Any advice on how to save space?](https://meta.discourse.org/t/any-advice-on-how-to-save-space/252779):
>
> We run a self-hosted Discourse site on DigitalOcean and have a 25 GB Disk. I just tried to update our Discourse image and got a you will need more space to continue message. After cleaning the docker image and containers, we’re still 0.4 GB short. Any advice on how to save space? Both in order to update now and also how to save space in the future. I know we’ll need to resize soon, but it’d be helpful to make it through at least one more Discourse image update.

---

<div class="post-metadata">

### Author: ![dalu](https://avatars.discourse-cdn.com/v4/letter/d/7bcc69/32.png) [@dalu](https://meta.discourse.org/u/dalu)
#### Post date: [February 2, 2023, 12:42pm UTC](https://meta.discourse.org/t/cannot-upgrade-to-latest-version-disk-full/253826/6 "2023-02-02T12:42:40Z")

</div>

an also here  
didn’t find earlier sorry

> [@Discourse upgrade fails due to insufficient disk space on 25G droplet](https://meta.discourse.org/t/discourse-upgrade-fails-due-to-insufficient-disk-space-on-25g-droplet/222062/1):
>
> I have a 25g droplet, which Discourse claims should be big enough, but I cannot do the upgrade to the latest version as I’ve run out of storage. My forum is very small with very little traffic. I ran ./launcher cleanup and even deleted old backups, but still no joy. What can I do? root@DO-Discourse:/var/discourse# ./launcher rebuild app x86\_64 arch detected. WARNING: We are about to start downloading the Discourse base image This process may take anywhere between a few minutes to an hour, de…

---

<div class="post-metadata">

### Author: ![dalu](https://avatars.discourse-cdn.com/v4/letter/d/7bcc69/32.png) [@dalu](https://meta.discourse.org/u/dalu)
#### Post date: [February 2, 2023, 12:44pm UTC](https://meta.discourse.org/t/cannot-upgrade-to-latest-version-disk-full/253826/7 "2023-02-02T12:44:15Z")

</div>

> [@Canapin](#):
>
> Which company do you rent your server at? Digital Ocean?

OVH 🙂  
anyway it’s not visible enough 20gb…

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [February 2, 2023, 12:50pm UTC](https://meta.discourse.org/t/cannot-upgrade-to-latest-version-disk-full/253826/8 "2023-02-02T12:50:35Z")

</div>

I’m not a fan of OVH, though I rent them my main VPS.  
I mostly use Hetzner for my other forums or temporary stuff, it’s billed per hour (OVH is per month).

If you struggle, I would recommend upgrading (maybe resetting it to start fresh) your server or creating a new one, then installing Discourse and restoring your backup. It’s often faster than spending time trying to fix some issue.

---

<div class="post-metadata">

### Author: ![dalu](https://avatars.discourse-cdn.com/v4/letter/d/7bcc69/32.png) [@dalu](https://meta.discourse.org/u/dalu)
#### Post date: [February 2, 2023, 1:06pm UTC](https://meta.discourse.org/t/cannot-upgrade-to-latest-version-disk-full/253826/9 "2023-02-02T13:06:00Z")

</div>

thanks !

i upgraded my vps to 40 gb instantly ! waou, i don’t use much vps only dedicated servers, it’s fast  
rebuilding app now

ps: wondering why ovh has such bad reputation sometimes. i’ll check what Hetzner is, didn’t know before

thanks a lot all 🙂

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [February 2, 2023, 1:45pm UTC](https://meta.discourse.org/t/cannot-upgrade-to-latest-version-disk-full/253826/10 "2023-02-02T13:45:50Z")

</div>

> [@dalu](#):
>
> ps: wondering why ovh has such bad reputation sometimes. i’ll check what Hetzner is, didn’t know before

I also often heard that OVH has a bad reputation. I’ve been using them for a long time.  
Their dashboard is wonky and slow, and their price might be a bit higher than other companies, but I didn’t encounter any particular issue with them, except one time when I was unable to renew my Plesk license (they’re a reseller). It took many messages back and forth to finally have them recognize that the issue was on their end.

I like Hetzner because their interface is intuitive, they’re not expensive even though they increased their price by about 10% recently and they bill per hour.

---

<div class="post-metadata">

### Author: ![Heliosurge](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/heliosurge/32/571810_2.png) [@Heliosurge](https://meta.discourse.org/u/Heliosurge)
#### Post date: [February 3, 2023, 1:13pm UTC](https://meta.discourse.org/t/cannot-upgrade-to-latest-version-disk-full/253826/11 "2023-02-03T13:13:39Z")

</div>

Depending on your vps host you maybe able to increase your server size package.

Also if you have a lot of backuos in discourse consider deleting older ones that are no longer needed. You can also download your backups off site to local storage as well.. However likely best to keep most recent backup on the server.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [March 5, 2023, 1:14pm UTC](https://meta.discourse.org/t/cannot-upgrade-to-latest-version-disk-full/253826/12 "2023-03-05T13:14:04Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
