Upgrading to Foreman 1.6 rails/all issue

I am upgrading my foreman server from 1.5 to 1.6 and when I run the
foreman-rake db:migrate command I get

[root@foreman foreman]# foreman-rake db:migrate
rake aborted!
cannot load such file – rails/all

(See full trace by running task with --trace)

I found this article <http://www.redmine.org/boards/2/topics/38138>
describing a similar issue with Redmine but I tried the fix and am still
getting the error.

Running RHEL 6.5 and below are my ruby / gem configs. Anyone have similar
issues?

[root@foreman foreman]# gem env
RubyGems Environment:

  • RUBYGEMS VERSION: 1.8.24
  • RUBY VERSION: 1.9.3 (2013-11-22 patchlevel 484) [x86_64-linux]
  • INSTALLATION DIRECTORY: /usr/local/rvm/gems/ruby-1.9.3-p547
  • RUBY EXECUTABLE: /opt/rh/ruby193/root/usr/bin/ruby
  • EXECUTABLE DIRECTORY: /usr/local/rvm/gems/ruby-1.9.3-p547/bin
  • RUBYGEMS PLATFORMS:
    • ruby
    • x86_64-linux
  • GEM PATHS:
    • /usr/local/rvm/gems/ruby-1.9.3-p547
    • /usr/local/rvm/gems/ruby-1.9.3-p547@global
  • GEM CONFIGURATION:
    • :update_sources => true
    • :verbose => true
    • :benchmark => false
    • :backtrace => false
    • :bulk_threshold => 1000
  • REMOTE SOURCES:

*** LOCAL GEMS ***

actionmailer (4.1.6)
actionpack (4.1.6)
actionview (4.1.6)
activemodel (4.1.6)
activerecord (4.1.6)
activesupport (4.1.6)
apipie-rails (0.2.6)
arel (5.0.1.20140414130214)
bigdecimal (1.1.0)
builder (3.2.2)
bundler (1.6.2)
bundler-unload (1.0.2)
erubis (2.7.0)
executable-hooks (1.3.1)
gem-wrappers (1.2.4)
hike (1.2.3)
i18n (0.7.0.beta1)
io-console (0.3)
json (1.8.1)
mail (2.6.1)
mime-types (2.3)
minitest (5.4.1, 2.5.1)
multi_json (1.10.1)
rack (1.5.2)
rack-test (0.6.2)
rails (4.1.6)
railties (4.1.6)
rake (0.9.2.2)
rdoc (3.9.5)
rubygems-bundler (1.4.3)
rvm (1.11.3.9)
sprockets (2.12.2)
sprockets-rails (2.1.4)
thor (0.19.1)
thread_safe (0.3.4)
tilt (1.4.1)
tzinfo (1.2.2)

[root@foreman foreman]# ruby --version
ruby 1.9.3p484 (2013-11-22 revision 43786) [x86_64-linux]

Hello,

I don't think we support Rails 4+.

Follow our "From sources" installation chapter carefully.

LZ

