[webroar] Missing the Rails 2.3.5 gem. Please `gem install -v=2.3.5 rails`, but I have Rails 2.3.5 installed

69 views
Skip to first unread message

Bram P

unread,
Apr 24, 2010, 7:32:35 AM4/24/10
to WebROaR - Ruby Application Server
Hi,

I've installed WebRoar and have it running just fine.
I have installed my first Ruby on Rails application, which uses Rails
2.3.5:
(config/environment.rb):
RAILS_GEM_VERSION = '2.3.5' unless defined? RAILS_GEM_VERSION

WebRoar refuses to start this application, because I apparently don't
have that gem installed, although:
$ gem list --local

*** LOCAL GEMS ***

actionmailer (2.3.5)
.....
rails (2.3.5)
rake (0.8.7)
...
sqlite3-ruby (1.2.5)
starling (0.10.1)
webroar (0.3.1)

Here's my application's log:

Sat Apr 24 13:28:23 2010-14056-Error:Some problem occurred while
loading application.
Sat Apr 24 13:28:23 2010-14058-Error:SystemExit-exit
/home/bram/apps/movies/current/config/boot.rb:66:in `exit'
/home/bram/apps/movies/current/config/boot.rb:66:in `load_rails_gem'
/home/bram/apps/movies/current/config/boot.rb:54:in `load_initializer'
/home/bram/apps/movies/current/config/boot.rb:38:in `run'
/home/bram/apps/movies/current/config/boot.rb:11:in `boot!'
/home/bram/apps/movies/current/config/boot.rb:110
/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
/home/bram/apps/movies/current/config/environment.rb:7
/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
/var/lib/gems/1.8/gems/webroar-0.3.1/src/ruby_lib/ruby_interface/../
rack/adapter/rails.rb:40:in `load_application'
/var/lib/gems/1.8/gems/webroar-0.3.1/src/ruby_lib/ruby_interface/../
rack/adapter/rails.rb:26:in `initialize'
/var/lib/gems/1.8/gems/webroar-0.3.1/src/ruby_lib/
webroar_app_loader.rb:43:in `new'
/var/lib/gems/1.8/gems/webroar-0.3.1/src/ruby_lib/
webroar_app_loader.rb:43
Sat Apr 24 13:28:23 2010-14058-Error:Some problem occurred while
loading application.
Sat Apr 24 13:28:23 2010-14056-Error:unable to load application.
Sat Apr 24 13:28:23 2010-14056-Info:Worker stopped and exiting
gracefully.Missing the Rails 2.3.5 gem. Please `gem install -v=2.3.5
rails`, update your RAILS_GEM_VERSION setting in config/environment.rb
for the Rails version you do have installed, or comment out
RAILS_GEM_VERSION to use the latest version installed.

Sat Apr 24 13:28:23 2010-14058-Error:unable to load application.
Sat Apr 24 13:28:23 2010-14058-Info:Worker stopped and exiting
gracefully.Missing the Rails 2.3.5 gem. Please `gem install -v=2.3.5
rails`, update your RAILS_GEM_VERSION setting in config/environment.rb
for the Rails version you do have installed, or comment out
RAILS_GEM_VERSION to use the latest version installed.


What am I missing?
Thanks


--
Subscription settings: http://groups.google.com/group/webroar/subscribe?hl=en

Dharmarth Shah

unread,
Apr 26, 2010, 1:43:40 AM4/26/10
to WebROaR - Ruby Application Server
Sorry about the trouble.

Could you please check the rack versions installed on your system? We
were able to reproduce this issue when both rack 1.0.1 and the
recently released rack 1.1.0 are present.

ActionPack 2.3.5 gem (used by WebROaR Admin Panel) has a dependency
declaration ("rack", "~> 1.0.0") and hence tries loading the older
version 1.0.1 while WebROaR has already loaded up the latest version
of rack in the worker process.

There is a ticket open for this issue in rails Lighthouse:
https://rails.lighthouseapp.com/projects/8994/tickets/3685

For now, could you please try uninstalling rack 1.1.0 and let us know
if using only rack 1.0.1 resolves the issue for you?

Thanks,
Dharmarth
Reply all
Reply to author
Forward
0 new messages