Redmine起動時にPassengerで「Could not spawn process for application」エラー
AWSで起動しているRedmineのEC2をt2.microからt2.smallに変えたところ、起動時にPassengerでエラーが発生して起動しなくなりました。
ログを見てみる
Passengerのログは設定してなかったので、apacheのerror_logに出てました。
/var/log/httpd/error_log
1 2 3 4 5 |
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. If your app needs more time to start you can increase the Passenger start timeout config option. Error ID: 354a019c Error details saved to: /tmp/passenger-error-IwDsAs.html Message from application: An error occurred while starting up the preloader: it did not write a startup response in time. If your app needs more time to start you can increase the Passenger start timeout config option. Please read <a href="https://github.com/phusion/passenger/wiki/Debugging-application-startup-problems">this article</a> for more information about this problem. |
「Passenger start timeout config option」とあるので、Passengerのタイムアウトを調べたところ、PassengerStartTimeoutというパラメータがありました。
PassengerStartTimeout
Specifies a timeout for the startup of application processes. If an application process fails to start within the timeout period then it will be forcefully killed with SIGKILL, and the error will be logged.
とりあえずこんなにいらないだろうけど、300秒にしました。
Passenger用のconfigファイルは作ってないので、Redmine用に作っている /etc/httpd/conf.d/redmine.conf に以下を追記しました。
1 2 |
PassengerStartTimeout 300 |
これで起動に成功しました。
最後までお読みいただきましてありがとうございました!
【PR】 「AWS認定試験対策 AWS クラウドプラクティショナー」という本を書きました。
【PR】 「AWSではじめるLinux入門ガイド」という本を書きました。
【PR】 「ポケットスタディ AWS認定 デベロッパーアソシエイト」という本を書きました。
【PR】 「AWS認定資格試験テキスト&問題集 AWS認定ソリューションアーキテクト - プロフェッショナル」という本を書きました。

開発ベンダー5年、ユーザ企業システム部門通算9年、ITインストラクター3年目でプロトタイプビルダーもやりだしたSoftware Engineerです。
質問はコメントかSNSなどからお気軽にどうぞ。
出来る限りなるべく答えます。
このブログの内容/発言の一切は個人の見解であり、所属する組織とは関係ありません。
このブログは経験したことなどの共有を目的としており、手順や結果などを保証するものではありません。
ご参考にされる際は、読者様自身のご判断にてご対応をお願いいたします。
また、勉強会やイベントのレポートは自分が気になったことをメモしたり、聞いて思ったことを書いていますので、登壇者の意見や発表内容ではありません。
ad
ad
関連記事
-
-
AWSのAmazon LinuxにGitマスターサーバをインストールしてRedmineリポジトリブラウザで見る
Amazon LinuxにGitをインストールする Gitをインストールして自動 …
-
-
Redmine 3.0.0に CRMプラグインをインストールする
Redmine CRMプラグインのFreeのLightバージョンを使ってみる事に …
-
-
redmine_omniauth_googleプラグインをRedmine3.0.0で動くようにする
redmine_omniauth_googleプラグインをインストールしたところ …
-
-
Redmine REST APIを操作するpython_redmineを試してみた
Redmine のGUIの登録が面倒なのでコマンドで登録、更新、時間の記録が出来 …
-
-
Amazon LinuxにRedmine 環境構築(エラーと対応をそのまま記載版)
Amazon Linuxにgit + Redmineの環境を構築してみます。 自 …
-
-
RedmineにEasy Gantt プラグインをインストールしようとしたらRubyのバージョンが古いという事にひっかかったのでRubyもアップグレードした
RedmineにEasy Ganttプラグインをインストールしました。 標準のガ …
-
-
Redmine プラグイン開発チュートリアルをやってみる
Redmine 3.0環境でプラグインを作成するチュートリアルをやってみました。 …
-
-
Redmine Agileプラグインをバージョンアップインストールする
Redmine 3.0.0でRedmineCRMのAgileプラグインをインスト …
-
-
Redmine 3.4にAgile Plugin をインストール
過去にも似たような記事を書いていますが、新しいバージョンのRedmine 3.4 …
-
-
Redmine 3.0.0 にLocal Avatar プラグインをインストールしてユーザーがアバターを簡単に変更出来るようにする
Redmineのアバターは標準でGravater採用なのですが、エンドユーザーに …