Phusion Passenger (originally called mod_rails or mod_rack) is a Rails application server designed for easy deployment and low maintenance hosting of Rack apps, including Rails, Sinatra, Camping, and other ruby-based web development micro-frameworks. Passenger supports both Apache and NGinx ...

learn more… | top users | synonyms (1)

0
votes
2answers
876 views

Timeouts somewhere on our stack (haproxy, nginx, rails, memcached)

We have some timeouts that are driving me crazy, under virtually no load (probably a couple people hitting the servers per minute). We use nginx to redirect non-SSL to SSL, terminate the SSL, and ...
1
vote
0answers
90 views

Sending HUP to Nginx resulting in never-dying old master process

Sometimes when I try to do a graceful restart by sending HUP to Nginx, I end up with a master process that never dies, it sticks around forever, and eventually my app becomes unresponsive and I have ...
1
vote
1answer
680 views

Nginx Passenger returning 500s for every request

Up until this point I've been using the standalone passenger (nginx-based) for my application. Everything works fine. I've decided to move to an nginx based solution since I need to be able to ...
0
votes
2answers
823 views

Apache Passenger displaying my Rails application contents?

I have installed mod_rails (phusion passenger) for Apache on Ubuntu 11.10. Ruby and Rails are running fine, and so does mod_rails. I have setup a site on dev.localhost, which is my ruby app. The app ...
5
votes
2answers
4k views

Passenger + nginx: application doesn't run in production mode

I'm using Passenger + Nginx to run a Rails app. If i use "rails_env development;" the application works fine. But if i run in production mode, i get "We're sorry, but something went wrong.". I did ...
0
votes
1answer
275 views

mod_rails. Apache + Nginx. After installing passenger Apache doesn't start

I've installed Nginx for optimizing the speed of Apache requests. For some weeks everything was fine, all my sites had started to fly indeed. BUT, I've decided to install passenger, and has broken my ...
0
votes
2answers
423 views

Nginx + Passenger = Slow response

I'm running nginx 1.0.4 with Passenger 3.0.11 and Rails applications and I've noticed that on every request I made, it takes about 5 seconds to respond for the first request, if I reload it, after the ...
2
votes
2answers
234 views

Routing non GET requests to passenger in Nginx

I have a Rails app that is caching pages in multiple custom directories. Everything works fine other than non GET requests, which are delivering 405 errors in Nginx because my configuration is not ...
0
votes
1answer
206 views

Rails application dying slowly on Mac Lion 10.7.2 with Phussion

I've asked this question over at stackoverflow, but I thought someone here might have insight as well. I've recently deployed my first Rails application on a Mac mini running Lion 10.7.2 with Apache ...
1
vote
2answers
498 views

passenger-memory-stats - root privileges

When I run 'passenger-memory-stats' on my ubuntu server as root I get the following error : -bash: passenger-memory-stats: command not found If I run this command as a user ('deploy' in my case) I ...
1
vote
1answer
868 views

ModRails for Apache2 Setup: Failing to load?

I'm trying to perform a fresh install of Ruby on Rails running with Apache2/Passenger on Ubuntu. I was able to successfully install apache2, rvm, ruby, rails and passenger, the latter part following ...
0
votes
1answer
499 views

Django returns 502 error when user apps are added

I've configured a Debian 6 server with nginx, Passenger, and MySQL to run Django, and was running through the Django tutorial with everything going swimmingly until I tried to turn on the admin ...
0
votes
3answers
170 views

How do I make nginx start (user install with passenger) on boot?

I have installed nginx on my Ubuntu 10.04 box. With passenger 3. Now I've got everything setup correctly; how do I ensure that nginx will start on boot everytime?
0
votes
1answer
141 views

Phusion Passenger without RVM

Usually I use RVM + Passenger for my rails applications. Recently, however, I needed to use Passenger without RVM. And I'm confused about gem location. What's the location of gems that Passenger ...
0
votes
1answer
972 views

Nginx can't find PCRE library on Ubuntu Server

I have been trying to get my Passenger and Nginx setup to work with php files but I am having problems with the PCRE regular expressions library. Install all went fine so I'm assuming it found the ...
4
votes
2answers
2k views

Firefox and Chrome keeps forcing HTTPS on Rails app using nginx/Passenger

I've got a really weird problem here where every time I try to browse my Rails app in non-SSL mode Chrome (v16) and Firefox (v7) keeps forcing my website to be served in HTTPS. My Rails application ...
0
votes
1answer
366 views

mod-redmine && mod-passenger: Passenger refuses to load (here: Redmine) after rewrite uri. Where to put RailsBaseURI?

