trusktr
(Joseph Orbegoso Pea (Joe Pea))
2019 年 12 月 30 日午後 6:44
1
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 ** please scroll up and look for earlier error messages, there may be more than one.
./discourse-doctor may help diagnose the problem.
==================== END REBUILD LOG ====================
環境は Ubuntu 14.04.6 LTS (GNU/Linux 3.13.0-57-generic x86_64) で、Discourse のバージョンは 2.4.0.beta8
(e7bd288d7b )です。
./discourse-doctor を実行しましたが、これ以上の情報を与えず、同じエラーが表示されるだけです。
何か解決策はありますでしょうか?
さらにデバッグするにはどうすればよいでしょうか?問題を確認するために、手動で cd /var/www/discourse && su discourse -c 'bundle exec rake assets:precompile' を実行すべきでしょうか?
これは Discourse の初使用です。プラグインは入っていない素の状態(vanilla)のインストールで、How to modify email settings に記載されている通り、単に app.yml の SMTP 設定を更新して再構築を試みました。
Falco
(Falco)
2019 年 12 月 30 日午後 6:52
2
上へスクロールして、以前のエラーメッセージを確認してください。
trusktr
(Joseph Orbegoso Pea (Joe Pea))
2019 年 12 月 30 日午後 7:30
3
ああ、なるほど。これが原因のようです:
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)
Falco
(Falco)
2019 年 12 月 30 日午後 7:31
4