WebFaction
Community site: login faq

Dear WebFaction community,

I have followed the instructions at http://docs.webfaction.com/software/rails.html to install a Rails 3.1.0 app. I can run "RAILS_ENV=production bundle exec rails console" and access its models, etc. But it gives an error when run in the browser. You can see the error at http://lbgaleria.webfactional.com/

Several versions of rack gem are installed at /home/lbgaleria/webapps/website/gems/gems/ : 1.2.1, 1.2.5, 1.3.2, 1.3.6, 1.4.1.

I have googled the problem, and all I found were references to problems with GEM_HOME variable and permissions. But, in the instructions, there are only references to setting GEM_HOME to install the app, not running it.

Thank you, Andrei

asked 01 Nov '12, 16:21

Andrei%20Thomaz's gravatar image

Andrei Thomaz
162
accept rate: 100%


I spent some time trying to find a reason for this failure and was unable to. You may want to check this article on StackOverflow which basically explains it is a version conflict. You will need to verify the versions of all the libraries you are using are compatible with each other.

permanent link

answered 01 Nov '12, 22:55

johns's gravatar image

johns ♦♦
5.0k29
accept rate: 22%

Dear John,

The app Gemfile is very simple:

gem 'rails', '3.0.9' gem 'carrierwave' gem 'rmagick' gem 'mysql2', '0.2.7' gem 'globalize3'

I can't find any conflict among the gems. I've also tried to install the app with other versions of Nginx and Rails, but nothing worked until now.

Thank you, Andrei

(05 Nov '12, 16:34) Andrei Thomaz Andrei%20Thomaz's gravatar image

I've found the problem. The application is being migrated from another server and it had a file called setup_load_paths.rb. Deleting this file, the app worked fine in Webfaction.

Thank you, Andrei

(05 Nov '12, 19:07) Andrei Thomaz Andrei%20Thomaz's gravatar image

Great; thanks for sharing!

(05 Nov '12, 20:13) ryans ♦♦ ryans's gravatar image
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×105
×28
×5

question asked: 01 Nov '12, 16:21

question was seen: 1,459 times

last updated: 05 Nov '12, 20:13

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2017 PARAGON INTERNET GROUP LIMITED
WEBFACTION IS A SERVICE OF PARAGON INTERNET GROUP LIMITED
REGISTERED IN ENGLAND AND WALES 7573953 - VAT REGISTRATION NUMBER 182147021
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM