passenger - 重新启动 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
倒数第二行似乎是给我带来问题的原因。
我最好的猜测是,这是由于将我的虚拟机恢复为快照造成的,但我找不到任何方法让乘客运行。
解决方案
老问题,但这是我看到同样错误的唯一地方,在我的情况下,问题是我在接受端口 80 上的请求时在我的 rails 应用程序中打开了 force_ssl 配置。所以,如果你有rails 应用程序并收到此消息,解决方案可能是在 production.rb 上评论下一行
config.force_ssl = true
推荐阅读
- apache-kafka - 复制因子应该是一个在 Apache Kafka 中提供最多一次交付语义的因素吗?
- sql-server - 组合具有不同列名的表,在 MSSQL 中不重复
- r - 如何在 MAC 中使用 brew 降级 R 版本
- angular - 无法将 SSR 添加到现有的 Spartacus 项目
- r - 识别允许 x 不匹配并忽略 NA 的重复行
- python - 将数据传输到列表并与文件保持相同的长度
- javascript - 在智能手机和arduino之间读取ndef消息
- python - 为什么 PyGame 与 PyMongo 结合使用时会冻结?
- python - 尝试将图像作为背景时出现 Unicode 错误
- arrays - Mongoose $push 无法正常工作。无法推入数组