# 突然引导失败了

**URL:** <https://meta.discourse.org/t/suddenly-boot-strapping-is-failing/250106>\
**Category:** Self-hosting\
**Tags:** two-container\
**Created:** [2022 年12 月 29 日 10:32 UTC](https://meta.discourse.org/t/suddenly-boot-strapping-is-failing/250106 "2022-12-29T10:32:21Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

作者： ![Bathinda](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bathinda/32/135888_2.png) [@Bathinda](https://meta.discourse.org/u/Bathinda)\
发布日期： [2022 年12 月 29 日 10:32 UTC](https://meta.discourse.org/t/suddenly-boot-strapping-is-failing/250106/1 "2022-12-29T10:32:21Z")

</div>

我没有有意识地更改任何内容，但今天，当我 just git pull-ed 并尝试引导 web\_only.yml 时，它出现了错误，在引导过程开始约 90 秒后。如果这有助于诊断，我将粘贴错误日志的最后几行：

```plaintext
/var/www/discourse/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.15.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
/var/www/discourse/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.15.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
/var/www/discourse/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.6.6/lib/zeitwerk/kernel.rb:38:in `require'
/var/www/discourse/vendor/bundle/ruby/3.1.0/gems/railties-7.0.3.1/lib/rails/application.rb:348:in `require_environment!'
/var/www/discourse/vendor/bundle/ruby/3.1.0/gems/railties-7.0.3.1/lib/rails/application.rb:511:in `block in run_tasks_blocks'
/var/www/discourse/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/exe/rake:27:in `<top (required)>'
/usr/local/bin/bundle:25:in `load'
/usr/local/bin/bundle:25:in `<main>'
Tasks: TOP => db:migrate => db:load_config => environment
(See full trace by running task with --trace)
I, [2022-12-29T10:28:07.806753 #1] INFO -- : gem install geocoder -v 1.4.4 -i /var/www/discourse/plugins/discourse-locations/gems/3.1.3 --no-document --ignore-dependencies --no-user-install
Successfully installed geocoder-1.4.4
1 gem installed

FAILED
--------------------
Pups::ExecError: cd /var/www/discourse &amp;&amp; su discourse -c 'bundle exec rake db:migrate' failed with return #&lt;Process::Status: pid 1066 exit 1&gt;
Location of failure: /usr/local/lib/ruby/gems/3.1.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.
9b7ac0c88b42b2aa1eccb9ef291527f4afd8b71861669af66ab79dee5ed82a45

```

我无法理解为什么它不允许引导以前成功的相同 yml 文件。[我的网站](https://BathindaHelper.com)虽然工作正常。

我在“Discourse-Doctor”中也没有找到任何“错误”（我只能搜索“error”这个词，而它不在 Discourse Doctor 的结果文件中）。不过，我不是专家。

---

_[View the full topic](https://meta.discourse.org/t/suddenly-boot-strapping-is-failing/250106)._
