Foreman broken after upgrading to Cent 6.4

>
> I recently upgraded my test system from Cent 6.3 --> Cent 6.4.
>
> I am running:
>
> Puppet - v3.1
> Foreman - v1.1
> Ruby - v1.8.7.352
>
> Gem list:
>

You have rails 3.2 with foreman 1.1, rails 3.2 was only added at 1.2…

Ohad
> *** LOCAL GEMS ***
>
> abstract (1.0.0)
> actionmailer (3.2.12, 3.0.20, 3.0.17, 3.0.10)
> actionpack (3.2.12, 3.0.20, 3.0.17, 3.0.10)
> activemodel (3.2.12, 3.0.20, 3.0.17, 3.0.11, 3.0.10)
> activerecord (3.2.12, 3.0.20, 3.0.17, 3.0.11, 3.0.10)
> activeresource (3.2.12, 3.0.20, 3.0.17, 3.0.10)
> activesupport (3.2.12, 3.0.20, 3.0.17, 3.0.11, 3.0.10)
> acts_as_audited (2.0.0)
> ancestry (1.3.0)
> apipie-rails (0.0.13)
> arel (3.0.2, 2.0.10)
> audited (3.0.0.rc1)
> audited-activerecord (3.0.0.rc1)
> awesome_print (1.0.2)
> builder (3.0.4, 2.1.2)
> bundler (1.0.15)
> daemon_controller (1.1.1)
> erubis (2.7.0, 2.6.6)
> excon (0.14.0)
> fastthread (1.0.7)
> fog (1.9.0)
> foremancli (1.0)
> formatador (0.2.1)
> highline (1.4.0)
> hike (1.2.1)
> hirb (0.6.2)
> hirb-unicode (0.0.5)
> i18n (0.6.1, 0.5.0)
> journey (1.0.4)
> jquery-rails (1.0.19)
> json (1.6.8)
> mail (2.4.4, 2.3.3, 2.2.19)
> mime-types (1.18)
> multi_json (1.2.0)
> mysql (2.8.1)
> mysql2 (0.2.18)
> net-ldap (0.3.1)
> net-scp (1.0.4)
> net-ssh (2.3.0)
> nokogiri (1.5.2)
> oauth (0.4.7)
> passenger (3.0.19)
> polyglot (0.3.3)
> rabl (0.7.5)
> rack (1.4.5, 1.3.5, 1.2.5, 1.1.0)
> rack-cache (1.2)
> rack-mount (0.6.14)
> rack-ssl (1.3.3)
> rack-test (0.6.2, 0.5.7)
> rails (3.2.12, 3.0.20, 3.0.17, 3.0.10)
> railties (3.2.12, 3.0.20, 3.0.17, 3.0.10)
> rake (0.9.2.2)
> rbovirt (0.0.15)
> rbvmomi (1.5.1)
> rdoc (3.12)
> rest-client (1.6.7)
> ruby-hmac (0.4.0)
> ruby2ruby (2.0.1)
> ruby_parser (3.0.1)
> safemode (1.2.0)
> scoped_search (2.4.0)
> sexp_processor (4.1.2)
> sinatra (1.0)
> sprockets (2.2.2)
> sqlite3 (1.3.5)
> stomp (1.2.2)
> thor (0.14.6)
> tilt (1.3.3)
> treetop (1.4.10)
> trollop (1.16.2)
> tzinfo (0.3.32)
> unicode-display_width (0.1.1)
> uuidtools (2.1.1)
> will_paginate (3.0.3)
> wirb (0.4.2)
>
> The error I am receiving:
>
> Ruby (Rack) application could not be started
> These are the possible causes:
> There may be a syntax error in the application's code. Please check for
such errors and fix them.
> A required library may not installed. Please install all libraries that
this application requires.
> The application may not be properly configured. Please check whether all
configuration files are written correctly, fix any incorrect
configurations, and restart this application.
> A service that the application relies on (such as the database server or
the Ferret search engine server) may not have been started. Please start
that service.
> Further information about the error may have been written to the
application's log file. Please check it in order to analyse the problem.
> Error message:
> undefined method config' for #<Rails::Paths::Root:0x7ff727d4e6c8> > Exception class: > NoMethodError > Application root: > /usr/share/foreman > Backtrace: > # > File > Line > Location > 0 > /usr/share/foreman/config/application.rb > 22 > > 1 > /usr/share/foreman/config/environment.rb > 2 > inrequire'
> 2
> /usr/share/foreman/config/environment.rb
> 2
>
> 3
> config.ru
> 3
> in require' > 4 > config.ru > 3 > > 5 > /usr/lib/ruby/gems/1.8/gems/rack-1.4.5/lib/rack/builder.rb > 51 > ininstance_eval'
> 6
> /usr/lib/ruby/gems/1.8/gems/rack-1.4.5/lib/rack/builder.rb
> 51
> in initialize' > 7 > config.ru > 1 > innew'
> 8
> config.ru
> 1
>
> It was perfectly find before the update, please help :slight_smile:
>
> Thanks!
>
> –
> 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.

··· On May 6, 2013 11:30 PM, "Larry Long" wrote: > To post to this group, send email to foreman-users@googlegroups.com. > Visit this group at http://groups.google.com/group/foreman-users?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > >

Thank you Ohad. I removed that version of Rails. Do I need to reinstall
foreman from scratch as well then?

··· On Monday, May 6, 2013 4:33:09 PM UTC-4, ohad wrote: > > > On May 6, 2013 11:30 PM, "Larry Long" <djsly...@gmail.com > > wrote: > > > > I recently upgraded my test system from Cent 6.3 --> Cent 6.4. > > > > I am running: > > > > Puppet - v3.1 > > Foreman - v1.1 > > Ruby - v1.8.7.352 > > > > Gem list: > > > > You have rails 3.2 with foreman 1.1, rails 3.2 was only added at 1.2... > > Ohad > > *** LOCAL GEMS *** > > > > abstract (1.0.0) > > actionmailer (3.2.12, 3.0.20, 3.0.17, 3.0.10) > > actionpack (3.2.12, 3.0.20, 3.0.17, 3.0.10) > > activemodel (3.2.12, 3.0.20, 3.0.17, 3.0.11, 3.0.10) > > activerecord (3.2.12, 3.0.20, 3.0.17, 3.0.11, 3.0.10) > > activeresource (3.2.12, 3.0.20, 3.0.17, 3.0.10) > > activesupport (3.2.12, 3.0.20, 3.0.17, 3.0.11, 3.0.10) > > acts_as_audited (2.0.0) > > ancestry (1.3.0) > > apipie-rails (0.0.13) > > arel (3.0.2, 2.0.10) > > audited (3.0.0.rc1) > > audited-activerecord (3.0.0.rc1) > > awesome_print (1.0.2) > > builder (3.0.4, 2.1.2) > > bundler (1.0.15) > > daemon_controller (1.1.1) > > erubis (2.7.0, 2.6.6) > > excon (0.14.0) > > fastthread (1.0.7) > > fog (1.9.0) > > foremancli (1.0) > > formatador (0.2.1) > > highline (1.4.0) > > hike (1.2.1) > > hirb (0.6.2) > > hirb-unicode (0.0.5) > > i18n (0.6.1, 0.5.0) > > journey (1.0.4) > > jquery-rails (1.0.19) > > json (1.6.8) > > mail (2.4.4, 2.3.3, 2.2.19) > > mime-types (1.18) > > multi_json (1.2.0) > > mysql (2.8.1) > > mysql2 (0.2.18) > > net-ldap (0.3.1) > > net-scp (1.0.4) > > net-ssh (2.3.0) > > nokogiri (1.5.2) > > oauth (0.4.7) > > passenger (3.0.19) > > polyglot (0.3.3) > > rabl (0.7.5) > > rack (1.4.5, 1.3.5, 1.2.5, 1.1.0) > > rack-cache (1.2) > > rack-mount (0.6.14) > > rack-ssl (1.3.3) > > rack-test (0.6.2, 0.5.7) > > rails (3.2.12, 3.0.20, 3.0.17, 3.0.10) > > railties (3.2.12, 3.0.20, 3.0.17, 3.0.10) > > rake (0.9.2.2) > > rbovirt (0.0.15) > > rbvmomi (1.5.1) > > rdoc (3.12) > > rest-client (1.6.7) > > ruby-hmac (0.4.0) > > ruby2ruby (2.0.1) > > ruby_parser (3.0.1) > > safemode (1.2.0) > > scoped_search (2.4.0) > > sexp_processor (4.1.2) > > sinatra (1.0) > > sprockets (2.2.2) > > sqlite3 (1.3.5) > > stomp (1.2.2) > > thor (0.14.6) > > tilt (1.3.3) > > treetop (1.4.10) > > trollop (1.16.2) > > tzinfo (0.3.32) > > unicode-display_width (0.1.1) > > uuidtools (2.1.1) > > will_paginate (3.0.3) > > wirb (0.4.2) > > > > The error I am receiving: > > > > Ruby (Rack) application could not be started > > These are the possible causes: > > There may be a syntax error in the application's code. Please check for > such errors and fix them. > > A required library may not installed. Please install all libraries that > this application requires. > > The application may not be properly configured. Please check whether all > configuration files are written correctly, fix any incorrect > configurations, and restart this application. > > A service that the application relies on (such as the database server or > the Ferret search engine server) may not have been started. Please start > that service. > > Further information about the error may have been written to the > application's log file. Please check it in order to analyse the problem. > > Error message: > > undefined method `config' for # > > Exception class: > > NoMethodError > > Application root: > > /usr/share/foreman > > Backtrace: > > # > > File > > Line > > Location > > 0 > > /usr/share/foreman/config/application.rb > > 22 > > > > 1 > > /usr/share/foreman/config/environment.rb > > 2 > > in `require' > > 2 > > /usr/share/foreman/config/environment.rb > > 2 > > > > 3 > > config.ru > > 3 > > in `require' > > 4 > > config.ru > > 3 > > > > 5 > > /usr/lib/ruby/gems/1.8/gems/rack-1.4.5/lib/rack/builder.rb > > 51 > > in `instance_eval' > > 6 > > /usr/lib/ruby/gems/1.8/gems/rack-1.4.5/lib/rack/builder.rb > > 51 > > in `initialize' > > 7 > > config.ru > > 1 > > in `new' > > 8 > > config.ru > > 1 > > > > It was perfectly find before the update, please help :) > > > > Thanks! > > > > -- > > 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?hl=en. > > For more options, visit https://groups.google.com/groups/opt_out. > > > > >

