Hi, I am trying to get Passenger (2.1) working on a Sun Sparc system
but I'm running into errors. I'm running apache 2.0.59, ruby 1.8.6,
and rails 2.2.2.
I have the following environment (let me know if you need any other
information):
dev:/opt/apache2/conf $ uname -a
SunOS Development 5.10 zfs-s10-0315 sun4u sparc SUNW,Sun-Fire-V240
dev:/opt/apache2/conf $ rails --version
Rails 2.2.2
dev:/opt/apache2/conf $ ruby --version
ruby 1.8.6 (2007-03-13 patchlevel 0) [sparc-solaris2.10]
I set up a brand new rails app using Rails 2.2.2 and confirmed it
works fine with mongrel. When I run curl -I to retrieve page from the
rails app, I get the following:
dev:/opt/apache2/conf $ curl -I
http://mysite.com/rails2test/widgets
HTTP/1.1 500 Internal Server Error
Content-type: text/html; charset=iso-8859-1
Date: Tue, 13 Jan 2009 23:40:24 GMT
Server: Apache/2.0.59 (Unix) DAV/2 PHP/5.0.4 Phusion_Passenger/2.1.0
Via: 1.1 proxy-proxy
Proxy-agent: Sun-Java-System-Web-Proxy-Server/4.0
My apache config includes:
PassengerRoot /opt/apache2/passenger
PassengerRuby /usr/local/bin/ruby
PassengerDefaultUser root # I've tried various users
<VirtualHost *:80>
ServerName
mysite.com
DocumentRoot /opt/apache2/htdocs
RailsBaseURI /rails2test # rails2test is a symlink to the public
directory of the rails app
</VirtualHost>
The error message in the apache log when I restart apache is:
*** Exception Errno::EBADF in spawn manager (Bad file number - sendmsg
(2)) (process 29589):
from /opt/apache2/passenger/lib/passenger/utils.rb:459:in `send_fd'
from /opt/apache2/passenger/lib/passenger/utils.rb:459:in `send_io'
from /opt/apache2/passenger/lib/passenger/message_channel.rb:201:in
`send_io'
from /opt/apache2/passenger/lib/passenger/spawn_manager.rb:320:in
`handle_spawn_application'
from /opt/apache2/passenger/lib/passenger/abstract_server.rb:332:in
`__send__'
from /opt/apache2/passenger/lib/passenger/abstract_server.rb:332:in
`main_loop'
from /opt/apache2/passenger/lib/passenger/abstract_server.rb:182:in
`start_synchronously'
from /opt/apache2/passenger/bin/passenger-spawn-server:46
[ pid=29592 file=Hooks.cpp:505 time=2009-01-13 19:03:13.691 ]:
Unexpected error in mod_passenger: The ApplicationPool server
unexpectedly closed the connection.
Backtrace:
in 'virtual boost::shared_ptr<Passenger::Application::Session>
Passenger::ApplicationPoolServer::Client::get(const
Passenger::PoolOptions&)' (ApplicationPoolServer.h:403)
in 'int Hooks::handleRequest(request_rec*)' (Hooks.cpp:409)
Any ideas? I know this is similar to some other problems people were
having with 64-bit architectures, but the fix from what I understand
is in Passenger 2.1. Maybe I just have something wrong in my
httpd.conf file? Or maybe apache 2.059 isn't supported?
Thanks,
Bryan