我有一个新部署的 Discourse 实例(今早搭建的)。应用构建顺利,且运行无任何问题。然而,我尝试构建导入容器(使用此公式),但容器启动失败。
以下是我看到的错误信息。日志中更靠前的部分似乎没有与之相关的其他内容。
FAILED
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle install --no-deployment --path vendor/bundle --jobs $(($(nproc) - 1)) --without test development' failed with return #<Process::Status: pid 1836 exit 15>
Location of failure: /usr/local/lib/ruby/gems/3.4.0/gems/pups-1.4.0/lib/pups/exec_command.rb:138:in 'Pups::ExecCommand#spawn'
exec failed with the params {"cd" => "$home", "cmd" => ["echo \"gem 'mysql2'\" >> Gemfile", "echo \"gem 'ruby-bbcode-to-md', :github => 'nlalonde/ruby-bbcode-to-md'\" >> Gemfile", "su discourse -c 'bundle config unset deployment'", "su discourse -c 'bundle install --no-deployment --path vendor/bundle --jobs $(($(nproc) - 1)) --without test development'"]}
bootstrap failed with exit code 15
** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one.
感谢您的任何帮助。
不过,这可能与以下内容有关:
Removing version_gem (1.1.11)
I, [2026-06-24T13:04:04.442400 #1] INFO -- : > cd /var/www/discourse && su discourse -c 'find /var/www/discourse/vendor/bundle -name cache -not -path "*/gems/*" -type d -exec rm -rf {} +'
I, [2026-06-24T13:04:04.544866 #1] INFO -- : > cd /var/www/discourse && su discourse -c 'find /var/www/discourse/vendor/bundle -name tmp -type d -exec rm -rf {} +'
I, [2026-06-24T13:04:04.645437 #1] INFO -- : > cd /var/www/discourse && echo "gem 'mysql2'" >> Gemfile
I, [2026-06-24T13:04:04.647649 #1] INFO -- : > cd /var/www/discourse && echo "gem 'ruby-bbcode-to-md', :github => 'nlalonde/ruby-bbcode-to-md'" >> Gemfile
I, [2026-06-24T13:04:04.649093 #1] INFO -- : > cd /var/www/discourse && su discourse -c 'bundle config unset deployment'
I, [2026-06-24T13:04:04.774523 #1] INFO -- : > cd /var/www/discourse && su discourse -c 'bundle install --no-deployment --path vendor/bundle --jobs $(($(nproc) - 1)) --without test development'
由于 `--path` 标志依赖于在 bundler 调用之间被记住,而 bundler 已不再这样做,因此已移除此标志。请使用 `bundle config set path 'vendor/bundle'`,并停止使用此标志。