I reinstalled Foreman again after removing that gem and now I get:

Could not find rails-3.2.12 in any of the sources (Bundler::GemNotFound)

··· On Monday, May 6, 2013 4:51:36 PM UTC-4, Larry Long wrote: > > Thank you Ohad. I removed that version of Rails. Do I need to reinstall > foreman from scratch as well then? > > > On Monday, May 6, 2013 4:33:09 PM UTC-4, ohad wrote: >> >> >> On May 6, 2013 11:30 PM, "Larry Long" wrote: >> > >> > I recently upgraded my test system from Cent 6.3 --> Cent 6.4. >> > >> > I am running: >> > >> > Puppet - v3.1 >> > Foreman - v1.1 >> > Ruby - v1.8.7.352 >> > >> > Gem list: >> > >> >> You have rails 3.2 with foreman 1.1, rails 3.2 was only added at 1.2... >> >> Ohad >> > *** LOCAL GEMS *** >> > >> > abstract (1.0.0) >> > actionmailer (3.2.12, 3.0.20, 3.0.17, 3.0.10) >> > actionpack (3.2.12, 3.0.20, 3.0.17, 3.0.10) >> > activemodel (3.2.12, 3.0.20, 3.0.17, 3.0.11, 3.0.10) >> > activerecord (3.2.12, 3.0.20, 3.0.17, 3.0.11, 3.0.10) >> > activeresource (3.2.12, 3.0.20, 3.0.17, 3.0.10) >> > activesupport (3.2.12, 3.0.20, 3.0.17, 3.0.11, 3.0.10) >> > acts_as_audited (2.0.0) >> > ancestry (1.3.0) >> > apipie-rails (0.0.13) >> > arel (3.0.2, 2.0.10) >> > audited (3.0.0.rc1) >> > audited-activerecord (3.0.0.rc1) >> > awesome_print (1.0.2) >> > builder (3.0.4, 2.1.2) >> > bundler (1.0.15) >> > daemon_controller (1.1.1) >> > erubis (2.7.0, 2.6.6) >> > excon (0.14.0) >> > fastthread (1.0.7) >> > fog (1.9.0) >> > foremancli (1.0) >> > formatador (0.2.1) >> > highline (1.4.0) >> > hike (1.2.1) >> > hirb (0.6.2) >> > hirb-unicode (0.0.5) >> > i18n (0.6.1, 0.5.0) >> > journey (1.0.4) >> > jquery-rails (1.0.19) >> > json (1.6.8) >> > mail (2.4.4, 2.3.3, 2.2.19) >> > mime-types (1.18) >> > multi_json (1.2.0) >> > mysql (2.8.1) >> > mysql2 (0.2.18) >> > net-ldap (0.3.1) >> > net-scp (1.0.4) >> > net-ssh (2.3.0) >> > nokogiri (1.5.2) >> > oauth (0.4.7) >> > passenger (3.0.19) >> > polyglot (0.3.3) >> > rabl (0.7.5) >> > rack (1.4.5, 1.3.5, 1.2.5, 1.1.0) >> > rack-cache (1.2) >> > rack-mount (0.6.14) >> > rack-ssl (1.3.3) >> > rack-test (0.6.2, 0.5.7) >> > rails (3.2.12, 3.0.20, 3.0.17, 3.0.10) >> > railties (3.2.12, 3.0.20, 3.0.17, 3.0.10) >> > rake (0.9.2.2) >> > rbovirt (0.0.15) >> > rbvmomi (1.5.1) >> > rdoc (3.12) >> > rest-client (1.6.7) >> > ruby-hmac (0.4.0) >> > ruby2ruby (2.0.1) >> > ruby_parser (3.0.1) >> > safemode (1.2.0) >> > scoped_search (2.4.0) >> > sexp_processor (4.1.2) >> > sinatra (1.0) >> > sprockets (2.2.2) >> > sqlite3 (1.3.5) >> > stomp (1.2.2) >> > thor (0.14.6) >> > tilt (1.3.3) >> > treetop (1.4.10) >> > trollop (1.16.2) >> > tzinfo (0.3.32) >> > unicode-display_width (0.1.1) >> > uuidtools (2.1.1) >> > will_paginate (3.0.3) >> > wirb (0.4.2) >> > >> > The error I am receiving: >> > >> > Ruby (Rack) application could not be started >> > These are the possible causes: >> > There may be a syntax error in the application's code. Please check for >> such errors and fix them. >> > A required library may not installed. Please install all libraries that >> this application requires. >> > The application may not be properly configured. Please check whether >> all configuration files are written correctly, fix any incorrect >> configurations, and restart this application. >> > A service that the application relies on (such as the database server >> or the Ferret search engine server) may not have been started. Please start >> that service. >> > Further information about the error may have been written to the >> application's log file. Please check it in order to analyse the problem. >> > Error message: >> > undefined method `config' for # >> > Exception class: >> > NoMethodError >> > Application root: >> > /usr/share/foreman >> > Backtrace: >> > # >> > File >> > Line >> > Location >> > 0 >> > /usr/share/foreman/config/application.rb >> > 22 >> > >> > 1 >> > /usr/share/foreman/config/environment.rb >> > 2 >> > in `require' >> > 2 >> > /usr/share/foreman/config/environment.rb >> > 2 >> > >> > 3 >> > config.ru >> > 3 >> > in `require' >> > 4 >> > config.ru >> > 3 >> > >> > 5 >> > /usr/lib/ruby/gems/1.8/gems/rack-1.4.5/lib/rack/builder.rb >> > 51 >> > in `instance_eval' >> > 6 >> > /usr/lib/ruby/gems/1.8/gems/rack-1.4.5/lib/rack/builder.rb >> > 51 >> > in `initialize' >> > 7 >> > config.ru >> > 1 >> > in `new' >> > 8 >> > config.ru >> > 1 >> > >> > It was perfectly find before the update, please help :) >> > >> > Thanks! >> > >> > -- >> > 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?hl=en. >> > For more options, visit https://groups.google.com/groups/opt_out. >> > >> > >> >

Does the /use/share/foreman/Gemfile.lock still have anything with version 3.2.12?

BINGO. It sure does, is this something I can remove or modify?

grep 3.2.12 Gemfile.lock

actionmailer (3.2.12)
  actionpack (= 3.2.12)
actionpack (3.2.12)
  activemodel (= 3.2.12)
  activesupport (= 3.2.12)
activemodel (3.2.12)
  activesupport (= 3.2.12)
activerecord (3.2.12)
  activemodel (= 3.2.12)
  activesupport (= 3.2.12)
activeresource (3.2.12)
  activemodel (= 3.2.12)
  activesupport (= 3.2.12)
activesupport (3.2.12)
rails (3.2.12)
  actionmailer (= 3.2.12)
  actionpack (= 3.2.12)
  activerecord (= 3.2.12)
  activeresource (= 3.2.12)
  activesupport (= 3.2.12)
  railties (= 3.2.12)
railties (3.2.12)
  actionpack (= 3.2.12)
  activesupport (= 3.2.12)
··· On Monday, May 6, 2013 8:02:22 PM UTC-4, treydock wrote: > > Does the /use/share/foreman/Gemfile.lock still have anything with version > 3.2.12?

on how Foreman was installed. If it was installed using yum, a yum
reinstall should rebuild the Gemfile.lock. If it was from source, then
you'll want to do something like 'bundle install --without mysql mysql2
sqlite test --path vendor'.

··· On Monday, May 6, 2013 10:12:33 PM UTC-5, Larry Long wrote: > > BINGO. It sure does, is this something I can remove or modify? > > # grep 3.2.12 Gemfile.lock > actionmailer (3.2.12) > actionpack (= 3.2.12) > actionpack (3.2.12) > activemodel (= 3.2.12) > activesupport (= 3.2.12) > activemodel (3.2.12) > activesupport (= 3.2.12) > activerecord (3.2.12) > activemodel (= 3.2.12) > activesupport (= 3.2.12) > activeresource (3.2.12) > activemodel (= 3.2.12) > activesupport (= 3.2.12) > activesupport (3.2.12) > rails (3.2.12) > actionmailer (= 3.2.12) > actionpack (= 3.2.12) > activerecord (= 3.2.12) > activeresource (= 3.2.12) > activesupport (= 3.2.12) > railties (= 3.2.12) > railties (3.2.12) > actionpack (= 3.2.12) > activesupport (= 3.2.12) > > Removing the Gemfile.lock should work, and be regenerated but that depends

Treydock! Thank you, I removed and re-installed and voila, foreman is back
up! woooooo

··· On Wednesday, May 8, 2013 3:54:10 AM UTC-4, treydock wrote: > > > > On Monday, May 6, 2013 10:12:33 PM UTC-5, Larry Long wrote: >> >> BINGO. It sure does, is this something I can remove or modify? >> >> # grep 3.2.12 Gemfile.lock >> actionmailer (3.2.12) >> actionpack (= 3.2.12) >> actionpack (3.2.12) >> activemodel (= 3.2.12) >> activesupport (= 3.2.12) >> activemodel (3.2.12) >> activesupport (= 3.2.12) >> activerecord (3.2.12) >> activemodel (= 3.2.12) >> activesupport (= 3.2.12) >> activeresource (3.2.12) >> activemodel (= 3.2.12) >> activesupport (= 3.2.12) >> activesupport (3.2.12) >> rails (3.2.12) >> actionmailer (= 3.2.12) >> actionpack (= 3.2.12) >> activerecord (= 3.2.12) >> activeresource (= 3.2.12) >> activesupport (= 3.2.12) >> railties (= 3.2.12) >> railties (3.2.12) >> actionpack (= 3.2.12) >> activesupport (= 3.2.12) >> >> Removing the Gemfile.lock should work, and be regenerated but that > depends on how Foreman was installed. If it was installed using yum, a yum > reinstall should rebuild the Gemfile.lock. If it was from source, then > you'll want to do something like 'bundle install --without mysql mysql2 > sqlite test --path vendor'. >