Questions tagged [phusion-passenger]

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 webservers and is written in C++.

More about Phusion Passenger: http://www.modrails.com/

482 questions
2
votes
1 answer

NGINX: How do I calculate an optimal no. of worker processes and worker connections?

Our web app is running on a Linode 2048 server at the moment (~ 2048 GB of RAM) The MYSQL database is on another linode of it's own so this server is really only handling NGINX and and the Rails application. The application itself uses about 185976…
bodacious
  • 123
  • 6
2
votes
3 answers

Phusion Passenger + Apache: LoadError -- No such file or directory

I run Apache2 with Phusion Passenger (installed from gem) with Ruby 1.8 on Debian 6. It gives me the following LoadError: libMagickCore.so.4: cannot open shared object file: No such file or directory -…
MrB
  • 21
  • 2
2
votes
1 answer

How to host 2 versions of Rails app on Ubuntu server

I am trying to host multiple versions (dev and staging) of a Rails app on the same server, but I am not currently able to access both via the browser. I am running with Apache2, Passenger, Rails 3, and Ubuntu 10.04 LTS. I would like to access the…
bporter
  • 121
  • 2
2
votes
1 answer

403 Forbidden

Here is my Nginx config: user pass users; worker_processes 1; events { worker_connections 1024; } http { passenger_root /usr/lib64/ruby/gems/1.8/gems/passenger-3.0.7; passenger_ruby /usr/bin/ruby; include mime.types; …
ceth
  • 526
  • 1
  • 7
  • 16
2
votes
5 answers

Why is my Rails app under Passenger occasionally grinding to a halt?

I have a Rails 2.3.2 app running on Apache with Passenger, and recently, the strangest thing has started happening. Every so often, the app will just stop processing requests entirely and they'll all back up until they time out. Restarting Apache…
Jim Puls
  • 182
  • 1
  • 11
2
votes
1 answer

Rails application proxy'ed by Apache not serving CSS, Javascript and Images

We deployed a Rails application on a backend server, served via Passenger. This application is served at port 9000, and is configured to use sub_uri. Originally the URL is http://ip.address:9000/, and now it is served at http://ip.address:9000/app1.…
2
votes
1 answer

Kill runaway Phusion Passenger child processes with monit?

Is there any way to monitor and kill Phusion child processes that are using too much memory or cpu with monit? There are many examples for Apache, but since Phusion runs in its own process, runaway Rails threads do not trigger the monit rules for…
Andrew
  • 21
  • 2
2
votes
1 answer

How can I point Passenger to the correct Gem files when using RVM Gemsets on Ubuntu? Bundler::GemNotFound

I have a Ubuntu server (10.04) with nginx, and Passenger. I've installed RVM on it, and I have a global gemset with Passenger 3.02 installed. My application is within another gemset which has rails, etc installed. When I configure nginx to serve the…
2
votes
0 answers

Passenger/Rails not releasing memory

I have an Ubuntu server running three separate Rails (2.3.8) applications with Passenger, REE and Apache. Recently we started experiencing problems with ruby processes eating up memory and consuming entire cores on our server. Here's what we're…
2
votes
1 answer

How do I monitor bandwidth used by rails apps?

I run a server that hosts several small rails apps, and I want to track how much bandwidth each is using. They are all running on Apache 2.2 and Passenger 3. I used mod_cband for static sites, but this doesn't seem to work with passenger. Is there a…
2
votes
3 answers

Nginx + Passenger, getting truncated responses

Getting truncated responses for big attachments in Redmine, served by Nginx + Passenger. Error log says like following: [ pid=11234 thr=3070954384 file=ext/nginx/HelperAgent.cpp:568 time=2010-11-23 16:05:29.414 ]: Couldn't forward the HTTP response…
Vlad Grichina
  • 193
  • 2
  • 6
2
votes
2 answers

What's the best strategy for log rotation with apache+passenger+ruby-on-rails+mysql?

(Hope I have the right SE site for this question, apologies if not.) I have a Ruby-on-Rails application that is deployed using Apache+mod_rails (passenger). It uses MySQL for the database backend. I'm using SyslogLogger to send the RoR log to…
2
votes
2 answers

Client certificate authentication sslv3 alert handshake failure when Location directive is set

I am trying to setup Client Certificate Authentication for a web service that is running on Rails. The service is running on apache2, passenger, and mod_ssl. I have been able to successfully generate the keys and setup the Client Certificate…
Josh Moore
  • 263
  • 3
  • 6
  • 14
2
votes
1 answer

Apache Passenger can't find gem

I'm running Ubuntu 10.04 and I've transferred over some sites built in Sinatra. I've set up Phusion passenger, but when I visit the sites I'm getting a Passenger LoadError claiming that passenger has 'no such file to load -- sinatra' yet when I run…
purpletonic
  • 197
  • 3
  • 12
2
votes
1 answer

OpenSSL support for Ruby: "Cipher is not a module (TypeError)"

The Problem Our systems admin needed to upgrade the packages on our CentOS 5.4 dev server to match the packages on our production server. The upgrade affected ruby and/or openssl. We run a Ruby on Rails issue tracking system called Redmine that is…
macek
  • 315
  • 2
  • 4
  • 10