··· On Wed, Sep 17, 2014 at 12:47:02PM -0700, Patrick Devine wrote: > I am upgrading my foreman server from 1.5 to 1.6 and when I run the > foreman-rake db:migrate command I get > > [root@foreman foreman]# foreman-rake db:migrate > rake aborted! > cannot load such file -- rails/all > > (See full trace by running task with --trace) > > I found this article > describing a similar issue with Redmine but I tried the fix and am still > getting the error. > > Running RHEL 6.5 and below are my ruby / gem configs. Anyone have similar > issues? > > [root@foreman foreman]# gem env > RubyGems Environment: > - RUBYGEMS VERSION: 1.8.24 > - RUBY VERSION: 1.9.3 (2013-11-22 patchlevel 484) [x86_64-linux] > - INSTALLATION DIRECTORY: /usr/local/rvm/gems/ruby-1.9.3-p547 > - RUBY EXECUTABLE: /opt/rh/ruby193/root/usr/bin/ruby > - EXECUTABLE DIRECTORY: /usr/local/rvm/gems/ruby-1.9.3-p547/bin > - RUBYGEMS PLATFORMS: > - ruby > - x86_64-linux > - GEM PATHS: > - /usr/local/rvm/gems/ruby-1.9.3-p547 > - /usr/local/rvm/gems/ruby-1.9.3-p547@global > - GEM CONFIGURATION: > - :update_sources => true > - :verbose => true > - :benchmark => false > - :backtrace => false > - :bulk_threshold => 1000 > - REMOTE SOURCES: > - http://rubygems.org/ > [root@foreman foreman]# gem list --local > > *** LOCAL GEMS *** > > actionmailer (4.1.6) > actionpack (4.1.6) > actionview (4.1.6) > activemodel (4.1.6) > activerecord (4.1.6) > activesupport (4.1.6) > apipie-rails (0.2.6) > arel (5.0.1.20140414130214) > bigdecimal (1.1.0) > builder (3.2.2) > bundler (1.6.2) > bundler-unload (1.0.2) > erubis (2.7.0) > executable-hooks (1.3.1) > gem-wrappers (1.2.4) > hike (1.2.3) > i18n (0.7.0.beta1) > io-console (0.3) > json (1.8.1) > mail (2.6.1) > mime-types (2.3) > minitest (5.4.1, 2.5.1) > multi_json (1.10.1) > rack (1.5.2) > rack-test (0.6.2) > rails (4.1.6) > railties (4.1.6) > rake (0.9.2.2) > rdoc (3.9.5) > rubygems-bundler (1.4.3) > rvm (1.11.3.9) > sprockets (2.12.2) > sprockets-rails (2.1.4) > thor (0.19.1) > thread_safe (0.3.4) > tilt (1.4.1) > tzinfo (1.2.2) > > [root@foreman foreman]# ruby --version > ruby 1.9.3p484 (2013-11-22 revision 43786) [x86_64-linux] > > > -- > You received this message because you are subscribed to the Google Groups "Foreman users" group. > To unsubscribe from this group and stop receiving emails from it, send an email to foreman-users+unsubscribe@googlegroups.com. > To post to this group, send email to foreman-users@googlegroups.com. > Visit this group at http://groups.google.com/group/foreman-users. > For more options, visit https://groups.google.com/d/optout.


Later,
Lukas #lzap Zapletal

LZ,

I tried downgrading the rails gem to 3.X and am still getting the same
issue.

[root@foreman foreman]# foreman-rake db:migrate --trace
rake aborted!
cannot load such file – rails/all
/usr/share/foreman/config/application.rb:5:in require&#39; /usr/share/foreman/config/application.rb:5:in<top (required)>'
/usr/share/foreman/Rakefile:1:in require&#39; /usr/share/foreman/Rakefile:1:in<top (required)>'
/opt/rh/ruby193/root/usr/share/ruby/rake/rake_module.rb:25:in load&#39; /opt/rh/ruby193/root/usr/share/ruby/rake/rake_module.rb:25:inload_rakefile'
/opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:501:in
raw_load_rakefile&#39; /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:82:inblock in
load_rakefile'
/opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:133:in
standard_exception_handling&#39; /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:81:inload_rakefile'
/opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:65:in block in run&#39; /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:133:instandard_exception_handling'
/opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:63:in run&#39; /opt/rh/ruby193/root/usr/bin/rake:32:in<main>'
[root@foreman foreman]# gem list --local

*** LOCAL GEMS ***

actionmailer (3.2.19, 3.2.18)
actionpack (3.2.19, 3.2.18)
activemodel (3.2.19, 3.2.18)
activerecord (3.2.19, 3.2.18)
activeresource (3.2.19, 3.2.18)
activesupport (3.2.19, 3.2.18)
apipie-rails (0.2.6)
arel (5.0.1.20140414130214, 3.0.3)
bigdecimal (1.1.0)
builder (3.2.2, 3.0.4)
bundler (1.6.2)
bundler-unload (1.0.2)
erubis (2.7.0)
executable-hooks (1.3.1)
gem-wrappers (1.2.4)
hike (1.2.3)
i18n (0.7.0.beta1)
io-console (0.3)
journey (1.0.4)
json (1.8.1)
mail (2.6.1, 2.5.4)
mime-types (2.3, 1.25.1)
minitest (5.4.1, 2.5.1)
multi_json (1.10.1)
polyglot (0.3.5)
rack (1.5.2, 1.4.5)
rack-cache (1.2)
rack-ssl (1.3.4)
rack-test (0.6.2)
rails (3.2.19, 3.2.18)
railties (3.2.19, 3.2.18)
rake (0.9.2.2)
rdoc (3.9.5)
rubygems-bundler (1.4.3)
rvm (1.11.3.9)
sprockets (2.12.2, 2.2.2)
sprockets-rails (2.1.4)
thor (0.19.1)
thread_safe (0.3.4)
tilt (1.4.1)
treetop (1.4.15)
tzinfo (1.2.2, 0.3.41)

··· On Thursday, September 18, 2014 4:42:16 AM UTC-4, Lukas Zapletal wrote: > > Hello, > > I don't think we support Rails 4+. > > Follow our "From sources" installation chapter carefully. > > LZ > > On Wed, Sep 17, 2014 at 12:47:02PM -0700, Patrick Devine wrote: > > I am upgrading my foreman server from 1.5 to 1.6 and when I run the > > foreman-rake db:migrate command I get > > > > [root@foreman foreman]# foreman-rake db:migrate > > rake aborted! > > cannot load such file -- rails/all > > > > (See full trace by running task with --trace) > > > > I found this article > > describing a similar issue with Redmine but I tried the fix and am still > > getting the error. > > > > Running RHEL 6.5 and below are my ruby / gem configs. Anyone have > similar > > issues? > > > > [root@foreman foreman]# gem env > > RubyGems Environment: > > - RUBYGEMS VERSION: 1.8.24 > > - RUBY VERSION: 1.9.3 (2013-11-22 patchlevel 484) [x86_64-linux] > > - INSTALLATION DIRECTORY: /usr/local/rvm/gems/ruby-1.9.3-p547 > > - RUBY EXECUTABLE: /opt/rh/ruby193/root/usr/bin/ruby > > - EXECUTABLE DIRECTORY: /usr/local/rvm/gems/ruby-1.9.3-p547/bin > > - RUBYGEMS PLATFORMS: > > - ruby > > - x86_64-linux > > - GEM PATHS: > > - /usr/local/rvm/gems/ruby-1.9.3-p547 > > - /usr/local/rvm/gems/ruby-1.9.3-p547@global > > - GEM CONFIGURATION: > > - :update_sources => true > > - :verbose => true > > - :benchmark => false > > - :backtrace => false > > - :bulk_threshold => 1000 > > - REMOTE SOURCES: > > - http://rubygems.org/ > > [root@foreman foreman]# gem list --local > > > > *** LOCAL GEMS *** > > > > actionmailer (4.1.6) > > actionpack (4.1.6) > > actionview (4.1.6) > > activemodel (4.1.6) > > activerecord (4.1.6) > > activesupport (4.1.6) > > apipie-rails (0.2.6) > > arel (5.0.1.20140414130214) > > bigdecimal (1.1.0) > > builder (3.2.2) > > bundler (1.6.2) > > bundler-unload (1.0.2) > > erubis (2.7.0) > > executable-hooks (1.3.1) > > gem-wrappers (1.2.4) > > hike (1.2.3) > > i18n (0.7.0.beta1) > > io-console (0.3) > > json (1.8.1) > > mail (2.6.1) > > mime-types (2.3) > > minitest (5.4.1, 2.5.1) > > multi_json (1.10.1) > > rack (1.5.2) > > rack-test (0.6.2) > > rails (4.1.6) > > railties (4.1.6) > > rake (0.9.2.2) > > rdoc (3.9.5) > > rubygems-bundler (1.4.3) > > rvm (1.11.3.9) > > sprockets (2.12.2) > > sprockets-rails (2.1.4) > > thor (0.19.1) > > thread_safe (0.3.4) > > tilt (1.4.1) > > tzinfo (1.2.2) > > > > [root@foreman foreman]# ruby --version > > ruby 1.9.3p484 (2013-11-22 revision 43786) [x86_64-linux] > > > > > > -- > > You received this message because you are subscribed to the Google > Groups "Foreman users" group. > > To unsubscribe from this group and stop receiving emails from it, send > an email to foreman-user...@googlegroups.com . > > To post to this group, send email to forema...@googlegroups.com > . > > Visit this group at http://groups.google.com/group/foreman-users. > > For more options, visit https://groups.google.com/d/optout. > > -- > Later, > Lukas #lzap Zapletal >