passenger

Weird Ruby Enterprise Edition Problem

I just installed Ruby Enterprise Edition and Passenger on an Ubuntu Hardy 8.04 VPS. As far as I'm aware, the installation was successful. My Rails application is accessible and on the whole, works fine. However, the part of my application where users can post comments using AJAX doesn't work. My Comment model has a setter method for the ...

Passenger/Apache: Can't set expire headers for versioned resources (rewrite rule not recognized)

Hi all, I'm trying to set the expire headers for Rails' auto-versioned resources, like whatever.css?1234567890 . (I don't want to set the expire headers for unversioned resources.) The only method I could find online involved two steps: 1) rewrite all urls that end in 10 digits to load from /public/add_expires_header instead of from /...

How to uninstall Passenger (mod_rails) from nginx?

I've a running nginx and Ubuntu 8.09 site running a rails app -- but we are not making use of Peassenger anymore and it seems to take up a lot of memory. I google around and there's tons of info on how to install Passenger, but I didn't find any on uninstalling. ...

why is my unicode not working under passsenger??

This question contains java and ruby. I have a java program that I make a call to from ruby. This code works under merb perfectly without any modifications. This code will work under irb perfectly by setting $KCODE="UTF8". For the life of me I can not get it to work under phusion passenger -- this is a problem since our production ser...

Apache minimum version for Phusion Passenger

Our current Apache installations are running Apache 2.0. Now we'd like to add some Rails applications and plan to run them on Apache with Phusion Passenger. I've gotten conflicting reports about whether we need to upgrade Apache to 2.2 in order to use Passenger (a consultant I highly respect recommended that; someone from Phusion says ...

Phusion Passenger with Ruby 1.8 and 1.9 ?

Hi, How would I go about running two separate Rails applications using Phusion Passenger with one using Ruby 1.8.x and the other using Ruby 1.9.x ? I'm running Redmine which isn't Ruby 1.9.x compatible, and the other application is a home grown app. I'm using Apache 2.2.x with Passenger 2.2.4. Is this even possible ? ...

Mysterious 500 Error with Basic Rails App on Slicehost

I am getting a mysterious 500 error when i try to deploy my first rails app on slicehost. I have followed the Ubuntu Intrepid articles very closely and it seems to be all setup accordingly. I am trying to run rails on Apache with Passenger. All I am trying to run here is a basic rails app with one scaffold (3 fields). The apache err...

Deploying rails application to root with passenger error

Hi guys, I am trying to deploy my rails application to virtual host's root with passenger but I had some problems. Error log: [Sun Aug 23 10:09:06 2009] [error] [client 91.187.5.190] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. ...

Rails 2.3.3 - Setting to production mode

How do I set the application to production mode? Okay, this must be a no-brainer but I'm about to deploy my first Rails app and I've got everything setup properly: Ubuntu Hardy, Passenger, MySQL. However, it's still running in development mode. I've only been able to find documentation for older versions of Rails and want to make sure t...

I cannot use passenger for my ruby on rails application on dreamhost.

I want to do some programming in ruby on rails on my Dreamhost server, so I connected via ssh and created a small application. Then I started the server and it worked. The problem is, that after some time the server kills itself. So I tried to activate Passenger in the user panel (which also has the advantage, that I don't have to connec...

Phusion Passenger, mod_rails rails 2.3 problem

"The application has exited during startup (i.e. during the evaluation of config/environment.rb). The error message may have been written to the web server's log file. Please check the web server's log file (i.e. not the (Rails) application's log file) to find out why the application exited." I'm getting the above error message when I ...

Passenger / REE can't find rails, it's in the $PATH, what gives?

I've got a fresh install of Ruby EE (1.8.6-20090610) and Passenger (2.2.5) on Debian Lenny. REE is installed in /opt/ruby-enterprise and it is added to the $PATH of all users through /etc/environment, and PassengerDefaultUser is set to root. The problem is when loading a rails app, the Passenger error says the rails 2.3.3 gem is missin...

Postgresql causing "no space on device" error but disks/partitions are not full

I'm getting the following error while running my Rails website and I believe it is causing it to go down. I'm using Passenger and my site is heavily trafficked. When I try to bring it back online, Apache spawns a large number of children and the load on the machine spikes to about 50, and the site becomes extremely slow. I have no shor...

mod_rails make: command not found

I'm setting up mod_rails on a Debian server but somehow something got screwed up (it wasn't me :P ). gem install passenger Building native extensions. This could take a while... ERROR: Error installing passenger: ERROR: Failed to build gem native extension. /usr/bin/ruby1.8 extconf.rb creating Makefile make sh: make: command not fo...

Vendored gems not getting picked up by passenger

In my app, I've vendored the json-1.1.6 gem and in environment.rb file, its mentioned config.gem "json", :version => '1.1.6' When I try to access via browser, the following error is shown by passenger. Error message: can't activate json (= 1.1.7, runtime) for [], already activated json-1.1.6 for ["dancroak-twitter-search-0.5.5"] An...

Rails not accepting JSON in production.

I'm attempting to post a json object to my server, however for whatever reason it doesn't show up in production. In development params.inspect yields ({"format"=>"json", "body"=>"Wtf", "api_key"=>"xxx", "action"=>"comment", "item_id"=>"496", "controller"=>"api"}) And in production I get ({"format"=>"json", "action"=>"comment", "con...

Hosting Help- Custom Gems on DreamHost

I am attempting to deploy a RoR app using Passenger onto my DreamHost hosting account, but am having trouble getting it up and running. My application requires two custom gems 'amazon-ecs' and 'nokogiri.' As per the instructions on the DreamHost wiki (http://wiki.dreamhost.com/Freezing%5FGems) I froze the gems to vendors by coding them ...

Between Passenger and Rails, url-encoded underscores in urls aren't being handled properly

I have a Rails app deployed to my server under the context scala_tour. When going to the URL, everything works great. However, if the url is encoded to scala%5ftour (which is what SO does, incidentally), I get an error from Rails and/or Passenger. Passenger seems to recognize the URL and hands it off to my Rails app, but the Rails ap...

Should I user Apache or Nginx & Passenger or Mongrel for my Rails application

Hello, I have a Ruby on Rails application that will be a CMS in way which means it's mostly DB intensive. I expect it to have decent amount of traffic so before designing I'm choosing what servers to use. Most important for me is performance. I heard good things about Nginx and many developers in the Rails community recommends it my on...

What is meant by the Passenger-enabled Nginx error 'rack_env directive is duplicate'?

When we try to start Nginx, we see this error that prevents Nginx from starting. The error exactly is: "rack_env" directive is duplicate We have set rails_env and rack_env... does this conflict in some way? Any ideas what is meant by it? We can't find any meaningful documentation in the Nginx Passenger User guide nor in the source nor...