Since this morning, I've been unable to run a kitchen converge due to the following error:
+---------------------------------------------+
Chef License Acceptance
Before you can continue, 2 product licenses
must be accepted. View the license at
https://www.chef.io/end-user-license-agreement/
Licenses that need accepting:
* Chef Infra Client
* Chef InSpec
Do you accept the 2 product licenses (yes/no)?
> Prompt timed out. Use non-interactive flags or enter an answer within 60 seconds.
If you do not accept this license you will
not be able to use Chef products.
Do you accept the 2 product licenses (yes/no)?
> Prompt timed out. Use non-interactive flags or enter an answer within 60 seconds.
+---------------------------------------------+
Chef Infra Client cannot execute without accepting the license
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: 1 actions failed.
>>>>>> Converge failed on instance <justone-macos-1014>. Please see .kitchen/logs/justone-macos-1014.log for more details
>>>>>> ----------------------
>>>>>> Please see .kitchen/logs/kitchen.log for more details
>>>>>> Also try running `kitchen diagnose --all` for configuration
Since this is non-interactive, there's no opportunity to accept the license and the chef-client install fails.
I've considered starting an instance manually, setting the CHEF_LICENSE env variable, and then converging the instance. Is this the procedure for bootstrapping a test instance?
chef-client --version
Chef: 14.12.3
kitchen --version
Test Kitchen version 1.23.2
Is it really required to install chef 15 for this issue? chef 15 isn't installed using any of the chefdk links on the official website that I can see, referencing both stable and unstable
I don't think you have to install v15 on your workstation, but I think the chef-client that is being bootstrapped onto your instance is going to be v15, pulled from ChefCo.
Seeing this post earlier would've saved me about 30 minutes. Thank you! I was researching Chef docs and github issues with spotty results. This did it. Thanks, again, and humbly suggest to update .kitchen.yml in git repository.
You can also force kitchen to bootstrap chef 14 on the node to solve the issue. I like the license option better but there are potential legal issues there if you are not paying for Chef licensing.
provisioner:
name: chef_zero
product_name: chef
product_version: 14
install_strategy: always
I have the same problem. But for some reason in my Chef i don't have a file "kitchen.yml".
I can create it, but have no idea, should it be on workstation or on server? As well in what folder it should be placed? Thank you.