# 空间不足时升级：停止应用，然后清理，然后重建应用？

**URL:** <https://meta.discourse.org/t/upgrading-when-space-seems-low-stop-app-then-cleanup-then-rebuild-app/293627>\
**Category:** Self-hosting\
**Tags:** server-resources\
**Created:** [2024年一月31日 13:01 UTC](https://meta.discourse.org/t/upgrading-when-space-seems-low-stop-app-then-cleanup-then-rebuild-app/293627 "2024-01-31T13:01:41Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Firepup650](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/firepup650/32/465200_2.png) [@Firepup650](https://meta.discourse.org/u/Firepup650)\
**Post date:** [2024年一月31日 14:53 UTC](https://meta.discourse.org/t/upgrading-when-space-seems-low-stop-app-then-cleanup-then-rebuild-app/293627/3 "2024-01-31T14:53:10Z")

</div>

可能是错的，但这是否会导致第一个未正常工作的块中相同的两个步骤（2-4）？

> [@jbrains](#):
>
> 1. 尝试 `./launcher rebuild app`，但磁盘空间不足。（低于 5 GB 可用。）
> 2. `./launcher cleanup`，这似乎释放了一些磁盘空间。（超过 5 GB 可用。）
> 3. 转到 2。

顺便说一句，这看起来有点像这个话题的更多内容：

> [@"Less than 5GB of free space" — not true! eyes](https://meta.discourse.org/t/less-than-5gb-of-free-space-not-true/224517?u=firepup650):
>
> Been running Discourse for years, and my experience has been uniformly awesome except for one recurring problem: Whenever I see “You are running an old version of the Discourse image” on the update screen, I am overtaken by a grim pallor and an overwhelming sense of dread. Why? Because I know I’ll be wrestling my DigitalOcean droplet from the command line—something I generally hate—for a few hours before I can get the upgrade to go through properly. And this time, I can’t seem to get it work…

---

_[View the full topic](https://meta.discourse.org/t/upgrading-when-space-seems-low-stop-app-then-cleanup-then-rebuild-app/293627)._
