You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 27, 2024. It is now read-only.
I have include this cookbook from my cookbook and used node['privateaddress'] in it to retrieve private ip, but when I ran this thing on AWS it was throwing following error.
1: begin
2: require 'ipaddr_extensions'
3: rescue LoadError
4: if Gem.respond_to?(:install)
5: begin
6>> Gem.install 'ipaddr_extensions'
7: rescue LoadError
8: # RubyGems >= 2.3.0, <= 2.5.0 raises a new LoadError even when successful
9: raise if Gem.rubygems_version >= Gem::Version.new('2.5.0')
I am using Chef 11 on AWS Opswork. I am not sure rubygems version as I am not having control for that instance right now. I will check it soon, but which version should I need to install with Chef 11.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I have include this cookbook from my cookbook and used
node['privateaddress']
in it to retrieve private ip, but when I ran this thing on AWS it was throwing following error.1: begin
2: require 'ipaddr_extensions'
3: rescue LoadError
4: if Gem.respond_to?(:install)
5: begin
6>> Gem.install 'ipaddr_extensions'
7: rescue LoadError
8: # RubyGems >= 2.3.0, <= 2.5.0 raises a new LoadError even when successful
9: raise if Gem.rubygems_version >= Gem::Version.new('2.5.0')
10: end
11: else
12: require 'rubygems/commands/install_command'
13: cmd = Gem::Commands::InstallCommand.new
14: cmd.handle_options %w(--no-ri --no-rdoc ipaddr_extensions)
15:
[2016-01-06T09:11:53+00:00] ERROR: Running exception handlers
[2016-01-06T09:11:53+00:00] ERROR: Exception handlers complete
[2016-01-06T09:11:53+00:00] FATAL: Stacktrace dumped to /var/lib/aws/opsworks/cache.stage2/chef-stacktrace.out
[2016-01-06T09:11:53+00:00] ERROR: Could not locate Gemfile
[2016-01-06T09:11:53+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
Can you correct me what I am missing.
The text was updated successfully, but these errors were encountered: