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

Improve error message when cookbook is not in policy file set #100

Open
tas50 opened this issue Sep 5, 2017 · 3 comments
Open

Improve error message when cookbook is not in policy file set #100

tas50 opened this issue Sep 5, 2017 · 3 comments
Labels
Status: Waiting on Contributor A pull request that has unresolved requested actions from the author. Triage: Needs Information Indicates an issue needs more information in order to work on it.

Comments

@tas50
Copy link
Contributor

tas50 commented Sep 5, 2017

If you add a new dep w/o running chef update you get a pretty cryptic message:

>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: 1 actions failed.
>>>>>>     Failed to complete #converge action: [Expected process to exit with [0], but received '1'
---- Begin output of chef export /Users/tsmith/dev/community-cookbooks/kube/Policyfile.rb /var/folders/7q/xzcd7t315xg7n28trln90m_80000gn/T/default-debian-8-sandbox-20170905-87280-x7xt0x --force ----
STDOUT:
STDERR: Error: Invalid lockfile data
Reason: (ChefDK::DependencyConflict) Cookbook kube_test (0.0.0) has dependency constraints that cannot be met by the existing cookbook set:
Cookbook chef-apt-docker isn't included in the existing cookbook set.
---- End output of chef export /Users/tsmith/dev/community-cookbooks/kube/Policyfile.rb /var/folders/7q/xzcd7t315xg7n28trln90m_80000gn/T/default-debian-8-sandbox-20170905-87280-x7xt0x --force ----
Ran chef export /Users/tsmith/dev/community-cookbooks/kube/Policyfile.rb /var/folders/7q/xzcd7t315xg7n28trln90m_80000gn/T/default-debian-8-sandbox-20170905-87280-x7xt0x --force returned 1] on default-debian-8
>>>>>> ----------------------
>>>>>> Please see .kitchen/logs/kitchen.log for more details
>>>>>> Also try running `kitchen diagnose --all` for configuration

Just pointing out that this could be fixed with a simple chef update would probably help a lot of first time users.

@tas50 tas50 transferred this issue from chef-boneyard/chef-dk Jun 5, 2020
@marcparadise marcparadise added Status: Waiting on Contributor A pull request that has unresolved requested actions from the author. Triage: Needs Information Indicates an issue needs more information in order to work on it. labels Jan 6, 2021
@marcparadise
Copy link
Member

@tas50 what's the command that shows this message? kitchen converge, or other?

@tas50
Copy link
Contributor Author

tas50 commented Jan 6, 2021

I believe this is kitchen converge based on the action in the error message

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Waiting on Contributor A pull request that has unresolved requested actions from the author. Triage: Needs Information Indicates an issue needs more information in order to work on it.
Projects
None yet
Development

No branches or pull requests

3 participants