#  pupsのブートストラップに失敗しました::ExecError 'bundle exec rake db:migrate' が 2.9.0.beta4 から 2.9.0.beta5 へのパラメータで失敗しました

**URL:** <https://meta.discourse.org/t/failed-to-bootstrap-pups-execerror-bundle-exec-rake-db-migrate-failed-with-return-exec-failed-with-the-params-2-9-0-beta4-to-2-9-0-beta5/229753>\
**Category:** Self-hosting\
**Created:** [2022 年 6 月 13 日午前 3:49 UTC](https://meta.discourse.org/t/failed-to-bootstrap-pups-execerror-bundle-exec-rake-db-migrate-failed-with-return-exec-failed-with-the-params-2-9-0-beta4-to-2-9-0-beta5/229753 "2022-06-13T03:49:07Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![iidbae](https://avatars.discourse-cdn.com/v4/letter/i/a183cd/32.png) [@iidbae](https://meta.discourse.org/u/iidbae)\
**Post date:** [2022 年 6 月 13 日午前 3:49 UTC](https://meta.discourse.org/t/failed-to-bootstrap-pups-execerror-bundle-exec-rake-db-migrate-failed-with-return-exec-failed-with-the-params-2-9-0-beta4-to-2-9-0-beta5/229753/1 "2022-06-13T03:49:07Z")

</div>

2ヶ月前にDiscourseを2.9.0.beta4 [34fba417f1](https://github.com/discourse/discourse/commits/34fba417f1435035b0d3c4763a826a79c25a87f1)にアップグレードしました。残念ながら、`./launcher rebuild app`のためにUpgradeページを再確認するのを忘れました。2日前に再構築しようとしたところ、ディスク容量が不足していました。バックアップは130MBです。

そこで、ドロップレットをアップグレードし、25GBから50GBにリサイズしました。

アプリの再構築を試みた際に、このエラーが発生しました。

```plaintext
102:M 11 Jun 2022 13:40:32.373 * DB saved on disk

102:M 11 Jun 2022 13:40:32.374 # Redis is now ready to exit, bye bye...

FAILED
--------------------
Pups::ExecError: cd /var/www/discourse &amp;&amp; su discourse -c 'bundle exec rake db:migrate' failed with return #&lt;Process::Status: pid 1605 exit 1&gt;
Location of failure: /usr/local/lib/ruby/gems/2.7.0/gems/pups-1.1.1/lib/pups/exec_command.rb:117:in `spawn'
exec failed with the params {"cd"=>"$home", "hook"=>"db_migrate", "cmd"=>["su discourse -c 'bundle exec rake db:migrate'"]}
bootstrap failed with exit code 1
**FAILED TO BOOTSTRAP** please scroll up and look for earlier error messages, there may be more than one.
./discourse-doctor may help diagnose the problem.
9a7eb814ecd8b017057c4f6b9c54fc1c65520c7b5e9427984ee6fc326246b170

```

試したことと、失敗に終わったこと：

1. `./discourse-doctor`: 次に何をすべきかまだわかりません。
2. インスタンスを新しいサーバーに移動してバックアップを復元する。私のDiscourseは最新バージョンではないため失敗したと思います。現在のメタデータバージョンは20220526203356ですが、私のバージョンは20220407195246です。エラーログがあります。

試したいアイデア：

1. 新しいDigitalOceanサーバーに同じDiscourseコミット（34fba417f1）をインストールし、バックアップを復元する。しかし、同じバージョンをインストールする方法の手がかりが見つかりません。いくつかの手がかりを試しましたが、失敗しました。例えば[こちら](https://meta.discourse.org/t/how-to-install-v1-9-0-beta1-version-of-discourse/121129/6)のような方法です。
2. 同じDiscourseバージョンを使用してバックアップを復元しますが、その方法がわかりません。

私のプラグイン：

1. discourse-canned-replies
2. discourse-push-notifications

Ubuntuのバージョンは20.04.4 LTSです。

ありがとうございます。

---

_[View the full topic](https://meta.discourse.org/t/failed-to-bootstrap-pups-execerror-bundle-exec-rake-db-migrate-failed-with-return-exec-failed-with-the-params-2-9-0-beta4-to-2-9-0-beta5/229753)._
