无法启动的Phusion客运看门狗? [英] Unable to start the Phusion Passenger watchdog?

查看:337
本文介绍了无法启动的Phusion客运看门狗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经做了在Ubuntu 10.04一的Phusion客运设置,用的Apache2。每当我重新启动Apache服务器,我得到了以下错误消息,和Rails应用程序没有运行。

  [错误] ***乘客不能因为这个错误的初始化:无法启动的Phusion客运看门狗,因为它的可执行文件(/ usr / lib目录/ Phusion的乘客/代理商/ PassengerWatchdog)不存在。这可能意味着你的Phusion客运安装损坏或不完整的,或者说你的'PassengerRoot指令被设置为错误的值。请重新安装的Phusion乘客或修复您的PassengerRoot'指令,以适用者为准。


解决方案

从源代码编译的时候我遇到了同样的问题,但它是间歇性的,这是很无奈(我认为它有瓦特/ Rails的环境)。我们不能使用乘客安装-Apache2的模块/乘客安装-nginx的模块脚本,因为我们需要一个定制的nginx的安装。

我终于要去无论固定的问题乘客配置--root ,则运行:耙nginx的

更新2016年2月(由乘客作者):

正式支持的方法来编译PassengerAgent(不还编译Nginx的,如乘客安装-nginx的模块确实)是这个命令:

 乘客配置编译代理

客运5.0.26及更高版本会自动探测出这个计算器问题描述的错误,并且会自动建议运行上面的命令。

I have done a Phusion Passenger setup on Ubuntu 10.04, with Apache2. Whenever I restart the Apache server I got the following error message, and the Rails application is not running.

[error] *** Passenger could not be initialized because of this error: Unable to start the Phusion Passenger watchdog because its executable (/usr/lib/phusion-passenger/agents/PassengerWatchdog) does not exist. This probably means that your Phusion Passenger installation is broken or incomplete, or that your 'PassengerRoot' directive is set to the wrong value. Please reinstall Phusion Passenger or fix your 'PassengerRoot' directive, whichever is applicable.

解决方案

I ran into the same problem when compiling from source, but it was intermittent, which was really frustrating (I think it has to w/ Rails environments). We couldn't use the passenger-install-apache2-module/passenger-install-nginx-module scripts, because we needed a customized nginx installation.

I finally fixed the problem by going to whatever the passenger-config --root is, then running: rake nginx.

Update February 2016 (by Passenger author):

The officially supported method to compile PassengerAgent (without also compiling Nginx, as passenger-install-nginx-module does) is with this command:

passenger-config compile-agent

Passenger 5.0.26 and later will automatically detect the error described in this StackOverflow question, and will automatically suggest running the above command.

这篇关于无法启动的Phusion客运看门狗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