Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chef version issue #47

Open
abhimanusharma opened this issue Jan 2, 2018 · 0 comments
Open

Chef version issue #47

abhimanusharma opened this issue Jan 2, 2018 · 0 comments

Comments

@abhimanusharma
Copy link

abhimanusharma commented Jan 2, 2018

I have followed the exact same steps as mentioned on rove.io website, first vagrant up was showing some issue which i resolved by installing some dependency. Now i am getting a runtime error every time i run vagrant reload or vagrant reload --provision

my code stuck near here:

==> default: Compiling Cookbooks...
==> default: 
==> default: ================================================================================
==> default: Recipe Compile Error in /tmp/vagrant-chef/cc9e1c118b8a6e466bd05ed1363cda86/cookbooks/compat_resource/libraries/autoload.rb
==> default: ================================================================================
==> default: 
==> default: 
==> default: RuntimeError
==> default: ------------
==> default: This resource is written with Chef 12.5 custom resources, and requires at least Chef 12.0 used with the compat_resource cookbook, it will not work with Chef 11.x clients, and those users must pin their cookbooks to older versions or upgrade.
==> default: 
==> default: 
==> default: Cookbook Trace:
==> default: ---------------
==> default:   /tmp/vagrant-chef/cc9e1c118b8a6e466bd05ed1363cda86/cookbooks/compat_resource/libraries/autoload.rb:2:in `<top (required)>'
==> default: 
==> default: 
==> default: Relevant File Content:
==> default: ----------------------
==> default: /tmp/vagrant-chef/cc9e1c118b8a6e466bd05ed1363cda86/cookbooks/compat_resource/libraries/autoload.rb:
==> default: 
==> default:   1:  unless Gem::Requirement.new(">= 12.0").satisfied_by?(Gem::Version.new(Chef::VERSION))
==> default:   2>>   raise "This resource is written with Chef 12.5 custom resources, and requires at least Chef 12.0 used with the compat_resource cookbook, it will not work with Chef 11.x clients, and those users must pin their cookbooks to older versions or upgrade."
==> default:   3:  end
==> default:   4:  
==> default:   5:  # If users are on old verisons of ChefDK which activates an (old) gem via cheffish before this cookbook loads, then
==> default:   6:  # we just try to monkeypatch over the top of a monkeypatch.  Its possible that we have checks in this cookbook which
==> default:   7:  # will defeat that purpose and fail to monkeypatch on top of monkeypatches -- in which case those checks should be
==> default:   8:  # removed -- this cookbook needs to win when it gets into a fight with the old gem versions.
==> default:   9:  if Gem.loaded_specs["compat_resource"]
==> default:  10:    Chef.log_deprecation "using compat_resource as a gem is deprecated;  please update cheffish and chef-provisioning gems (or use the latest Chef/ChefDK packages) or else manually pin your compat_resource cookbook version to the same version as the gem you are using to remove this warning"
==> default:  11:  end
==> default: 
==> default: 
==> default: 
==> default: [2018-01-02T21:58:43+00:00] ERROR: Running exception handlers
==> default: [2018-01-02T21:58:43+00:00] ERROR: Exception handlers complete
==> default: Chef Client failed. 0 resources updated
==> default: [2018-01-02T21:58:43+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
==> default: [2018-01-02T21:58:43+00:00] FATAL: RuntimeError: This resource is written with Chef 12.5 custom resources, and requires at least Chef 12.0 used with the compat_resource cookbook, it will not work with Chef 11.x clients, and those users must pin their cookbooks to older versions or upgrade.
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.

Please help asap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant