无法重建,'bundle exec rake assets:precompile' 失败

我有一处 Discourse 安装,已按照标准步骤完成。首次尝试修改 app.yml 以更新 SMTP 设置,随后运行 ./launcher rebuild app 时失败,报错如下:

FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake assets:precompile' failed with return #<Process::Status: pid 521 exit 1>
Location of failure: /pups/lib/pups/exec_command.rb:112:in `spawn'
exec failed with the params {"cd"=>"$home", "hook"=>"assets_precompile", "cmd"=>["su discourse -c 'bundle exec rake assets:precompile'"]}
13cae1b12cdf902161a5a7e297f2142a6379e6b22b1c6b1d0722d25636f5341c
** FAILED TO BOOTSTRAP ** 请向上滚动并查找更早的错误消息,可能不止一条。
./discourse-doctor 可能有助于诊断问题。
==================== END REBUILD LOG ====================

我的系统是 Ubuntu 14.04.6 LTS (GNU/Linux 3.13.0-57-generic x86_64),Discourse 版本为 2.4.0.beta8e7bd288d7b)。

我运行了 ./discourse-doctor,但其中包含相同的错误,没有提供更多信息。

有什么建议吗?

我该如何进一步调试?是否应该手动运行 cd /var/www/discourse && su discourse -c 'bundle exec rake assets:precompile' 来看看会发生什么?

这是我第一次使用 Discourse。这是一个未安装任何插件的纯净版 Discourse 安装,我只是尝试按照 How to modify email settings 中的说明更新 app.yml 中的 SMTP 设置,然后进行重建。

我们需要您向上滚动并检查之前的错误消息。

好的,看起来这就是原因:

rake aborted!
SocketError: Failed to open TCP connection to geolite.maxmind.com:443 (getaddrinfo: No address associated with hostname)
/var/www/discourse/lib/final_destination.rb:411:in `safe_session'
/var/www/discourse/lib/final_destination.rb:362:in `safe_get'
/var/www/discourse/lib/final_destination.rb:131:in `get'
/var/www/discourse/lib/file_helper.rb:51:in `download'
/var/www/discourse/lib/discourse_ip_info.rb:30:in `mmdb_download'
/var/www/discourse/lib/tasks/assets.rake:220:in `block (3 levels) in <top (required)>'
/var/www/discourse/lib/tasks/assets.rake:219:in `each'
/var/www/discourse/lib/tasks/assets.rake:219:in `block (2 levels) in <top (required)>'

Caused by:
SocketError: getaddrinfo: No address associated with hostname
/var/www/discourse/lib/final_destination.rb:411:in `safe_session'
/var/www/discourse/lib/final_destination.rb:362:in `safe_get'
/var/www/discourse/lib/final_destination.rb:131:in `get'
/var/www/discourse/lib/file_helper.rb:51:in `download'
/var/www/discourse/lib/discourse_ip_info.rb:30:in `mmdb_download'
/var/www/discourse/lib/tasks/assets.rake:220:in `block (3 levels) in <top (required)>'
/var/www/discourse/lib/tasks/assets.rake:219:in `each'
/var/www/discourse/lib/tasks/assets.rake:219:in `block (2 levels) in <top (required)>'
Tasks: TOP => assets:precompile
(See full trace by running task with --trace)

请查看 Upgrade / Rebuilds Fail due to MaxMind DB EOL - #2