Open xmichelleyang opened 4 years ago
I am running into this exact same problem
Maybe I was the first one to have this problem on windows 10 using powershell and it happened over 4 months ago and no one could figure out why. I was able to fix it by starting work on Ubuntu 18.04.
I ran into this exact same. All on windows 10 in a powershell environment. I tested with the following versions
Chef Workstation 20.6.62
Chef Workstation 20.9.158
and ChefDK 4.2.0
Each time I would chef generate cookbook
and then try to converge the default ubuntu suite. Each time running into the same issue of downloading a corrupt deb file. I tried specifying other versions of chef omnibus and had the same issue with 16.5, 16.6 and 14.5.1. Each failure was the same but failed extracting a different part of the file from the deb.
This got me looking closer at the deb in my .kitchen\cache
file and found that when sha1 of the file in my cache directory did not match the sha1 in the kitchen converge output. So there seems to be an issue in the kitchen converge where when the sha's of the files don't match it continues on. I tried deleting and redownloading this file 10's of times and always had the same issue. I tested in other shells (cmd, powershell, and git bash) in case it was in issue with wget being an alias for Invoke-Webrequest. All shells had the same problem.
Workaround was to manually download the deb
wget https://packages.chef.io/files/stable/chef/16.6.14/ubuntu/20.04/chef_16.6.14-1_amd64.deb -OutFile chef_16.6.14-1_amd64.deb
and put that file in my local users .kitchen\cache
folder. Then my kitchen converge worked.
:ghost: Brief Description
Currently going through the following walkthrough and hitting an error when I run kitchen-converge. https://kitchen.ci/docs/getting-started/creating-cookbook/
Version
Not sure what this means but all the versions of what tutorial told me to download are listed below:
Environment
Running on Windows 10 via PowerShell.
Scenario
I can't successfully run kitchen-converge
Steps to Reproduce
provisioner: name: chef_zero
verifier: name: inspec
platforms:
suites:
Expected Result
Excepted output like the one posted on tutorial: https://kitchen.ci/docs/getting-started/running-converge/
Actual Result
Got this result