Unable to start the Phusion Passenger watchdog

1,778 views
Skip to first unread message

amala

unread,
Mar 6, 2012, 1:09:32 AM3/6/12
to Phusion Passenger Discussions
I'm trying to install Passenger (mod_rails) on Apache2 server by using
the command

1. gem install passenger
2. passenger-install-apache2-module
Passenger gets installed and i added the below line to my
configuration file

LoadModule passenger_module /home/ec2-user/.rvm/gems/ruby-1.9.2-p290/
gems/pass enger-3.0.11/ext/apache2/mod_passenger.so
PassengerRoot /home/ec2-user/.rvm/gems/ruby-1.9.2-p290/gems/
passenger-3.0.11
PassengerRuby /home/ec2-user/.rvm/wrappers/ruby-1.9.2-p290/ruby

Once i finished all those steps and i started accessing of Apache2
server.

I got the following Passenger error:

[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.
Thi s probably means that your Phusion Passenger installation is
broken or incomplet e, or that your 'PassengerRoot' directive is set
to the wrong value. Please rein stall Phusion Passenger or fix your
'PassengerRoot' directive, whichever is appl icable.

It took PassengerRoot path as (/usr/lib/phusion-passenger/agents/
PassengerWatchdog) instead of ( /home/ec2-user/.rvm/gems/ruby-1.9.2-
p290/gems/passenger-3.0.11). Why?

Appreciate your help in resolving this issue.

Hongli Lai

unread,
Mar 6, 2012, 2:48:09 AM3/6/12
to phusion-...@googlegroups.com

Sent from my Android phone.

Op 6 mrt. 2012 07:33 schreef "amala" <amal...@gmail.com> het volgende:
--
You received this message because you are subscribed to the Google Groups "Phusion Passenger Discussions" group.
To post to this group, send email to phusion-...@googlegroups.com.
To unsubscribe from this group, send email to phusion-passen...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/phusion-passenger?hl=en.

Hongli Lai

unread,
Mar 6, 2012, 2:48:50 AM3/6/12
to phusion-...@googlegroups.com

Probably because the user apache is running as does not have permission to access /home/ec2-user.

Sent from my Android phone.

Op 6 mrt. 2012 07:33 schreef "amala" <amal...@gmail.com> het volgende:
I'm trying to install Passenger (mod_rails) on Apache2 server by using

amala

unread,
Mar 8, 2012, 10:18:56 PM3/8/12
to Phusion Passenger Discussions
Thanks Hongli for the response!

Since i got the above problem, i just re-installed passenger-install-
apache2-module. It failed again with the following error.

Compiling and installing Apache 2 module...
cd /home/ec2-user/.rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.11
/home/ec2-user/.rvm/wrappers/ruby-1.9.2-p290/rake apache2:clean
apache2 RELEASE=yes
# /home/ec2-user/.rvm/wrappers/ruby-1.9.2-p290/rake apache2:clean
apache2 RELEASE=yes
rm -rf ext/common/libboost_oxt.a ext/common/libboost_oxt
rm: cannot remove `ext/common/libboost_oxt/aggregate.o': Permission
denied
rm: cannot remove `ext/common/libboost_oxt/aggregate.cpp': Permission
denied
rake aborted!
Command failed with status (1): [rm -rf ext/common/libboost_oxt.a ext/
commo...]

Tasks: TOP => apache2:clean => common:clean
(See full trace by running task with --trace)
--------------------------------------------
It looks like something went wrong
Please read our Users guide for troubleshooting tips:
   /home/.rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.11/doc/Users
guid
e Apache.html
If that doesn't help, please use our support facilities at:
   http://www.modrails.com/
We'll do our best to help you.

What should be the cause here???

On Mar 6, 12:48 pm, Hongli Lai <hon...@phusion.nl> wrote:
> Probably because the user apache is running as does not have permission to
> access /home/ec2-user.
>
> Sent from my Android phone.
> Op 6 mrt. 2012 07:33 schreef "amala" <amala....@gmail.com> het volgende:

amala

unread,
Mar 8, 2012, 11:54:18 PM3/8/12
to Phusion Passenger Discussions
Finally i got working of this stuff.. First i uninstall the passenger
gem and i just removed the passenger-3.0.11 from the path (/home/ec2-
user/.rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.11).
Then i re-installed passenger gem using gem install passenger
After proper installation of passenger gem, i entered passenger-
install-apache2-module. Then its getting installed completely. That's
it..

Thanks,
Reply all
Reply to author
Forward
0 new messages