首页 > 解决方案 > 重新启动 Web 服务器时乘客无法启动

问题描述

在 /var/log/httpd/error_log 中重新启动 httpd 时,我看到一个奇怪的乘客错误:

[ N 2019-01-14 13:34:38.1896 30817/T1 age/Wat/WatchdogMain.cpp:1366 ]: Starting Passenger watchdog...
[ N 2019-01-14 13:34:38.2390 30820/T1 age/Cor/CoreMain.cpp:1339 ]: Starting Passenger core...
[ N 2019-01-14 13:34:38.2393 30820/T1 age/Cor/CoreMain.cpp:256 ]: Passenger core running in multi-application mode.
[ N 2019-01-14 13:34:38.2991 30820/T1 age/Cor/CoreMain.cpp:1014 ]: Passenger core online, PID 30820
[Mon Jan 14 13:34:38.306645 2019] [mpm_prefork:notice] [pid 30775] AH00163: Apache/2.4.6 (CentOS) Phusion_Passenger/6.0.0 configured -- resuming normal operations
[Mon Jan 14 13:34:38.306705 2019] [core:notice] [pid 30775] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[ N 2019-01-14 13:34:38.7734 30780/T1 age/Cor/TelemetryCollector.h:531 ]: Message from Phusion: End time can not be before or equal to begin time
[ N 2019-01-14 13:34:38.8869 30780/T1 age/Cor/CoreMain.cpp:1324 ]: Passenger core shutdown finished

倒数第二行似乎是给我带来问题的原因。

我最好的猜测是,这是由于将我的虚拟机恢复为快照造成的,但我找不到任何方法让乘客运行。

标签: passenger

解决方案


老问题,但这是我看到同样错误的唯一地方,在我的情况下,问题是我在接受端口 80 上的请求时在我的 rails 应用程序中打开了 force_ssl 配置。所以,如果你有rails 应用程序并收到此消息,解决方案可能是在 production.rb 上评论下一行

config.force_ssl = true

推荐阅读