i've a working Redmine-instance at /var/lib/redmine. (Redmine configuration is not the issue) ln -s /var/lib/redmine/public /var/www/redmine chown -R www-data:www-data /var/www/redmine echo ...
0
votes
1answer
385 views

Apache 2, Passenger 3 and RVM setup

I want to setup a RoR server with Apache2 + Passenger3 + RVM, These are my configurations # Passenger Apache Integartion LoadModule passenger_module ...
0
votes
1answer
793 views

Using PCRE 8.20 with Nginx 1.0.11 and Passenger

I downloaded and extracted the nginx source to ~/nginx-1.0.11, then downloaded PCRE 8.20 directly since the latest version of the Passenger installer can't download it automatically. I did the typical ...
2
votes
1answer
226 views

Passenger and ServerAlias not cooperating

I have a ruby application that runs on a server with multiple IP addresses and mutliple vhosts. Here is the configuration of the problematic virtual host: <VirtualHost 10.0.0.10:80> ...
1
vote
1answer
847 views

Why do I need to specify passenger_enabled twice?

I'm trying to set up my nginx.conf to use the asset pipeline in Rails 3.1. I'm using nginx 1.0.10 and Passenger 3.0.11. My nginx.conf looks like this: server { listen 80; server_name .example.com ...
0
votes
1answer
901 views

Setting up Passenger + Nginx on Arch

I'm trying to setup passenger and nginx on Arch, but I can't seem to get the nginx server to even start. I've followed the guide found here: ...
2
votes
3answers
2k views

Ruby on Rails Process Stuck at 100% CPU

Environment: Ubuntu 10.04 LTS, Passenger, Nginx 1.0.6, MySQL, Ruby 1.9.2, Rails 3.1 After some amount of time, the server ends up with a gradually increasing number of processes that are stuck at ...
1
vote
1answer
686 views

NGINX - Two different rails apps under same domain

I have two different Rails (passenger) apps that I wan to host on one server: somehost.com/ <-- App #1 somehost.com/admin <--- App #2 Tried playing with the 'location' directive, but ...
1
vote
1answer
91 views

Apache Bench length failures

I am running Apache Bench against a Ruby on Rails XML-RPC web service that is running on Passenger via mod_passenger. All is fine when I run 1000 requests without concurrency. Bench indicates that ...
0
votes
1answer
250 views

Can I compile Passenger (mod_rails/mod_rack) to make a statically linked Apache httpd?

I prefer to disable httpd dynamic module loading on my production server. I've been using mod_jk linked statically into httpd for quite a long time and it proved to be stable. Now I would like to ...
0
votes
1answer
388 views

Error installing nginx with passenger-install-nginx-module on ubuntu 11.10 & rails 3.1.0

Here is the error message from installing nginx with passenger-install- nginx-module (rvmsudo). The nginx is 1.0.6 installed under /opt/nginx (default). gem install passenger successfully prior. ...
0
votes
1answer
160 views

mod_rewrite rules for non-default page cache directory for Rails application with distinction between mobile directory and www directory

My Question is similar (almost the same) to another question asked here: but with a twist. Does anybody have some working Apache mod_rewrite rules that enable Phusion Passenger (mod_rails) to ...
0
votes
1answer
789 views

IE Ajax Request times out even though server is responding

This is a repost of the following SO question because I'm pretty convinced that this is a networking/server issue, and not something wrong with my code. ...
2
votes
4answers
615 views

Really high load readings while the server seems indle

I was wondering if any of You encountered such an issue, that the reported load of the server is really high though none of the parameters seems to indicate that its busy at all. I would need to check ...
3
votes
1answer
434 views

Nginx + Passenger : stop file uploads timing out after 30 seconds

I have a ruby app which runs under passenger and nginx. If i try to upload a largish file (eg 15+ meg), when it gets to 30s in, the upload restarts (according to chrome) and at the end of the next 30 ...
0
votes
1answer
224 views

nginx/passenger waits if post data exceeds content-length

I have an nginx 1.0.6 server set up in front of a Ruby on Rails application using Passenger. I have noticed some strange behaviour when making POST requests. Consider this little code snippet: ...
0
votes
1answer
292 views

newer nginx (1.0.6) is not running on ubuntu server

Installed nginx 0.8.54 with apt-get from ubuntu repo. Executing command "passenger-install-nginx-module" installed nginx 1.0.6 (I believe). After restart however, nginx -v still shows version 0.8.54. ...
2
votes
1answer
805 views

Passenger on Apache2 - how to make a site appear on root

I'm new to apache2 and passenger to set-up rails apps and followed a tutorial on how to get redmine (rails app) set up (http://xdissent.com/2010/05/04/github-clone-with-redmine/). It all works great ...
2
votes
1answer
2k views

How do I get Apache's www-data to recognize RVm?

Problem: Apache/Passenger don't recognize RVM I have a multi-user install of RVM, per the canonical instructions: http://beginrescueend.com/rvm/install/ I then edited /etc/profile.d/rvm.sh to ...
0
votes
1answer
446 views

How to use Passenger (apache2 module) with 2+ Rails apps using each one different gemsets

Let's suppose I want to host 2 rails apps in the same server. I'd use RVM (installed as multiuser) and two different gemsets; suppose gemsetA for appA and gemsetB for appB. What's the best way to ...
1
vote
1answer
244 views

Phusion Passenger + Nginx - Architecture?

I'm using Phusion Passenger + nginx to deploy a rails app. So far, all is working fantastically. However, I'm a little fuzzy around the architecture of passenger + nginx, and I would love to deepen ...
0
votes
1answer
598 views

Ruby/Passenger stops working after update to OpenSSL

Someone has run a yum update on the CentOS box (Linux 2.6.28.1-xxxx-std-ipv4-32 #2 SMP Fri Jan 30 09:55:02 UTC 2009 i686 i686 i386 GNU/Linux) that runs a Ruby on Rails app (Redmine) served with ...
1
vote
1answer
383 views

Passenger + Rails + Global Queues - Can you direct specific requests to specific queues?

I have a site with a relatively low amount of traffic that's normally served happily by 3 or 4 passenger instances. However, sometimes it is getting hammered by a large number of automated requests ...
4
votes
1answer
366 views

Is Apache ReverseProxy to Passenger Standalone an acceptable production deployment?

I have the need to deploy Rails 3 apps, using RVM and gemsets, and am expecting “public” traffic (i.e. this is not an internal-only app). I also must use Apache as the public interface to my app. I ...
1
vote
0answers
192 views

Apache, Passenger, Rails 3.1 - Intermittent long pauses on request

I have a 3.1.0 Rails app (rack 1.3.3) running on a CantOS 5.6 VM using Apache and Passenger 3.0.9 - all recently setup. Everything works perfectly... except for long delays on some requests ...
3
votes
1answer
1k views

502 Bad Gateway error after failed requests using Passenger

I've got a staging server running nginx 1.0.5 using Rails 3.1 under Passenger 3.0.9. The problem is that a request sent just after one where there's an application error return 502 Bad Gateway. To ...
1
vote
0answers
317 views

problem with Apache / Passenger - 500 error - where to look?

I installed passenger with rails 1.9.2 in a rvm but I'm getting errors when trying to load anything. (We're sorry but something went wrong). I'm able to load a txt file out of the public directory. ...
1
vote
2answers
194 views

add passenger module to nginx without sources

I have a ubuntu 10.04 server and i've installed nginx from repositories with: apt-get install nginx i have all my sites running and i want to install redmine but i'm having problems with passenger. ...
3
votes
1answer
2k views

Nginx with Passenger behind HAProxy causes 503 errors

Over the last month I was forced to learn a lot of things about server configuration, integration, AWS, etc. I have never done these to this extent. I got everything up and running well for my app ...
0
votes
1answer
608 views

multiple PassengerRoot?

how do you define multiple passengeroot - my gemsets are different so something like this: PassengerRuby /Users/david/.rvm/wrappers/ruby-1.9.2-p290@rpgweb/ruby PassengerRuby ...
0
votes
1answer
121 views

Running a command before the Rails server starts under Apache

I'm currently running Apache with Passenger and a Rails 3.1 application. In my environment setup, I need to start sunspot - rake sunspot:solr:start RAILS_ENV=production - before I run the server. ...
0
votes
2answers
727 views

Phusion Passenger can't access mysql

I can connect to the db from terminal. The rails console connects fine also and I can return objects, mod them and do what ever from there. So database.yml must be ok But for some reason the ...
1
vote
0answers
321 views

nginx upload module + rails + pupload (jquery multiple upload plugin) multiple uplosding hangs in between

I have configured nginx with nginx upload module + passenger for rails 2.3.5 on Ubuntu OS. I am using pulpload (jquery multiple upload plugin) but it hangs after 2 or 3 files get uploaded, But when i ...
1
vote
1answer
2k views

Rails program is not being run on apache + passenger - only directory listing

I have successfully installed Phusion passenger + Apache 2 + Rails 3.1 program + git on a linux Debian 6. I ran passenger-install-apache2-module and followed the configuration instructions. I followed ...