Skip to content

Instantly share code, notes, and snippets.

View jugatsu's full-sized avatar

Anton Kvashenkin jugatsu

View GitHub Profile
Generated at 2016-11-28 16:46:31 +0300
NoMethodError: cab_package[Install EWF] (gf_embedded::default line 13) had an error: NoMethodError: undefined method `[]' for nil:NilClass
C:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.15.19-universal-mingw32/lib/chef/provider/package/cab.rb:81:in `find_version'
C:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.15.19-universal-mingw32/lib/chef/provider/package/cab.rb:76:in `package_version'
C:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.15.19-universal-mingw32/lib/chef/provider/package/cab.rb:34:in `load_current_resource'
C:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.15.19-universal-mingw32/lib/chef/provider.rb:128:in `run_action'
C:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.15.19-universal-mingw32/lib/chef/resource.rb:603:in `run_action'
C:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.15.19-universal-mingw32/lib/chef/runner.rb:69:in `run_action'
C:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.15
---
timestamp: 2016-12-18 09:41:22 UTC
kitchen_version: 1.14.2
plugins:
driver:
Vagrant:
class: Kitchen::Driver::Vagrant
version: 0.21.1
api_version: 2
provisioner:
D ------Exception-------
D Class: Kitchen::ActionFailed
D Message: 1 actions failed.
>>>>>> Failed to complete #converge action: [incompatible character encodings: UTF-8 and ASCII-8BIT] on default-windows2008r2
D ----------------------
D ------Backtrace-------
D /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/test-kitchen-1.14.2/lib/kitchen/command.rb:183:in `report_errors'
D /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/test-kitchen-1.14.2/lib/kitchen/command.rb:174:in `run_action'
D /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/test-kitchen-1.14.2/lib/kitchen/command/action.rb:36:in `block in call'
D /opt/chefdk/embedded/lib/ruby/2.3.0/benchmark.rb:293:in `measure'
---
driver:
name: vagrant
provisioner:
name: chef_zero
require_chef_omnibus: 12.17.44
always_update_cookbooks: true
retry_on_exit_code:
- 35
windows_package 'Ай-ти отдел' do # name changed for demonstration purpose
source 'https://notepad-plus-plus.org/repository/7.x/7.0/npp.7.Installer.exe'
checksum '0155c4ab117d63ba5142fc1090debc07dc7953264f7202ef8d25014e2cf8668d'
action :install
end
D [WinRM] Processing output
Starting Chef Client, version 12.17.44
D [WinRM] Waiting for output...
D [WinRM] Processing output
resolving cookbooks for run list: ["gf_adds::test"]
Synchronizing Cookbooks:
- gf_adds (0.1.0)
Installing Cookbook Gems:
Compiling Cookbooks...
Converging 1 resources
---
driver:
name: vagrant
provisioner:
name: chef_zero
verifier:
name: inspec
ak@ak-pc:~/code/chef/cookbooks/gf_oil$ kitchen converge -l debug
-----> Starting Kitchen (v1.14.2)
D [Vagrant command] BEGIN (vagrant --version)
D [Vagrant command] END (0m0.40s)
D [Vagrant command] BEGIN (vagrant plugin list)
D [Vagrant command] END (0m1.33s)
D Berksfile found at /home/ak/code/chef/cookbooks/gf_oil/Berksfile, loading Berkshelf
D Berkshelf 5.2.0 library loaded
D winrm requested, loading winrm gem (["~> 2.0"])
D winrm is loaded.
Generated at 2016-12-22 14:19:33 +0300
Encoding::UndefinedConversionError: powershell_script[Install Chocolatey] (chocolatey::default line 36) had an error: Encoding::UndefinedConversionError: "\xEF" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to UTF-16LE
C:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/win32-process-0.8.3/lib/win32/process/helper.rb:5:in `encode'
C:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/win32-process-0.8.3/lib/win32/process/helper.rb:5:in `to_wide_string'
C:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/mixlib-shellout-2.2.7-universal-mingw32/lib/mixlib/shellout/windows/core_ext.rb:227:in `create'
C:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/mixlib-shellout-2.2.7-universal-mingw32/lib/mixlib/shellout/windows.rb:80:in `run_command'
C:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/mixlib-shellout-2.2.7-universal-mingw32/lib/mixlib/shellout.rb:259:in `run_command'
C:/Users/vagrant/AppData/Local/Temp/kitchen/cache/cookbooks/chocolatey/libraries/helpers.rb:29:in `chocolatey_i
---
- hosts: windows
gather_facts: true
tasks:
- name: Ensure Chef Client package is present.
win_package:
name: Chef Client
path: https://packages.chef.io/files/stable/chef/12.17.44/windows/2008r2/chef-client-12.17.44-1-x64.msi