再起動した際にログイン画面を表示させようとすると
We’re sorry, but something went wrong
が表示される場合の対応について
Apacheのerror_logには下記のようなログが記録される。
Could not spawn process for application /var/lib/redmine: An error occurred while starting up the preloader: it did not write a startup response in time. Error ID: 85670ca3 Error details saved to: /tmp/passenger-error-scHOBl.html Message from application: An error occurred while starting up the preloader: it did not write a startup response in time. Please read <a href="https://github.com/phusion/passenger/wiki/Debugging-application-startup-problems">this article for more information about this problem.<br> <h2>Raw process output:</h2> <pre> /var/lib/redmine/vendor/bundle/ruby/2.2.0/gems/htmlentities-4.3.1/lib/htmlentities/mappings/expanded.rb:465: warning: duplicated key at line 466 ignored: "inodot" </pre>
Debugging application startup problems
に対処方法があるが、今回の場合には、タイムアウトが原因だった。
デフォルトは90秒のようなので、
/etc/httpd/conf.d/redmine.conf に下記記述を追加して解決した。120秒は環境に応じて長くする必要がある。
PassengerStartTimeout 120