Nginx

(客運代理)收到信號。優雅地關閉

  • July 13, 2015

我有一個在 aws ec2 實例上部署的 rails 應用程序,這是我第一次使用 Rubber Gem,為此我遵循了本教程。在刪除預設 nginx 配置和初始部署(我提到的教程的第 5 步)之後,當我嘗試使用公共 IP 或 DNS 訪問我的應用程序時,我得到一個 403 Forbidden nginx 螢幕。在檢查伺服器上 nginx 的錯誤日誌時,這是我發現的。我已經在這個問題上停留了很長一段時間,任何幫助將不勝感激。謝謝。

tail -f /var/log/nginx/error.log
[ 2015-07-10 05:49:13.7236 13522/7fc24be3a780 age/Wat/Main.cpp:1264 ]: Starting PassengerAgent watchdog...
[ 2015-07-10 05:49:13.7526 13525/7f2f7f588780 age/Hel/Main.cpp:944 ]: Starting PassengerAgent server...
[ 2015-07-10 05:49:13.7529 13525/7f2f7f588780 age/Hel/Main.cpp:237 ]: PassengerAgent server running in multi-application mode.
[ 2015-07-10 05:49:13.7550 13525/7f2f7f588780 age/Hel/Main.cpp:698 ]: PassengerAgent server online, PID 13525
[ 2015-07-10 05:49:13.7851 13530/7f39b592e780 age/Log/Main.cpp:442 ]: Starting PassengerAgent logger...
[ 2015-07-10 05:49:13.7863 13530/7f39b592e780 age/Log/Main.cpp:323 ]: PassengerAgent logger online, PID 13530
[ 2015-07-10 05:49:13.7876 13525/7f2f7f588780 age/Hel/Main.cpp:857 ]: Watchdog seems to be killed; forcing shutdown of all subprocesses

[ 2015-07-10 05:49:13.7877 13525/7f2f79042700 age/Hel/Main.cpp:508 ]: Signal received. Gracefully shutting down... (send signal 2 more time(s) to force shutdown)
2015/07/10 05:49:13 [alert] 9729#0: Required key 'core_address' is missing (-1: Unknown error)

我遇到了同樣的問題,我可以通過將 Rubber-passenger_nginx.yml 中的乘客版本更新為乘客版本:‘1:5.0.13-1~ lsb_release -sc1’來解決問題。

引用自:https://serverfault.com/questions/704866