Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
New install of Passenger (replacing mongrel_cluster) segfaults apache
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Matt R  
View profile  
 More options Jan 13 2009, 4:41 pm
From: Matt R <matt.rog...@gmail.com>
Date: Tue, 13 Jan 2009 13:41:44 -0800 (PST)
Local: Tues, Jan 13 2009 4:41 pm
Subject: New install of Passenger (replacing mongrel_cluster) segfaults apache
Trying to replace mongrel_cluster with passenger. Installed via the
gem and ran the install "OK". Added the correct entries to my
httpd.conf and vhosts.

Restarting apache results in every child process failing:
[Tue Jan 13 16:37:42 2009] [notice] SIGHUP received.  Attempting to
restart
[Tue Jan 13 16:37:42 2009] [notice] Digest: generating secret for
digest authentication ...
[Tue Jan 13 16:37:42 2009] [notice] Digest: done
[Tue Jan 13 16:37:42 2009] [notice] Apache/2.2.6 (Unix) mod_ssl/2.2.6
\x10\xf7\x0e\b DAV/2 Phusion_Passenger/2.0.6 configured -- resuming
normal operations
[Tue Jan 13 16:37:51 2009] [notice] child pid 6678 exit signal
Segmentation fault (11)
[Tue Jan 13 16:37:51 2009] [notice] child pid 6679 exit signal
Segmentation fault (11)

Running the spawner from the command line gives:
passenger-spawn-server
*** Exception Errno::EBADF in spawn manager (Bad file descriptor)
(process 16929):
        from /usr/local/lib/ruby/gems/1.8/gems/passenger-2.0.6/bin/passenger-
spawn-server:32:in `initialize'
        from /usr/local/lib/ruby/gems/1.8/gems/passenger-2.0.6/bin/passenger-
spawn-server:32:in `new'
        from /usr/local/lib/ruby/gems/1.8/gems/passenger-2.0.6/bin/passenger-
spawn-server:32
        from /usr/local/bin/passenger-spawn-server:19:in `load'
        from /usr/local/bin/passenger-spawn-server:19

which is
input = IO.new(DEFAULT_INPUT_FD)

It fails with both regular ruby and ruby ee.

The rails production log shows requests making it just fine (e.g. it
is processing). Any ideas?

Thanks!!!!

Version info follows:

uname -a
Linux  2.6.9-67.ELsmp #1 SMP Wed Nov 7 13:58:04 EST 2007 i686 athlon
i386 GNU/Linux

ruby -v (regular)
ruby 1.8.6 (2007-03-13 patchlevel 0) [i686-linux]

ruby -v (enterprise edition)
ruby 1.8.6 (2008-08-08 patchlevel 286) [i686-linux]

http -v
Server version: Apache/2.2.6 (Unix)

gem list --local
*** LOCAL GEMS ***

actionmailer (2.2.2, 2.0.2)
actionpack (2.2.2, 2.0.2)
activerecord (2.2.2, 2.0.2)
activeresource (2.2.2, 2.0.2)
activesupport (2.2.2, 2.0.2)
cgi_multipart_eof_fix (2.5.0)
columnize (0.3.0)
daemons (1.0.10, 1.0.9)
daylife (0.1.0)
fastercsv (1.4.0, 1.2.3)
fastthread (1.0.1)
ferret (0.11.6)
gem_plugin (0.2.3)
heywatch (0.0.1)
hoe (1.8.2, 1.4.0)
hpricot (0.6.164, 0.6)
image_science (1.1.3)
linecache (0.43)
mislav-will_paginate (2.3.2)
mongrel (1.1.5, 1.1.3, 1.1.2)
mongrel_cluster (1.0.5)
mysql (2.7)
passenger (2.0.6)
rack (0.9.1)
rails (2.2.2, 2.0.2)
rake (0.8.3, 0.8.1)
ruby-debug (0.10.3, 0.10.0)
ruby-debug-base (0.10.3, 0.10.0)
rubyforge (1.0.2)
rubygems-update (1.3.1, 1.0.1)
RubyInline (3.8.1, 3.6.6)
sources (0.0.1)
tattle (1.0.3)
xml-simple (1.0.11)
ZenTest (3.11.0)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matt R  
View profile  
 More options Jan 13 2009, 6:45 pm
From: Matt R <matt.rog...@gmail.com>
Date: Tue, 13 Jan 2009 15:45:38 -0800 (PST)
Local: Tues, Jan 13 2009 6:45 pm
Subject: Re: New install of Passenger (replacing mongrel_cluster) segfaults apache
Here's my http-vhosts:
NameVirtualHost 123.123.123.123:80

<VirtualHost 123.123.123.123:80>
        ServerAdmin webs...@website.com
        ServerName website.com
        ServerAlias www.website.com
        DocumentRoot /var/www/apps/website/www.website/current/public

        <Directory "/var/www/apps/website/www.website/current/public">
                Options FollowSymLinks
        AllowOverride None
        Order allow,deny
        Allow from all
        </Directory>

  ErrorLog /var/www/apps/website/www.website/shared/log/
www.website.com-error_log
  CustomLog /var/www/apps/website/www.website/shared/log/
www.website.com-access_log combined
</VirtualHost>

<VirtualHost 123.123.123.123:80>
        ServerAdmin webs...@website.com
  ServerName dev.website.com
        ServerAlias www.dev.website.com
  DocumentRoot /var/www/apps/website/dev.website/current/public

  <Directory "/var/www/apps/website/dev.website/current/public">
    Options FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
  </Directory>

  ErrorLog /var/www/apps/website/dev.website/shared/log/
dev.website.com-error_log
  CustomLog /var/www/apps/website/dev.website/shared/log/
dev.website.com-access_log combined
</VirtualHost>

<VirtualHost 123.123.123.123:80>
        ServerAdmin webs...@website.com
  ServerName staging.website.com
        ServerAlias www.staging.website.com
  DocumentRoot /var/www/apps/website/staging.website/current/public

  <Directory "/var/www/apps/website/staging.website/current/public">
    Options FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
  </Directory>

  ErrorLog /var/www/apps/website/staging.website/shared/log/
staging.website.com-error_log
  CustomLog /var/www/apps/website/staging.website/shared/log/
staging.website.com-access_log combined
</VirtualHost>

On Jan 13, 4:41 pm, Matt R <matt.rog...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sylvain Utard - redox  
View profile  
 More options Jan 21 2009, 4:49 pm
From: Sylvain Utard - redox <sylvain.ut...@gmail.com>
Date: Wed, 21 Jan 2009 13:49:26 -0800 (PST)
Local: Wed, Jan 21 2009 4:49 pm
Subject: Re: New install of Passenger (replacing mongrel_cluster) segfaults apache
$  cat /proc/sys/fs/epoll/max_user_instances
128

+This is the maximum number of epoll file descriptors that a single
user can
+have open at a given time. The default value is 128, and should be
enough
+for normal users.

The problem is that 128 is too low for your configuration.
$ echo 1024 > /proc/sys/fs/epoll/max_user_instances

will solve your problem ;)

--
Sylvain Utard


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matt R  
View profile  
 More options Mar 16 2009, 3:35 pm
From: Matt R <matt.rog...@gmail.com>
Date: Mon, 16 Mar 2009 12:35:41 -0700 (PDT)
Local: Mon, Mar 16 2009 3:35 pm
Subject: Re: New install of Passenger (replacing mongrel_cluster) segfaults apache
That didn't fix the problem, but updating to 2.1.2 seemed to work!

On Jan 21, 5:49 pm, Sylvain Utard - redox <sylvain.ut...@gmail.com>
wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »