Created
March 31, 2016 17:09
-
-
Save gmreburn/534a7507c3733fcf3dba83f53ff4cf7c to your computer and use it in GitHub Desktop.
windows-2012r2 kitchen log - chefclient checksum mismatch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I, [2016-03-31T11:59:25.274870 #11096] INFO -- default-windows-2012r2: -----> Creating <default-windows-2012r2>... | |
I, [2016-03-31T11:59:27.212370 #11096] INFO -- default-windows-2012r2: Bringing machine 'default' up with 'virtualbox' provider... | |
I, [2016-03-31T11:59:28.050870 #11096] INFO -- default-windows-2012r2: ==> default: VirtualBox VM is already running. | |
I, [2016-03-31T11:59:33.442870 #11096] INFO -- default-windows-2012r2: [WinRM] Established | |
I, [2016-03-31T11:59:33.460370 #11096] INFO -- default-windows-2012r2: Vagrant instance <default-windows-2012r2> created. | |
I, [2016-03-31T11:59:33.466370 #11096] INFO -- default-windows-2012r2: Finished creating <default-windows-2012r2> (0m8.19s). | |
I, [2016-03-31T11:59:33.466870 #11096] INFO -- default-windows-2012r2: -----> Converging <default-windows-2012r2>... | |
I, [2016-03-31T11:59:33.469370 #11096] INFO -- default-windows-2012r2: Preparing files for transfer | |
I, [2016-03-31T11:59:33.469370 #11096] INFO -- default-windows-2012r2: Preparing dna.json | |
I, [2016-03-31T11:59:33.473370 #11096] INFO -- default-windows-2012r2: Resolving cookbook dependencies with Berkshelf 4.0.1... | |
I, [2016-03-31T11:59:37.425870 #11096] INFO -- default-windows-2012r2: Removing non-cookbook files before transfer | |
I, [2016-03-31T11:59:37.432370 #11096] INFO -- default-windows-2012r2: Preparing validation.pem | |
I, [2016-03-31T11:59:37.436870 #11096] INFO -- default-windows-2012r2: Preparing client.rb | |
I, [2016-03-31T11:59:38.473870 #11096] INFO -- default-windows-2012r2: -----> Installing Chef Omnibus (install only if missing) | |
I, [2016-03-31T11:59:39.107370 #11096] INFO -- default-windows-2012r2: Downloading package from https://packages.chef.io/stable/windows/2012r2/chef-client-12.8.1-1-x86.msi | |
I, [2016-03-31T11:59:58.264870 #11096] INFO -- default-windows-2012r2: Download complete. | |
W, [2016-03-31T11:59:58.500370 #11096] WARN -- default-windows-2012r2: MD5 for C:\Users\vagrant\AppData\Local\Temp\chef-true.msi | |
W, [2016-03-31T11:59:58.500870 #11096] WARN -- default-windows-2012r2: 458177d3b21888c17fd79660781d06eb does not match | |
W, [2016-03-31T11:59:58.501370 #11096] WARN -- default-windows-2012r2: At line:48 char:10 | |
W, [2016-03-31T11:59:58.501370 #11096] WARN -- default-windows-2012r2: + else { throw "MD5 for $dst $dmd5 does not match $md5" } | |
W, [2016-03-31T11:59:58.501370 #11096] WARN -- default-windows-2012r2: + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
W, [2016-03-31T11:59:58.501870 #11096] WARN -- default-windows-2012r2: + CategoryInfo : OperationStopped: (MD5 for C:\User...does not ma | |
W, [2016-03-31T11:59:58.501870 #11096] WARN -- default-windows-2012r2: tch :String) [], RuntimeException | |
W, [2016-03-31T11:59:58.502370 #11096] WARN -- default-windows-2012r2: + FullyQualifiedErrorId : MD5 for C:\Users\vagrant\AppData\Local\Temp\chef | |
W, [2016-03-31T11:59:58.502370 #11096] WARN -- default-windows-2012r2: -true.msi 458177d3b21888c17fd79660781d06eb does not match | |
E, [2016-03-31T11:59:58.506870 #11096] ERROR -- default-windows-2012r2: Converge failed on instance <default-windows-2012r2>. | |
E, [2016-03-31T11:59:58.506870 #11096] ERROR -- default-windows-2012r2: ------Exception------- | |
E, [2016-03-31T11:59:58.506870 #11096] ERROR -- default-windows-2012r2: Class: Kitchen::ActionFailed | |
E, [2016-03-31T11:59:58.507370 #11096] ERROR -- default-windows-2012r2: Message: WinRM exited (1) for command: [ | |
$chef_metadata_url = "https://www.chef.io/chef/metadata?p=windows&m=x86_64&pv=2008r2&v=latest" | |
$chef_omnibus_root = "$env:systemdrive\opscode\chef" | |
$msi = "$env:TEMP\chef-true.msi" | |
$pretty_version = "install only if missing" | |
$version = "true" | |
Function Check-UpdateChef($root, $version) { | |
if (-Not (Test-Path $root)) { return $true } | |
elseif ("$version" -eq "true") { return $false } | |
elseif ("$version" -eq "latest") { return $true } | |
Try { $chef_version = Get-Content $root\version-manifest.txt | select-object -1} | |
Catch { | |
Try { $chef_version = (& $root\bin\chef-solo.bat -v).split(" ", 2)[1] } | |
Catch { $chef_version = "" } | |
} | |
if ($chef_version.StartsWith($version)) { return $false } | |
else { return $true } | |
} | |
Function Get-ChefMetadata($url) { | |
Try { $response = ($c = Make-WebClient).DownloadString($url) } | |
Finally { if ($c -ne $null) { $c.Dispose() } } | |
$md = ConvertFrom-StringData $response.Replace("`t", "=") | |
return @($md.url, $md.md5) | |
} | |
Function Get-MD5Sum($src) { | |
Try { | |
$c = New-Object -TypeName System.Security.Cryptography.MD5CryptoServiceProvider | |
$bytes = $c.ComputeHash(($in = (Get-Item $src).OpenRead())) | |
return ([System.BitConverter]::ToString($bytes)).Replace("-", "").ToLower() | |
} Finally { if (($c -ne $null) -and ($c.GetType().GetMethod("Dispose") -ne $null)) { $c.Dispose() }; if ($in -ne $null) { $in.Dispose() } } | |
} | |
Function Download-Chef($md_url, $dst) { | |
$url, $md5 = Get-ChefMetadata $md_url | |
Try { | |
Log "Downloading package from $url" | |
($c = Make-WebClient).DownloadFile($url, $dst) | |
Log "Download complete." | |
} Finally { if ($c -ne $null) { $c.Dispose() } } | |
if (($dmd5 = Get-MD5Sum $dst) -eq $md5) { Log "Successfully verified $dst" } | |
else { throw "MD5 for $dst $dmd5 does not match $md5" } | |
} | |
Function Install-Chef($msi) { | |
Log "Installing Chef Omnibus package $msi" | |
$p = Start-Process -FilePath "msiexec.exe" -ArgumentList "/qn /i $msi" -Passthru -Wait | |
if ($p.ExitCode -ne 0) { throw "msiexec was not successful. Received exit code $($p.ExitCode)" } | |
Remove-Item $msi -Force | |
Log "Installation complete" | |
} | |
Function Log($m) { Write-Host " $m`n" } | |
Function Make-WebClient { | |
$proxy = New-Object -TypeName System.Net.WebProxy | |
$proxy.Address = $env:http_proxy | |
$client = New-Object -TypeName System.Net.WebClient | |
$client.Proxy = $proxy | |
return $client | |
} | |
Function Unresolve-Path($p) { | |
if ($p -eq $null) { return $null } | |
else { return $ExecutionContext.SessionState.Path.GetUnresolvedProviderPathFromPSPath($p) } | |
} | |
$chef_omnibus_root = Unresolve-Path $chef_omnibus_root | |
$msi = Unresolve-Path $msi | |
if (Check-UpdateChef $chef_omnibus_root $version) { | |
Write-Host "-----> Installing Chef Omnibus ($pretty_version)`n" | |
Download-Chef "$chef_metadata_url" $msi | |
Install-Chef $msi | |
} else { | |
Write-Host "-----> Chef Omnibus installation detected ($pretty_version)`n" | |
} | |
] | |
E, [2016-03-31T11:59:58.507370 #11096] ERROR -- default-windows-2012r2: ---Nested Exception--- | |
E, [2016-03-31T11:59:58.507370 #11096] ERROR -- default-windows-2012r2: Class: Kitchen::Transport::WinrmFailed | |
E, [2016-03-31T11:59:58.507370 #11096] ERROR -- default-windows-2012r2: Message: WinRM exited (1) for command: [ | |
$chef_metadata_url = "https://www.chef.io/chef/metadata?p=windows&m=x86_64&pv=2008r2&v=latest" | |
$chef_omnibus_root = "$env:systemdrive\opscode\chef" | |
$msi = "$env:TEMP\chef-true.msi" | |
$pretty_version = "install only if missing" | |
$version = "true" | |
Function Check-UpdateChef($root, $version) { | |
if (-Not (Test-Path $root)) { return $true } | |
elseif ("$version" -eq "true") { return $false } | |
elseif ("$version" -eq "latest") { return $true } | |
Try { $chef_version = Get-Content $root\version-manifest.txt | select-object -1} | |
Catch { | |
Try { $chef_version = (& $root\bin\chef-solo.bat -v).split(" ", 2)[1] } | |
Catch { $chef_version = "" } | |
} | |
if ($chef_version.StartsWith($version)) { return $false } | |
else { return $true } | |
} | |
Function Get-ChefMetadata($url) { | |
Try { $response = ($c = Make-WebClient).DownloadString($url) } | |
Finally { if ($c -ne $null) { $c.Dispose() } } | |
$md = ConvertFrom-StringData $response.Replace("`t", "=") | |
return @($md.url, $md.md5) | |
} | |
Function Get-MD5Sum($src) { | |
Try { | |
$c = New-Object -TypeName System.Security.Cryptography.MD5CryptoServiceProvider | |
$bytes = $c.ComputeHash(($in = (Get-Item $src).OpenRead())) | |
return ([System.BitConverter]::ToString($bytes)).Replace("-", "").ToLower() | |
} Finally { if (($c -ne $null) -and ($c.GetType().GetMethod("Dispose") -ne $null)) { $c.Dispose() }; if ($in -ne $null) { $in.Dispose() } } | |
} | |
Function Download-Chef($md_url, $dst) { | |
$url, $md5 = Get-ChefMetadata $md_url | |
Try { | |
Log "Downloading package from $url" | |
($c = Make-WebClient).DownloadFile($url, $dst) | |
Log "Download complete." | |
} Finally { if ($c -ne $null) { $c.Dispose() } } | |
if (($dmd5 = Get-MD5Sum $dst) -eq $md5) { Log "Successfully verified $dst" } | |
else { throw "MD5 for $dst $dmd5 does not match $md5" } | |
} | |
Function Install-Chef($msi) { | |
Log "Installing Chef Omnibus package $msi" | |
$p = Start-Process -FilePath "msiexec.exe" -ArgumentList "/qn /i $msi" -Passthru -Wait | |
if ($p.ExitCode -ne 0) { throw "msiexec was not successful. Received exit code $($p.ExitCode)" } | |
Remove-Item $msi -Force | |
Log "Installation complete" | |
} | |
Function Log($m) { Write-Host " $m`n" } | |
Function Make-WebClient { | |
$proxy = New-Object -TypeName System.Net.WebProxy | |
$proxy.Address = $env:http_proxy | |
$client = New-Object -TypeName System.Net.WebClient | |
$client.Proxy = $proxy | |
return $client | |
} | |
Function Unresolve-Path($p) { | |
if ($p -eq $null) { return $null } | |
else { return $ExecutionContext.SessionState.Path.GetUnresolvedProviderPathFromPSPath($p) } | |
} | |
$chef_omnibus_root = Unresolve-Path $chef_omnibus_root | |
$msi = Unresolve-Path $msi | |
if (Check-UpdateChef $chef_omnibus_root $version) { | |
Write-Host "-----> Installing Chef Omnibus ($pretty_version)`n" | |
Download-Chef "$chef_metadata_url" $msi | |
Install-Chef $msi | |
} else { | |
Write-Host "-----> Chef Omnibus installation detected ($pretty_version)`n" | |
} | |
] | |
E, [2016-03-31T11:59:58.507370 #11096] ERROR -- default-windows-2012r2: ------Backtrace------- | |
E, [2016-03-31T11:59:58.507370 #11096] ERROR -- default-windows-2012r2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.4.2/lib/kitchen/provisioner/base.rb:74:in `rescue in call' | |
E, [2016-03-31T11:59:58.507370 #11096] ERROR -- default-windows-2012r2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.4.2/lib/kitchen/provisioner/base.rb:77:in `call' | |
E, [2016-03-31T11:59:58.507370 #11096] ERROR -- default-windows-2012r2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.4.2/lib/kitchen/instance.rb:366:in `block in converge_action' | |
E, [2016-03-31T11:59:58.507370 #11096] ERROR -- default-windows-2012r2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.4.2/lib/kitchen/instance.rb:488:in `call' | |
E, [2016-03-31T11:59:58.507370 #11096] ERROR -- default-windows-2012r2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.4.2/lib/kitchen/instance.rb:488:in `synchronize_or_call' | |
E, [2016-03-31T11:59:58.507370 #11096] ERROR -- default-windows-2012r2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.4.2/lib/kitchen/instance.rb:453:in `block in action' | |
E, [2016-03-31T11:59:58.507370 #11096] ERROR -- default-windows-2012r2: C:/opscode/chefdk/embedded/lib/ruby/2.1.0/benchmark.rb:279:in `measure' | |
E, [2016-03-31T11:59:58.507370 #11096] ERROR -- default-windows-2012r2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.4.2/lib/kitchen/instance.rb:452:in `action' | |
E, [2016-03-31T11:59:58.507870 #11096] ERROR -- default-windows-2012r2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.4.2/lib/kitchen/instance.rb:362:in `converge_action' | |
E, [2016-03-31T11:59:58.507870 #11096] ERROR -- default-windows-2012r2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.4.2/lib/kitchen/instance.rb:341:in `block in transition_to' | |
E, [2016-03-31T11:59:58.507870 #11096] ERROR -- default-windows-2012r2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.4.2/lib/kitchen/instance.rb:340:in `each' | |
E, [2016-03-31T11:59:58.507870 #11096] ERROR -- default-windows-2012r2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.4.2/lib/kitchen/instance.rb:340:in `transition_to' | |
E, [2016-03-31T11:59:58.507870 #11096] ERROR -- default-windows-2012r2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.4.2/lib/kitchen/instance.rb:138:in `converge' | |
E, [2016-03-31T11:59:58.507870 #11096] ERROR -- default-windows-2012r2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.4.2/lib/kitchen/command.rb:176:in `public_send' | |
E, [2016-03-31T11:59:58.507870 #11096] ERROR -- default-windows-2012r2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.4.2/lib/kitchen/command.rb:176:in `block (2 levels) in run_action' | |
E, [2016-03-31T11:59:58.507870 #11096] ERROR -- default-windows-2012r2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in `call' | |
E, [2016-03-31T11:59:58.507870 #11096] ERROR -- default-windows-2012r2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in `block in create_with_logging_context' | |
E, [2016-03-31T11:59:58.507870 #11096] ERROR -- default-windows-2012r2: ---------------------- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment