# 我的安装因升级失败而崩溃 - 我该如何恢复？

**URL:** <https://meta.discourse.org/t/broke-my-installation-with-a-failed-upgrade-how-can-i-recover/315282>\
**Category:** Self-hosting\
**Created:** [2024 年7 月 7 日 00:01 UTC](https://meta.discourse.org/t/broke-my-installation-with-a-failed-upgrade-how-can-i-recover/315282 "2024-07-07T00:01:38Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

作者： ![pangbo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pangbo/32/538562_2.png) [@pangbo](https://meta.discourse.org/u/pangbo)\
发布日期： [2024 年7 月 7 日 07:29 UTC](https://meta.discourse.org/t/broke-my-installation-with-a-failed-upgrade-how-can-i-recover/315282/6 "2024-07-07T07:29:00Z")

</div>

尝试执行命令 `./launcher cleanup`。此操作可以帮助您清除 Docker 占用的存储空间。

此外，如果您确定之前遵循了官方安装指南，可以执行 `./launcher destroy app` 来移除之前损坏的容器。但是，务必确保您的数据库和上传文件存储在宿主文件系统上，而不是容器本身内部。

> [@PhilipLoewen](#):
>
> 另外，我可以在更强大的机器上重建应用程序，然后将一个合适的文件上传到这个性能不足的小型虚拟机吗？

确实，您可以在另一台机器上执行重建，然后将 Docker 镜像传输到您的虚拟机。但是，您需要在虚拟机上手动执行 `rake db:migrate` 命令。我不完全确定这种方法是否会引入其他问题。

---

_[View the full topic](https://meta.discourse.org/t/broke-my-installation-with-a-failed-upgrade-how-can-i-recover/315282)._
