Trouble installing Phusion 2.1 on Solaris (sparc)

0 views
Skip to first unread message

Bryan D

unread,
Jan 13, 2009, 9:17:03 PM1/13/09
to Phusion Passenger Discussions
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

Hongli Lai

unread,
Jan 15, 2009, 4:38:12 AM1/15/09
to phusion-...@googlegroups.com

It has got nothing to do with Apache. There's a file descriptor
management problem somewhere.

--
Phusion | The Computer Science Company

Web: http://www.phusion.nl/
E-mail: in...@phusion.nl
Chamber of commerce no: 08173483 (The Netherlands)

Bryan D

unread,
Jan 15, 2009, 12:34:47 PM1/15/09
to Phusion Passenger Discussions
Thanks Hongli,

Does this mean the problem is likely on my end or with Passenger?

Regards,
Bryan

On Jan 15, 1:38 am, "Hongli Lai" <hon...@phusion.nl> wrote:
> On Wed, Jan 14, 2009 at 3:17 AM, Bryan D <brdono...@gmail.com> wrote:
>
> > 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 -Ihttp://mysite.com/rails2test/widgets
> E-mail: i...@phusion.nl

Hongli Lai

unread,
Jan 19, 2009, 10:34:22 AM1/19/09
to phusion-...@googlegroups.com
On Thu, Jan 15, 2009 at 6:34 PM, Bryan D <brdo...@gmail.com> wrote:
>
> Thanks Hongli,
>
> Does this mean the problem is likely on my end or with Passenger?
>
> Regards,
> Bryan

I am not sure. If anybody with intimate knowledge of Solaris can
provide an answer then it would be very much appreciated.

--
Phusion | The Computer Science Company

Web: http://www.phusion.nl/
E-mail: in...@phusion.nl

Reply all
Reply to author
Forward
0 new messages