On Sun, Jul 21, 2013 at 2:07 PM, jamese james.e...@gmail.com wrote:
Hi Ohad,
Many thanks for your response.
I have installed the gem in the scl environment and restarted foreman,
but
now foreman complains about missing audited-activecord.
did foreman worked before that? can you try to verify that the audited
gem
in installed and not modified ? e.g. rpm -v ?
scl enable ruby193 “gem install foreman_discovery”
Successfully installed foreman_discovery-1.0.0
1 gem installed
Installing ri documentation for foreman_discovery-1.0.0…
Installing RDoc documentation for foreman_discovery-1.0.0…
service foreman restart
Restarting foreman rails app: [ OK ]
are you not running using passenger? according to your trace you are…
I installed the audited-activerecord gem, but foreman is still
returning
an error about it being missing.
scl enable ruby193 “gem install audited-activerecord”
Successfully installed audited-activerecord-3.0.0
1 gem installed
Installing ri documentation for audited-activerecord-3.0.0…
Installing RDoc documentation for audited-activerecord-3.0.0…
Gem loading error: cannot load such file – audited/activerecord
(RuntimeError)
/opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:30:in
`strict_error’
/opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:53:in
`rescue in rescue in block in system_require’
/opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:43:in
`rescue in block in system_require’
/opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:37:in
`block in system_require’
/opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:35:in
`each’
/opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:35:in
system_require' /usr/share/foreman/config/application.rb:11:in
<top (required)>’
/opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in
`require’
/opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in
require' /usr/share/foreman/config/environment.rb:2:in
<top (required)>’
/opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in
`require’
/opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in
require' config.ru:3:in
block in ’
/opt/rh/ruby193/root/usr/local/share/gems/gems/rack-1.5.2/lib/rack/builder.rb:55:in
`instance_eval’
/opt/rh/ruby193/root/usr/local/share/gems/gems/rack-1.5.2/lib/rack/builder.rb:55:in
initialize' config.ru:1:in
new’
config.ru:1:in `’
/usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:82:in
`eval’
/usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:82:in
`preload_app’
/usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:127:in
`module:App’
/usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:6:in
`module:PhusionPassenger’
/usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:5:in
`’
I’ve also added the gem to
/usr/share/foreman/bundler.d/Gemfile.local.rb:
cat bundler.d/Gemfile.local.rb
gem ‘foreman_discovery’, :git =>
“https://github.com/theforeman/foreman_discovery.git”
you don’t need git here if you installed the gem, afair bundler_ext does
not
support git ext.
Ohad
Any ideas?
I’m a beginner when it comes to ruby and scl, so forgive me if I’m
missing
anything obvious.
J
On Saturday, 20 July 2013 11:24:33 UTC+1, jamese wrote:
Hi all,
I’ve just installed foreman 1.2 on RHEL6 from the rpms available from
the
foreman repo. This is all working fine.
Now I want to install the foreman_discovery plugin.
As per the README, I’ve created a Gemfile.local.rb. It’s not quite
clear
to me where this should be, so I’ve added it to
"/usr/share/foreman/bundler.d", and run “gem install bundle” since
bundle
was missing.
“bundle update” returns the following error:
Could not locate Gemfile
Bundler::GemfileNotFound: Could not locate Gemfile
/opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/shared_helpers.rb:22:in
`default_gemfile’
/opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:231:in
`default_gemfile’
/opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:177:in
`root’
/opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:99:in
`bundle_path’
/opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:378:in
`configure_gem_home’
/opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:367:in
`configure_gem_home_and_path’
/opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:90:in
`configure’
/opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:146:in
`definition’
/opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/cli.rb:301:in
`update’
/opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/vendor/thor/task.rb:27:in
`run’
/opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/vendor/thor/invocation.rb:120:in
`invoke_task’
/opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/vendor/thor.rb:344:in
`dispatch’
/opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/vendor/thor/base.rb:434:in
`start’
/opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/bin/bundle:20:in
`block in <top (required)>’
/opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/friendly_errors.rb:3:in
`with_friendly_errors’
/opt/rh/ruby193/root/usr/local/share/gems/gems/bundler-1.3.5/bin/bundle:20:in
<top (required)>' /opt/rh/ruby193/root/usr/bin/bundle:23:in
load’
/opt/rh/ruby193/root/usr/bin/bundle:23:in `’
Any help is greatly appreciated.
Regards
James
–
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/groups/opt_out.
–
You received this message because you are subscribed to a topic in the
Google Groups “Foreman users” group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/foreman-users/AflYQopmqck/unsubscribe.
To unsubscribe from this group and all its topics, 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/groups/opt_out.