passenger

Passenger Error: The application spawner server exited unexpectedly: Unexpected end-of-file detected.

This was working just the other day, but I just updated my code to the review server which runs Passenger 2.2.4 and my 2.3.4 rails app now can't boot on that box. Passenger reports: Passenger encountered the following error: The application spawner server exited unexpectedly: Unexpected end-of-file detected. Exception class: Phus...

Using Passenger 2.2.5, why am I getting the following error on my Ruby on Rails page about an unreferenced "/" ?

Running: Apache 2.2.3 Ruby 1.8.7 Rails 2.3.4 Passenger 2.2.5 Error message: /var/www/derscheidfamily/app/controllers/greetings_controller.rb:14: syntax error, unexpected '/', expecting '\n' or ';' def app/controllers ^ /var/www/derscheidfamily/app/controllers/greetings_controller.rb:20: syntax error, unexpected '/', expecti...

Can i limit apache+passenger memory usage on server without swap space

Hi, i'm running a rails application with apache+passenger on virtual servers that do not have any swap space configured. The site gets decent amount of traffic with 200K+ daily requests and sometimes the whole system runs out of memory causing odd behaviour on whole system. The question is that is there any way to configure apache or p...

Deployment Strategy using Nginx and Passenger

Hello, I need help with setting up nginx and passenger on two separate machines. Can anyone point me in the right direction? I've already finished setting up my nginx and now that I need to install passenger, Ive reached this road block and I'm not sure how to proceed. Thanks! ...

Phusion Passenger on Ubuntu not seeing plugin in vendors directory

Phusion Passenger, running on Ubuntu Hardy Heron, is bombing on a require 'lingua/en/readability'. The plugin is installed in the plugins directory and works fine with script/server, just not Passenger. Error Message: source file that the application requires, is missing. * It is possible that you didn't upload your application file...

Passenger with apache and nginx on the same development box

I've got Apache and passenger on my notebook. I want to test Nginx and passenger on the same machine. I can install Nginx on 8080 and apache on 80. But can I install passenger with both the same server on the same machine? ...

Paperclip as a gem and Phusion Passenger (mod_rails) - can't find Paperclip

Hi, I'm using paperclip by thoughtbot for attachments to models and everything works fine on my development machine running mac os x and mongrel. However when I deploy may app to a debian machine running apache/mod_rails (2.2.5) I can't get it started. I get 'undefined method has_attached_file' (or 'uninitialized constant Paperclip' usi...

Phusion Passenger and database pooling

If my Rails application has the database pool size set to 5 (the default) in my database.yml file, and I'm running using Phusion Passenger, does that mean that there may be up to 5 database connections for each process that Passenger spawns, or is it 5 total across all processes? ...

How to configure VirtualHost for a Sinatra App with Passenger?

Hey experts, i run a rails app on passenger and it all works like it should. Now i want to add an sinatra app to run as rack application with passenger, but i always get a routing error. My VirtualHosts File looks like: NameVirtualHost *:80 <VirtualHost *:80> ServerName www.domain1.com DocumentRoot /home/user1/vhosts/project1/pub...

Having problems deploying a Rails app to Fedora 8 w/Passenger

I'm using Capistrano and have everything configured. The weird issue I have is that before, I got a nice Passenger error saying what was wrong (I hadn't fully uploaded my vendor/rails directory). After I do that, however, I'm now getting the general Rails We're sorry, but something went wrong 500 error instead of the Passenger error pa...

Phusion-Passenger seems to create MANY (140+) orphaned processes.

Hi there, We're running 3 Apache Passenger servers sharing the same file system, each running 11 Rails applications. We've set PassengerPoolIdleTime = 0 to ensure none of the applications ever die out completely, and PassengerMaxPoolSize = 20 to ensure we have enough processes to run all the applications. The problem is that whe...

How to check the cause for a HTTP request latency/waiting time?

I issue a simple GET request to my server, and it's coming back after ~1.2 seconds on average (using firebug NET tab, the "waiting for reqponse" part- not even the whole reponse time) My ping to the server is 0.250 Using Passenger with rails 2.3.3, in the rails log the request is taking ~0.023 My server is on GoDaddy, so I checked the...

Posting a large body crashes our stack -- but only in production mode?

Our Rails application has two environments that we deploy to servers a Staging environment and the default Production environment. The staging.rb file is a copy of the production.rb form the config/environments folder. The difference between the two is whiny nils is set to true: config.whiny_nils = true Since the rails application ...

permissions for running passenger on OS X 10.6

I'm not sure how to set permissions for Passenger on OSX. I have gotten through the install fine, but I understand now that Passenger runs as whoever owns environment.rb. That's my own user and group, call it apple & apple. As I understand it, Apache runs as _www & _www. What's the right strategy here? Let's say the app is at /Users/app...

Exception with javascript_include_tag with Phusion Passenger in Rails

Hi, In my Rails app. the javascript_include_tag seems to work fine in my localhost (mogrel) but I move to production(Phusion Passenger) it seems to behave differently and I get the following exception: (not sure what it's asking for all.js!!) A ActionView::TemplateError occurred in posts#show: Permission denied - /var/www/war/releas...

What is the best file upload/attachment plugin rails?

What are the pros and cons between PaperClip and Attachment_fu ? Are there any other plugins that would you recommend ? Is possible to support multiple file uploads and progress feedback on upload using these plugins and Passenger + Apache ...

Rails app (mod_rails) hangs every few hours

I'm running a Rails app through Phusion Passenger (mod_rails) which will run smoothly for a while, then suddenly slow to a crawl (one or two requests per hour) and become unresponsive. CPU usage is low throughout the whole ordeal, although I'm not sure about memory. Does anyone know where I should start to diagnose/fix the problem? Upd...

Paperclip / Passenger NotIdentifiedByImageMagickError:

When I try to upload a photo in Ruby on Rails using Paperclip on my local machine it works perfectly. When I try to upload a photo in Ruby on Rails using Paperclip on our Linux (CentOS 5.2) server with Apache and Phusion Passenger, I get: 2 errors prohibited this user from being saved There were problems with the following ...

Ruby 1.9.1-p234, Passenger 2.2.5, Rails 2.3-stable closed stream on POST request

I've setup Ruby 1.9.1 (p234) on a Ubuntu server. I'm trying to deploy a Rails app which vendors Rails 2.3-stable on Apache 2.2/Passenger 2.2.5. GET requests work fine, POST requests break immediately with the following log entry: Processing UsersController#new (for 80.203.77.44 at 2009-10-24 20:54:55) [GET] Parameters: {"controller"=...

How do I setup my Rails Apps to Run through Phusion Passenger?

Hello folks, I have the following doubt: I have an application in Rails+MySQL and I want to run this with Apache + Passenger, I have both installed, but when I run ./script/server my app starts running with WebRick, how do I change it for work with Passenger and Apache? P.S: I'm on Ubuntu 9.04 Jaunty Jackalope, please consider the fact...