# 如何在Discourse引导过程中解决Pups执行错误

**URL:** <https://meta.discourse.org/t/how-to-resolve-pups-exec-errors-during-discourse-bootstrap/362619>\
**Category:** Support\
**Created:** [2025年四月18日 12:38 UTC](https://meta.discourse.org/t/how-to-resolve-pups-exec-errors-during-discourse-bootstrap/362619 "2025-04-18T12:38:46Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Thomas\_Rother](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thomas_rother/32/423597_2.png) [@Thomas\_Rother](https://meta.discourse.org/u/Thomas_Rother)\
**Post date:** [2025年四月18日 12:38 UTC](https://meta.discourse.org/t/how-to-resolve-pups-exec-errors-during-discourse-bootstrap/362619/1 "2025-04-18T12:38:46Z")

</div>

我正在从头开始为开发目的创建一个新的 discourse 实例，并再次看到此引导错误：

```plaintext
FAILED
--------------------
Pups::ExecError: cd /var/www/discourse & su discourse -c 'bundle exec rake db:migrate' failed with return #<Process::Status: pid 1002 exit 1>
Location of failure: /usr/local/lib/ruby/gems/3.3.0/gems/pups-1.2.1/lib/pups/exec_command.rb:132:in `spawn'
exec failed with the params {"cd"=>"$home", "tag"=>"migrate", "hook"=>"db_migrate", "cmd"=>["su discourse -c 'bundle exec rake db:migrate'"]}
bootstrap failed with exit code 1

```

容器设置是为 webonly 和 dataonly (redis) 使用两个容器，并使用外部 postgresql 数据库。注释掉 maxmind 设置没有任何改变。

有什么办法可以解决这个问题吗？

---

_[View the full topic](https://meta.discourse.org/t/how-to-resolve-pups-exec-errors-during-discourse-bootstrap/362619)._
