WebFaction
Community site: login faq

Hi, I've followed the script at http://community.webfaction.com/questions/6846/ruby-192 but I'm getting an error when accessing the rails site, I guess there something wrong with the rack gem but I don't understand what I'm missing.

I've tried to install it but the result is the same...

/home/stefanofalda/.rvm/gems/ruby-1.9.3-p0@rails310/gems/passenger-3.0.9/lib/phusion_passenger/platform_info/operating_system.rb:33: Use RbConfig instead of obsolete and deprecated Config.
*** Exception LoadError in Class (cannot load such file -- rack) (process 5514, thread #<Thread:0x85ce088>):
    from /home/stefanofalda/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /home/stefanofalda/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /home/stefanofalda/.rvm/gems/ruby-1.9.3-p0@rails310/gems/passenger-3.0.9/lib/phusion_passenger/rack/application_spawner.rb:219:in `load_rack_app'
    from /home/stefanofalda/.rvm/gems/ruby-1.9.3-p0@rails310/gems/passenger-3.0.9/lib/phusion_passenger/rack/application_spawner.rb:74:in `block (2 levels) in spawn_application'
    from /home/stefanofalda/.rvm/gems/ruby-1.9.3-p0@rails310/gems/passenger-3.0.9/lib/phusion_passenger/utils.rb:572:in `report_app_init_status'
    from /home/stefanofalda/.rvm/gems/ruby-1.9.3-p0@rails310/gems/passenger-3.0.9/lib/phusion_passenger/rack/application_spawner.rb:72:in `block in spawn_application'
    from /home/stefanofalda/.rvm/gems/ruby-1.9.3-p0@rails310/gems/passenger-3.0.9/lib/phusion_passenger/utils.rb:479:in `safe_fork'
    from /home/stefanofalda/.rvm/gems/ruby-1.9.3-p0@rails310/gems/passenger-3.0.9/lib/phusion_passenger/rack/application_spawner.rb:63:in `spawn_application'
    from /home/stefanofalda/.rvm/gems/ruby-1.9.3-p0@rails310/gems/passenger-3.0.9/lib/phusion_passenger/spawn_manager.rb:264:in `spawn_rack_application'
    from /home/stefanofalda/.rvm/gems/ruby-1.9.3-p0@rails310/gems/passenger-3.0.9/lib/phusion_passenger/spawn_manager.rb:137:in `spawn_application'
    from /home/stefanofalda/.rvm/gems/ruby-1.9.3-p0@rails310/gems/passenger-3.0.9/lib/phusion_passenger/spawn_manager.rb:275:in `handle_spawn_application'
    from /home/stefanofalda/.rvm/gems/ruby-1.9.3-p0@rails310/gems/passenger-3.0.9/lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
    from /home/stefanofalda/.rvm/gems/ruby-1.9.3-p0@rails310/gems/passenger-3.0.9/lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
    from /home/stefanofalda/.rvm/gems/ruby-1.9.3-p0@rails310/gems/passenger-3.0.9/helper-scripts/passenger-spawn-server:99:in `<main>'

I've read that maybe I've to config some path variables but I've not understood how...

Somebody can help?

Thank you

asked 29 Jan '12, 17:46

talpaz
111
accept rate: 0%

I have just tested the procedure from http://community.webfaction.com/questions/6846/ruby-192 under a test account on your server. All of the individual pieces are somewhat interlocked, so it's not trivial to replace (for example) ruby 1.9.2 with ruby 1.9.3. Do you still get this error if you follow the guide exactly?

(29 Jan '12, 19:29) ryans ♦♦

You're right, I started again from scratch, with ruby 1.9.2 and now everything 'seems' ok. Thank you Stefano

(30 Jan '12, 06:19) talpaz

You need to run

bundle

in the rails app directory. I just did this with ruby 1.9.3 and nginx 1.1.14 and it worked just fine. To me the guide looked too verbose, so I just installed the gems without any additional version info. The second batch of gems is handled well by

gem install rails
permanent link

answered 01 Feb '12, 15:16

Jan Limpens
1
accept rate: 0%

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:

×108
×25
×9
×5

question asked: 29 Jan '12, 17:46

question was seen: 4,725 times

last updated: 01 Feb '12, 15:16

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM