Could not find gem 'audited-activerecord' error when starting foreman 1.0.0-0.7

Was the version of Rails listed as local gem installed by the foreman RPM
installation or seperately? It may be that the audited-activerecord gem is
not supported by Rails > 3.0.x. Also you may run into problems with Rails
>= 3.1 using Foreman, especially the asset pipeline (CSS, JS, images).

If foreman is the only Rails application on that host, you may try removing
all those gems and reinstalling them via the RPMs provided in
foreman-development repo. Something like "gem list | cut -d" " -f1 | xargs
gem uninstall -aIx" should remove all gems.

  • Trey
ยทยทยท On Wednesday, July 18, 2012 7:31:29 PM UTC-5, Clay wrote: > > Hi, > I upgrade foreman to 1.0.0-0.7 , and got the following error , > > [root@puppet tmp]# service foreman start > Starting foreman: > /usr/lib64/ruby/gems/1.8/gems/bundler-1.1.4/lib/bundler/resolver.rb:287:in > `resolve': Could not find gem 'audited-activerecord (= 3.0.0.rc1) ruby' in > the gems available on this machine. (Bundler::GemNotFound) > from > /usr/lib64/ruby/gems/1.8/gems/bundler-1.1.4/lib/bundler/resolver.rb:161:in > `start' > from > /usr/lib64/ruby/gems/1.8/gems/bundler-1.1.4/lib/bundler/resolver.rb:128:in > `resolve' > from > /usr/lib64/ruby/gems/1.8/gems/bundler-1.1.4/lib/bundler/resolver.rb:127:in > `catch' > from > /usr/lib64/ruby/gems/1.8/gems/bundler-1.1.4/lib/bundler/resolver.rb:127:in > `resolve' > from > /usr/lib64/ruby/gems/1.8/gems/bundler-1.1.4/lib/bundler/definition.rb:192:in > `resolve' > from > /usr/lib64/ruby/gems/1.8/gems/bundler-1.1.4/lib/bundler/definition.rb:127:in > `specs' > from > /usr/lib64/ruby/gems/1.8/gems/bundler-1.1.4/lib/bundler/definition.rb:172:in > `specs_for' > from > /usr/lib64/ruby/gems/1.8/gems/bundler-1.1.4/lib/bundler/definition.rb:161:in > `requested_specs' > from > /usr/lib64/ruby/gems/1.8/gems/bundler-1.1.4/lib/bundler/environment.rb:23:in > `requested_specs' > from > /usr/lib64/ruby/gems/1.8/gems/bundler-1.1.4/lib/bundler/runtime.rb:11:in > `setup' > from > /usr/lib64/ruby/gems/1.8/gems/bundler-1.1.4/lib/bundler.rb:107:in `setup' > from /usr/share/foreman/config/boot.rb:14 > from /usr/share/foreman/script/rails:5:in `require' > from /usr/share/foreman/script/rails:5 > > [root@puppet ~]# rpm -qa|grep audited > rubygem-audited-3.0.0.rc1-1.el6.noarch > rubygem-audited-activerecord-3.0.0.rc1-1.el6.noarch > rubygem-acts_as_audited-2.0.0-1.el6.noarch > [root@puppet ~]# rpm -q foreman > foreman-1.0.0-0.7.el6.noarch > > > server is 64-bit RHEL 6.3 and ruby version is 1.8.7, puppet version is > 2.7.18. > here's the gem list output: > > > *** LOCAL GEMS *** > > actionmailer (3.2.6) > actionpack (3.2.6) > activemodel (3.2.6) > activerecord (3.2.6) > activeresource (3.2.6) > activesupport (3.2.6, 3.0.0) > arel (3.0.2, 1.0.1) > builder (3.0.0, 2.1.2) > bundler (1.1.4) > daemon_controller (1.0.0) > erubis (2.7.0) > fastthread (1.0.7) > hike (1.2.1) > i18n (0.6.0, 0.4.2) > journey (1.0.4) > json (1.7.3) > mail (2.4.4) > mime-types (1.19) > multi_json (1.3.6) > passenger (3.0.13) > polyglot (0.3.3) > rack (1.4.1, 1.1.2) > rack-cache (1.2) > rack-mount (0.8.3) > rack-ssl (1.3.2) > rack-test (0.6.1) > rails (3.2.6) > railties (3.2.6) > rake (0.9.2.2) > rdoc (3.12) > sprockets (2.1.3) > stomp (1.2.2) > systemu (2.5.2) > thor (0.15.4) > tilt (1.3.3) > treetop (1.4.10) > tzinfo (0.3.33) > > any suggestions ? thanks. > > Clay > >