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
When trying to execute a cookbook that includes dependent cookbooks the chef-run fails when trying to use the installed package but works from source control with bundle exec
Chef Workstation Version
master / 0.1.135
Platform Version
OSX workstation, Ubuntu target
Replication Case
Create a cookbook with a dependency. The metadata.rb should include depends 'nginx' and the default recipe should be include_recipe "nginx:default"
Create a vagrant ubuntu node
Run chef-run vagrant@ubuntu1 path/to/cookbook
It should fail
Check out chef-workstation code, bundle install it and bundle exec chef-run vagrant@ubuntu1 path/to/cookbook - it should succeed
Client Output
[ - ] Generating local policyfile...
[ - ] Generated local policyfile
[ - ] [ubuntu1] Connecting...
[ - ] [ubuntu1] Connected.
[ - ] [ubuntu1] Verifying Chef client installation.
[ - ] [ubuntu1] Chef client version 14.2.0 already installed on target.
[ - ] [ubuntu1] Converging local recipe /Users/tball/github/chefws-chef-conf/cookbooks/my_nginx/recipes/dep.rb on target...
[ - ] [ubuntu1] Pushing remote policy to target...
[ - ] [ubuntu1] Running Chef on target...
[ - ] [ubuntu1] Failed to converge target.
[ERR] [ubuntu1] The converge of the remote host failed.
CHEFCCR099
The converge of the remote host failed.
Please examine the log file for a detailed cause of failure.
If you are not able to resolve this issue, please contact Chef support
at beta@chef.io and include the log file from the location below:
/Users/tball/.chef-workstation/logs/default.log
default.log:
[2018-06-18T16:53:33-06:00] INFO: Initialized logger
[2018-06-18T16:53:33-06:00] INFO: Looking for telemetry data to submit
[2018-06-18T16:53:33-06:00] INFO: Found 66 sessions to submit
[2018-06-18T16:53:40-06:00] ERROR: Remote chef-client error follows:
[2018-06-18T16:53:40-06:00] ERROR: Chef::Exceptions::CookbookNotFound: Error loading cookbook zypper with identifier 28279427bc93cb2ad2e29f09545c7dc5aa17c6dc from cookbook_artifacts/zypper/28279427bc93cb2ad2e29f09545c7dc5aa17c6dc: Net::HTTPFatalError - 500 "Internal Server Error"
[2018-06-18T16:53:40-06:00] ERROR: [ERR] [ubuntu1] The converge of the remote host failed.
Looking on the target node at /var/chef-workstation/cookbook_artifacts/zypper-28279427bc93cb2ad2e29f09545c7dc5aa17c6dc/metadata.json the very bottom of it looks like:
...
"ohai_versions": [
],
"gems": [
It is incomplete JSON for some reason. When debugging and trying this from local source, the metadata.json file is created on the client side with that incomplete JSON before it is packaged and sent to the remote node. So the error is not in the un-taring or transfer of the policyfile bundle. It is somehow occurring when creating the Policyfile bundle or downloading/preparing dependencies.
The text was updated successfully, but these errors were encountered:
Looks like this is potentially the same issue as chef-boneyard/chef-dk#1607 - lets try and pull in the latest version of mixlib-archive (0.4.7) and see if that fixes our issue
Description
When trying to execute a cookbook that includes dependent cookbooks the
chef-run
fails when trying to use the installed package but works from source control withbundle exec
Chef Workstation Version
master / 0.1.135
Platform Version
OSX workstation, Ubuntu target
Replication Case
metadata.rb
should includedepends 'nginx'
and the default recipe should beinclude_recipe "nginx:default"
chef-run vagrant@ubuntu1 path/to/cookbook
bundle install
it andbundle exec chef-run vagrant@ubuntu1 path/to/cookbook
- it should succeedClient Output
default.log
:Looking on the target node at
/var/chef-workstation/cookbook_artifacts/zypper-28279427bc93cb2ad2e29f09545c7dc5aa17c6dc/metadata.json
the very bottom of it looks like:It is incomplete JSON for some reason. When debugging and trying this from local source, the
metadata.json
file is created on the client side with that incomplete JSON before it is packaged and sent to the remote node. So the error is not in the un-taring or transfer of the policyfile bundle. It is somehow occurring when creating the Policyfile bundle or downloading/preparing dependencies.The text was updated successfully, but these errors were encountered: