Skip to content

Instantly share code, notes, and snippets.

@swade1987
Created February 8, 2016 11:53
Show Gist options
  • Save swade1987/a3645cee2587d774bc3a to your computer and use it in GitHub Desktop.
Save swade1987/a3645cee2587d774bc3a to your computer and use it in GitHub Desktop.
chocolatey default recipe run
==> default: [2016-02-08T03:44:33-08:00] INFO: Installing ContinuousDeliveryPipelineDemo.Web to version 0.0.1
==> default:
==> default: Converging 12 resources
==> default: * chef_gem[win32-api] action install
==> default: * chef_gem[win32-service] action install
==> default: * chef_gem[windows-api] action install
==> default: * chef_gem[windows-pr] action install (up to date)
==> default:
==> default: * chef_gem[win32-dir] action install
==> default: * chef_gem[win32-event] action install
==> default: * chef_gem[win32-mutex] action install
==> default: Recipe: chocolatey::default
==> default:
==> default: * powershell_script[install chocolatey] action run
==> default: [execute] C:\Users\vagrant\AppData\Local\Temp\chef-script20160208-2292-1dd2hid.ps1 : The
==> default:
==> default:
==> default: remote server returned an error: (401) Unauthorized.
==> default:
==> default: + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorExcep
==> default:
==> default: tion
==> default:
==> default: + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorExceptio
==> default:
==> default: n,chef-script20160208-2292-1dd2hid.ps1
==> default:
==> default:
==> default:
==> default:
==> default: ================================================================================
==> default: Error executing action `run` on resource 'powershell_script[install chocolatey]'
==> default: ================================================================================
==> default:
==> default: Mixlib::ShellOut::ShellCommandFailed
==> default: ------------------------------------
==> default: Expected process to exit with [0], but received '1'
==> default: ---- Begin output of "C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe" -NoLogo -NonInteractive -NoProfile -ExecutionPolicy Bypass -InputFormat None -File "C:/Users/vagrant/AppData/Local/Temp/chef-script20160208-2292-1dd2hid.ps1" ----
==> default: STDOUT:
==> default: STDERR: C:\Users\vagrant\AppData\Local\Temp\chef-script20160208-2292-1dd2hid.ps1 : The
==> default:
==> default: remote server returned an error: (401) Unauthorized.
==> default:
==> default: + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorExcep
==> default:
==> default: tion
==> default:
==> default: + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorExceptio
==> default:
==> default: n,chef-script20160208-2292-1dd2hid.ps1
==> default: ---- End output of "C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe" -NoLogo -NonInteractive -NoProfile -ExecutionPolicy Bypass -InputFormat None -File "C:/Users/vagrant/AppData/Local/Temp/chef-script20160208-2292-1dd2hid.ps1" ----
==> default: Ran "C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe" -NoLogo -NonInteractive -NoProfile -ExecutionPolicy Bypass -InputFormat None -File "C:/Users/vagrant/AppData/Local/Temp/chef-script20160208-2292-1dd2hid.ps1" returned 1
==> default:
==> default: Resource Declaration:
==> default: ---------------------
==> default: # In C:\vagrant-chef\4a3cba4f765c75daea63abe9220da43e\cookbooks\chocolatey\recipes\default.rb
==> default:
==> default: 27: powershell_script 'install chocolatey' do
==> default: 28: code "iex ((new-object net.webclient).DownloadString('#{node['chocolatey']['Uri']}'))"
==> default: 29: convert_boolean_return true
==> default: 30: not_if { ChocolateyHelpers.chocolatey_installed? }
==> default: 31: end
==> default: 32:
==> default:
==> default: Compiled Resource:
==> default: ------------------
==> default: # Declared in C:\vagrant-chef\4a3cba4f765c75daea63abe9220da43e\cookbooks\chocolatey\recipes\default.rb:27:in `from_file'
==> default:
==> default: powershell_script("install chocolatey") do
==> default: action [:run]
==> default: retries 0
==> default: retry_delay 2
==> default: default_guard_interpreter :powershell_script
==> default: command "install chocolatey"
==> default: backup 5
==> default: returns 0
==> default: code "iex ((new-object net.webclient).DownloadString('https://parliamentarydigitalservice.artifactoryonline.com/parliamentarydigitalservice/api/nuget/nuget-local'))"
==> default: interpreter "powershell.exe"
==> default: convert_boolean_return true
==> default: declared_type :powershell_script
==> default: cookbook_name :chocolatey
==> default: recipe_name "default"
==> default: not_if { #code block }
==> default: end
==> default:
==> default: [2016-02-08T03:44:36-08:00] INFO: Running queued delayed notifications before re-raising exception
==> default:
==> default: Running handlers:
==> default: [2016-02-08T03:44:36-08:00] ERROR: Running exception handlers
==> default: Running handlers complete
==> default: [2016-02-08T03:44:36-08:00] ERROR: Exception handlers complete
==> default: Chef Client failed. 1 resources updated in 22 seconds
==> default: [2016-02-08T03:44:36-08:00] FATAL: Stacktrace dumped to C:/chef/cache/chef-stacktrace.out
==> default: [2016-02-08T03:44:36-08:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
==> default: [2016-02-08T03:44:36-08:00] FATAL: Mixlib::ShellOut::ShellCommandFailed: powershell_script[install chocolatey] (chocolatey::default line 27) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
==> default: ---- Begin output of "C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe" -NoLogo -NonInteractive -NoProfile -ExecutionPolicy Bypass -InputFormat None -File "C:/Users/vagrant/AppData/Local/Temp/chef-script20160208-2292-1dd2hid.ps1" ----
==> default: STDOUT:
==> default: STDERR: C:\Users\vagrant\AppData\Local\Temp\chef-script20160208-2292-1dd2hid.ps1 : The
==> default:
==> default: remote server returned an error: (401) Unauthorized.
==> default:
==> default: + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorExcep
==> default:
==> default: tion
==> default:
==> default: + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorExceptio
==> default:
==> default: n,chef-script20160208-2292-1dd2hid.ps1
==> default: ---- End output of "C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe" -NoLogo -NonInteractive -NoProfile -ExecutionPolicy Bypass -InputFormat None -File "C:/Users/vagrant/AppData/Local/Temp/chef-script20160208-2292-1dd2hid.ps1" ----
==> default: Ran "C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe" -NoLogo -NonInteractive -NoProfile -ExecutionPolicy Bypass -InputFormat None -File "C:/Users/vagrant/AppData/Local/Temp/chef-script20160208-2292-1dd2hid.ps1" returned 1
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment