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 |
これで起動に成功しました。
最後までお読みいただきましてありがとうございました!
「AWS認定資格試験テキスト&問題集 AWS認定ソリューションアーキテクト - プロフェッショナル 改訂第2版」という本を書きました。

「AWS認定資格試験テキスト AWS認定クラウドプラクティショナー 改訂第3版」という本を書きました。

「ポケットスタディ AWS認定 デベロッパーアソシエイト [DVA-C02対応] 」という本を書きました。

「要点整理から攻略するAWS認定ソリューションアーキテクト-アソシエイト」という本を書きました。

「AWSではじめるLinux入門ガイド」という本を書きました。


開発ベンダー5年、ユーザ企業システム部門通算9年、ITインストラクター5年目でプロトタイプビルダーもやりだしたSoftware Engineerです。
質問はコメントかSNSなどからお気軽にどうぞ。
出来る限りなるべく答えます。
このブログの内容/発言の一切は個人の見解であり、所属する組織とは関係ありません。
このブログは経験したことなどの共有を目的としており、手順や結果などを保証するものではありません。
ご参考にされる際は、読者様自身のご判断にてご対応をお願いいたします。
また、勉強会やイベントのレポートは自分が気になったことをメモしたり、聞いて思ったことを書いていますので、登壇者の意見や発表内容ではありません。
ad
ad
関連記事
-
-
Redmineの作業時間、予定工数をSQLで抽出
プラグインとかでやればいいのかもなのですが、可視化はダッシュボードツールとかBI …
-
-
RedmineにEasy Gantt プラグインをインストールしようとしたらRubyのバージョンが古いという事にひっかかったのでRubyもアップグレードした
RedmineにEasy Ganttプラグインをインストールしました。 標準のガ …
-
-
「第14回RxTStudy(Redmine勉強会)」に行ってきました
土曜日の真っ昼間に半分以上が初参加者さんで80席が満席。 それだけRedmine …
-
-
RedmineにGoogleAppsアカウントでログイン出来るようにする
RedmineのログインをGoogleアカウントで出来るように[redmine_ …
-
-
CentOS 6.5にRedmineをインストールするためにrubyをインストールする
とりあえずgitは入っている前提で [bash] # cd /opt # git …
-
-
Amazon LinuxにRedmine 環境構築(エラーと対応をそのまま記載版)
Amazon Linuxにgit + Redmineの環境を構築してみます。 自 …
-
-
Amzon Linux のApacheでRedmineとWordPressをバーチャルホストで共存する
EC2とRDSを節約しようと思いまして、Redmineを動かしてるとこに検証用W …
-
-
Redmine 3.0.0に CRMプラグインをインストールする
Redmine CRMプラグインのFreeのLightバージョンを使ってみる事に …
-
-
Redmine REST APIを操作するpython_redmineを試してみた
Redmine のGUIの登録が面倒なのでコマンドで登録、更新、時間の記録が出来 …
-
-
Redmine 3.0.0 のメールサーバーでGoogleApps SMTPサーバーを利用する
Redmineのメール通知サーバーとしてGoogleAppsを使用する方法です。 …