Skip to content

Instantly share code, notes, and snippets.

@russellseymour
Created July 19, 2019 15:13
Show Gist options
  • Save russellseymour/55d71343c5d34cd6f891af37886df5ed to your computer and use it in GitHub Desktop.
Save russellseymour/55d71343c5d34cd6f891af37886df5ed to your computer and use it in GitHub Desktop.
Effortless Windows workstation chef stacktrace
Generated at 2019-07-19 15:07:40 +0000
Mixlib::ShellOut::ShellCommandFailed: chocolatey_package[vscode] (apps::install line 5) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of C:\ProgramData\chocolatey/bin/choco.exe install -y vscode ----
STDOUT: Chocolatey v0.10.15
Installing the following packages:
vscode
By installing you accept licenses for the packages.
Progress: Downloading chocolatey-core.extension 1.3.3... 5%
Progress: Downloading chocolatey-core.extension 1.3.3... 15%
Progress: Downloading chocolatey-core.extension 1.3.3... 26%
Progress: Downloading chocolatey-core.extension 1.3.3... 37%
Progress: Downloading chocolatey-core.extension 1.3.3... 47%
Progress: Downloading chocolatey-core.extension 1.3.3... 58%
Progress: Downloading chocolatey-core.extension 1.3.3... 69%
Progress: Downloading chocolatey-core.extension 1.3.3... 80%
Progress: Downloading chocolatey-core.extension 1.3.3... 90%
Progress: Downloading chocolatey-core.extension 1.3.3... 100%
Progress: Downloading vscode 1.36.1... 9%
Progress: Downloading vscode 1.36.1... 28%
Progress: Downloading vscode 1.36.1... 48%
Progress: Downloading vscode 1.36.1... 68%
Progress: Downloading vscode 1.36.1... 87%
Progress: Downloading vscode 1.36.1... 100%
Progress: Downloading DotNet4.5.2 4.5.2.20140902... 8%
Progress: Downloading DotNet4.5.2 4.5.2.20140902... 26%
Progress: Downloading DotNet4.5.2 4.5.2.20140902... 43%
Progress: Downloading DotNet4.5.2 4.5.2.20140902... 61%
Progress: Downloading DotNet4.5.2 4.5.2.20140902... 79%
Progress: Downloading DotNet4.5.2 4.5.2.20140902... 97%
Progress: Downloading DotNet4.5.2 4.5.2.20140902... 100%
chocolatey-core.extension v1.3.3 [Approved]
chocolatey-core.extension package files install completed. Performing other installation steps.
Installed/updated chocolatey-core extensions.
The install of chocolatey-core.extension was successful.
Software installed to 'C:\ProgramData\chocolatey\extensions\chocolatey-core'
DotNet4.5.2 v4.5.2.20140902 [Approved]
dotnet4.5.2 package files install completed. Performing other installation steps.
vscode not installed. An error occurred during installation:
Item has already been added. Key in dictionary: 'Path' Key being added: 'PATH'
vscode package files install completed. Performing other installation steps.
The install of vscode was NOT successful.
vscode not installed. An error occurred during installation:
Item has already been added. Key in dictionary: 'Path' Key being added: 'PATH'
Chocolatey installed 2/3 packages. 1 packages failed.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Failures
- vscode (exited 1) - vscode not installed. An error occurred during installation:
Item has already been added. Key in dictionary: 'Path' Key being added: 'PATH'
STDERR:
---- End output of C:\ProgramData\chocolatey/bin/choco.exe install -y vscode ----
Ran C:\ProgramData\chocolatey/bin/choco.exe install -y vscode returned 1
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/mixlib-shellout-2.4.4-universal-mingw32/lib/mixlib/shellout.rb:297:in `invalid!'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/mixlib-shellout-2.4.4-universal-mingw32/lib/mixlib/shellout.rb:284:in `error!'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/chef-14.11.21/lib/chef/mixin/shell_out.rb:202:in `shell_out_compacted!'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/chef-14.11.21/lib/chef/mixin/shell_out.rb:124:in `shell_out!'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/chef-14.11.21/lib/chef/provider/package/chocolatey.rb:174:in `choco_command'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/chef-14.11.21/lib/chef/provider/package/chocolatey.rb:93:in `install_package'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/chef-14.11.21/lib/chef/provider/package.rb:102:in `block (3 levels) in <class:Package>'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/chef-14.11.21/lib/chef/provider/package.rb:269:in `multipackage_api_adapter'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/chef-14.11.21/lib/chef/provider/package.rb:101:in `block (2 levels) in <class:Package>'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/chef-14.11.21/lib/chef/mixin/why_run.rb:51:in `add_action'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/chef-14.11.21/lib/chef/provider.rb:227:in `converge_by'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/chef-14.11.21/lib/chef/provider/package.rb:100:in `block in <class:Package>'
(eval):2:in `block in action_install'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/chef-14.11.21/lib/chef/provider.rb:236:in `instance_eval'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/chef-14.11.21/lib/chef/provider.rb:236:in `compile_and_converge_action'
(eval):2:in `action_install'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/chef-14.11.21/lib/chef/provider.rb:182:in `run_action'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/chef-14.11.21/lib/chef/resource.rb:578:in `run_action'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/chef-14.11.21/lib/chef/runner.rb:70:in `run_action'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/chef-14.11.21/lib/chef/runner.rb:98:in `block (2 levels) in converge'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/chef-14.11.21/lib/chef/runner.rb:98:in `each'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/chef-14.11.21/lib/chef/runner.rb:98:in `block in converge'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/chef-14.11.21/lib/chef/resource_collection/resource_list.rb:94:in `block in execute_each_resource'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/chef-14.11.21/lib/chef/resource_collection/stepable_iterator.rb:114:in `call_iterator_block'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/chef-14.11.21/lib/chef/resource_collection/stepable_iterator.rb:85:in `step'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/chef-14.11.21/lib/chef/resource_collection/stepable_iterator.rb:103:in `iterate'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/chef-14.11.21/lib/chef/resource_collection/stepable_iterator.rb:55:in `each_with_index'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/chef-14.11.21/lib/chef/resource_collection/resource_list.rb:92:in `execute_each_resource'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/2.6.0/forwardable.rb:230:in `execute_each_resource'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/chef-14.11.21/lib/chef/runner.rb:97:in `converge'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/chef-14.11.21/lib/chef/client.rb:720:in `block in converge'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/chef-14.11.21/lib/chef/client.rb:715:in `catch'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/chef-14.11.21/lib/chef/client.rb:715:in `converge'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/chef-14.11.21/lib/chef/client.rb:754:in `converge_and_save'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/chef-14.11.21/lib/chef/client.rb:286:in `run'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/chef-14.11.21/lib/chef/application.rb:303:in `run_with_graceful_exit_option'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/chef-14.11.21/lib/chef/application.rb:279:in `block in run_chef_client'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/chef-14.11.21/lib/chef/local_mode.rb:44:in `with_server_connectivity'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/chef-14.11.21/lib/chef/application.rb:261:in `run_chef_client'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/chef-14.11.21/lib/chef/application/client.rb:444:in `run_application'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/chef-14.11.21/lib/chef/application.rb:66:in `run'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/chef-14.11.21/bin/chef-client:25:in `<top (required)>'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/bin/chef-client:23:in `load'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/bin/chef-client:23:in `<main>'
>>>> Caused by Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of C:\ProgramData\chocolatey/bin/choco.exe install -y vscode ----
STDOUT: Chocolatey v0.10.15
Installing the following packages:
vscode
By installing you accept licenses for the packages.
Progress: Downloading chocolatey-core.extension 1.3.3... 5%
Progress: Downloading chocolatey-core.extension 1.3.3... 15%
Progress: Downloading chocolatey-core.extension 1.3.3... 26%
Progress: Downloading chocolatey-core.extension 1.3.3... 37%
Progress: Downloading chocolatey-core.extension 1.3.3... 47%
Progress: Downloading chocolatey-core.extension 1.3.3... 58%
Progress: Downloading chocolatey-core.extension 1.3.3... 69%
Progress: Downloading chocolatey-core.extension 1.3.3... 80%
Progress: Downloading chocolatey-core.extension 1.3.3... 90%
Progress: Downloading chocolatey-core.extension 1.3.3... 100%
Progress: Downloading vscode 1.36.1... 9%
Progress: Downloading vscode 1.36.1... 28%
Progress: Downloading vscode 1.36.1... 48%
Progress: Downloading vscode 1.36.1... 68%
Progress: Downloading vscode 1.36.1... 87%
Progress: Downloading vscode 1.36.1... 100%
Progress: Downloading DotNet4.5.2 4.5.2.20140902... 8%
Progress: Downloading DotNet4.5.2 4.5.2.20140902... 26%
Progress: Downloading DotNet4.5.2 4.5.2.20140902... 43%
Progress: Downloading DotNet4.5.2 4.5.2.20140902... 61%
Progress: Downloading DotNet4.5.2 4.5.2.20140902... 79%
Progress: Downloading DotNet4.5.2 4.5.2.20140902... 97%
Progress: Downloading DotNet4.5.2 4.5.2.20140902... 100%
chocolatey-core.extension v1.3.3 [Approved]
chocolatey-core.extension package files install completed. Performing other installation steps.
Installed/updated chocolatey-core extensions.
The install of chocolatey-core.extension was successful.
Software installed to 'C:\ProgramData\chocolatey\extensions\chocolatey-core'
DotNet4.5.2 v4.5.2.20140902 [Approved]
dotnet4.5.2 package files install completed. Performing other installation steps.
vscode not installed. An error occurred during installation:
Item has already been added. Key in dictionary: 'Path' Key being added: 'PATH'
vscode package files install completed. Performing other installation steps.
The install of vscode was NOT successful.
vscode not installed. An error occurred during installation:
Item has already been added. Key in dictionary: 'Path' Key being added: 'PATH'
Chocolatey installed 2/3 packages. 1 packages failed.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Failures
- vscode (exited 1) - vscode not installed. An error occurred during installation:
Item has already been added. Key in dictionary: 'Path' Key being added: 'PATH'
STDERR:
---- End output of C:\ProgramData\chocolatey/bin/choco.exe install -y vscode ----
Ran C:\ProgramData\chocolatey/bin/choco.exe install -y vscode returned 1
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/mixlib-shellout-2.4.4-universal-mingw32/lib/mixlib/shellout.rb:297:in `invalid!'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/mixlib-shellout-2.4.4-universal-mingw32/lib/mixlib/shellout.rb:284:in `error!'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/chef-14.11.21/lib/chef/mixin/shell_out.rb:202:in `shell_out_compacted!'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/chef-14.11.21/lib/chef/mixin/shell_out.rb:124:in `shell_out!'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/chef-14.11.21/lib/chef/provider/package/chocolatey.rb:174:in `choco_command'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/chef-14.11.21/lib/chef/provider/package/chocolatey.rb:93:in `install_package'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/chef-14.11.21/lib/chef/provider/package.rb:102:in `block (3 levels) in <class:Package>'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/chef-14.11.21/lib/chef/provider/package.rb:269:in `multipackage_api_adapter'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/chef-14.11.21/lib/chef/provider/package.rb:101:in `block (2 levels) in <class:Package>'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/chef-14.11.21/lib/chef/mixin/why_run.rb:51:in `add_action'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/chef-14.11.21/lib/chef/provider.rb:227:in `converge_by'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/chef-14.11.21/lib/chef/provider/package.rb:100:in `block in <class:Package>'
(eval):2:in `block in action_install'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/chef-14.11.21/lib/chef/provider.rb:236:in `instance_eval'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/chef-14.11.21/lib/chef/provider.rb:236:in `compile_and_converge_action'
(eval):2:in `action_install'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/chef-14.11.21/lib/chef/provider.rb:182:in `run_action'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/chef-14.11.21/lib/chef/resource.rb:578:in `run_action'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/chef-14.11.21/lib/chef/runner.rb:70:in `run_action'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/chef-14.11.21/lib/chef/runner.rb:98:in `block (2 levels) in converge'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/chef-14.11.21/lib/chef/runner.rb:98:in `each'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/chef-14.11.21/lib/chef/runner.rb:98:in `block in converge'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/chef-14.11.21/lib/chef/resource_collection/resource_list.rb:94:in `block in execute_each_resource'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/chef-14.11.21/lib/chef/resource_collection/stepable_iterator.rb:114:in `call_iterator_block'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/chef-14.11.21/lib/chef/resource_collection/stepable_iterator.rb:85:in `step'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/chef-14.11.21/lib/chef/resource_collection/stepable_iterator.rb:103:in `iterate'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/chef-14.11.21/lib/chef/resource_collection/stepable_iterator.rb:55:in `each_with_index'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/chef-14.11.21/lib/chef/resource_collection/resource_list.rb:92:in `execute_each_resource'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/2.6.0/forwardable.rb:230:in `execute_each_resource'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/chef-14.11.21/lib/chef/runner.rb:97:in `converge'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/chef-14.11.21/lib/chef/client.rb:720:in `block in converge'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/chef-14.11.21/lib/chef/client.rb:715:in `catch'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/chef-14.11.21/lib/chef/client.rb:715:in `converge'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/chef-14.11.21/lib/chef/client.rb:754:in `converge_and_save'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/chef-14.11.21/lib/chef/client.rb:286:in `run'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/chef-14.11.21/lib/chef/application.rb:303:in `run_with_graceful_exit_option'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/chef-14.11.21/lib/chef/application.rb:279:in `block in run_chef_client'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/chef-14.11.21/lib/chef/local_mode.rb:44:in `with_server_connectivity'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/chef-14.11.21/lib/chef/application.rb:261:in `run_chef_client'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/chef-14.11.21/lib/chef/application/client.rb:444:in `run_application'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/chef-14.11.21/lib/chef/application.rb:66:in `run'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/lib/ruby/gems/2.6.0/gems/chef-14.11.21/bin/chef-client:25:in `<top (required)>'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/bin/chef-client:23:in `load'
C:/hab/pkgs/stuartpreston/chef-client/14.11.21/20190328012639/bin/chef-client:23:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment