Skip to content

Instantly share code, notes, and snippets.

@smalleni
Created November 2, 2015 19:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smalleni/ef579fd61567a3de8fb5 to your computer and use it in GitHub Desktop.
Save smalleni/ef579fd61567a3de8fb5 to your computer and use it in GitHub Desktop.
==> default: +ActiveScenario={11E4C8F3-425E-43B9-B689-8BFDF03342E2}
==> default: * powershell_script[convert unattend.ini to unicode] action run
==> default: - execute "C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe" -NoLogo -NonInteractive -NoProfile -ExecutionPolicy Unrestricted -InputFormat None -File "C:/Users/vagrant/AppData/Local/Temp/chef-script20151102-2312-jxxxrt.ps1"
==> default: * windows_package[Microsoft Visual Studio 2010 Professional - ENU] action install[2015-11-02T19:46:06+00:00] INFO: Installing windows_package[Microsoft Visual Studio 2010 Professional - ENU] version latest
==> default: [2015-11-02T19:46:06+00:00] INFO: Starting installation...this could take awhile.
==> default:
==> default: ================================================================================
==> default: Error executing action `install` on resource 'windows_package[Microsoft Visual Studio 2010 Professional - ENU]'
==> default: ================================================================================
==> default:
==> default: Mixlib::ShellOut::ShellCommandFailed
==> default: ------------------------------------
==> default: Expected process to exit with [0, 127, 3010], but received '-1'
==> default: ---- Begin output of start "" /wait "c:\var\chef\cache\2010\professional\setup\setup.exe" /unattendfile "c:\var\chef\cache\2010\professional\unattend.ini" & exit %%ERRORLEVEL%% ----
==> default: STDOUT:
==> default: STDERR:
==> default: ---- End output of start "" /wait "c:\var\chef\cache\2010\professional\setup\setup.exe" /unattendfile "c:\var\chef\cache\2010\professional\unattend.ini" & exit %%ERRORLEVEL%% ----
==> default: Ran start "" /wait "c:\var\chef\cache\2010\professional\setup\setup.exe" /unattendfile "c:\var\chef\cache\2010\professional\unattend.ini" & exit %%ERRORLEVEL%% returned -1
==> default:
==> default: Cookbook Trace:
==> default: ---------------
==> default: C:/vagrant-chef/a36eb49a3e2b092a73471435321ef4cc/cookbooks/windows/libraries/windows_package.rb:109:in `install_package'
==> default: C:/vagrant-chef/a36eb49a3e2b092a73471435321ef4cc/cookbooks/windows/libraries/windows_package.rb:31:in `block in <class:WindowsCookbookPackage>'
==> default:
==> default: Resource Declaration:
==> default: ---------------------
==> default: # In C:\vagrant-chef\a36eb49a3e2b092a73471435321ef4cc\cookbooks\visualstudio\providers\edition.rb
==> default:
==> default: 48: windows_package new_resource.package_name do
==> default: 49: source installer_exe
==> default: 50: installer_type :custom
==> default: 51: options setup_options
==> default: 52: timeout 3600 # 1hour
==> default: 53: success_codes [0, 127, 3010]
==> default: 54: end
==> default: 55:
==> default:
==> default: Compiled Resource:
==> default: ------------------
==> default: # Declared in C:\vagrant-chef\a36eb49a3e2b092a73471435321ef4cc\cookbooks\visualstudio\providers\edition.rb:48:in `block (2 levels) in class_from_file'
==> default:
==> default: windows_package("Microsoft Visual Studio 2010 Professional - ENU") do
==> default: provider Chef::Provider::WindowsCookbookPackage
==> default: action [:install]
==> default: retries 0
==> default: retry_delay 2
==> default: default_guard_interpreter :default
==> default: declared_type :windows_package
==> default: cookbook_name :visualstudio
==> default: source "c:\\var\\chef\\cache\\2010\\professional/setup/setup.exe"
==> default: installer_type :custom
==> default: options "/unattendfile \"c:\\var\\chef\\cache\\2010\\professional\\unattend.ini\""
==> default: package_name "Microsoft Visual Studio 2010 Professional - ENU"
==> default: success_codes [0, 127, 3010]
==> default: timeout 3600
==> default: end
==> default:
==> default: [2015-11-02T19:46:08+00:00] INFO: Running queued delayed notifications before re-raising exception
==> default:
==> default: Running handlers:
==> default: [2015-11-02T19:46:08+00:00] ERROR: Running exception handlers
==> default: Running handlers complete
==> default: [2015-11-02T19:46:08+00:00] ERROR: Exception handlers complete
==> default: Chef Client failed. 15 resources updated in 07 minutes 10 seconds
==> default: [2015-11-02T19:46:08+00:00] FATAL: Stacktrace dumped to c:/var/chef/cache/chef-stacktrace.out
==> default: [2015-11-02T19:46:08+00:00] FATAL: Mixlib::ShellOut::ShellCommandFailed: windows_package[Microsoft Visual Studio 2010 Professional - ENU] (C:\vagrant-chef\a36eb49a3e2b092a73471435321ef4cc\cookbooks\visualstudio\providers\edition.rb line 48) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0, 127, 3010], but received '-1'
==> default: ---- Begin output of start "" /wait "c:\var\chef\cache\2010\professional\setup\setup.exe" /unattendfile "c:\var\chef\cache\2010\professional\unattend.ini" & exit %%ERRORLEVEL%% ----
==> default: STDOUT:
==> default: STDERR:
==> default: ---- End output of start "" /wait "c:\var\chef\cache\2010\professional\setup\setup.exe" /unattendfile "c:\var\chef\cache\2010\professional\unattend.ini" & exit %%ERRORLEVEL%% ----
==> default: Ran start "" /wait "c:\var\chef\cache\2010\professional\setup\setup.exe" /unattendfile "c:\var\chef\cache\2010\professional\unattend.ini" & exit %%ERRORLEVEL%% 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