Mixlib::Install::Options::InvalidOptions: Unknown architecture the. on Windows Server 2016
Open
Nobody has claimed this yet.
- Dominant language
- Ruby
- Stars
- 13
- Forks
- 55
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 8
Description
Version:
3.11
Environment:
- Used as part of chef_client_updater cookbook
- Running on Windows Server 2016
Scenario:
Fails to update chef_client because mixlib::Install returns an invalid architecture:
Mixlib::Install::Options::InvalidOptions
----------------------------------------
Unknown architecture the.
Must be one of: aarch64, i386, powerpc, ppc64, ppc64le, s390x, sparc, x86_64
Steps to Reproduce:
Unknown.
Expected Result:
Should return x86_64 as the architecture.
Actual Result:
================================================================================
Error executing action `update` on resource 'chef_client_updater[Install latest Chef]'
================================================================================
Mixlib::Install::Options::InvalidOptions
----------------------------------------
Unknown architecture the.
Must be one of: aarch64, i386, powerpc, ppc64, ppc64le, s390x, sparc, x86_64
Cookbook Trace:
---------------
c:/chef/cache/cookbooks/chef_client_updater/providers/default.rb:125:in `new'
c:/chef/cache/cookbooks/chef_client_updater/providers/default.rb:125:in `mixlib_install'
c:/chef/cache/cookbooks/chef_client_updater/providers/default.rb:156:in `desired_version'
c:/chef/cache/cookbooks/chef_client_updater/providers/default.rb:168:in `update_necessary?'
c:/chef/cache/cookbooks/chef_client_updater/providers/default.rb:462:in `block in class_from_file'
Resource Declaration:
---------------------
# In c:/chef/cache/cookbooks/POP_Base/recipes/default.rb
10: chef_client_updater 'Install latest Chef' do
11: version '14'
12: end
13:
Compiled Resource:
------------------
# Declared in c:/chef/cache/cookbooks/POP_Base/recipes/default.rb:10:in `from_file'
chef_client_updater("Install latest Chef") do
action [:update]
default_guard_interpreter :default
declared_type :chef_client_updater
cookbook_name "POP_Base"
recipe_name "default"
version "14"
end
System Info:
------------
chef_version=13.8.5
platform=windows
platform_version=10.0.14393
ruby=ruby 2.4.3p205 (2017-12-14 revision 61247) [x64-mingw32]
program_name=C:/opscode/chef/bin/chef-client
executable=C:/opscode/chef/bin/chef-client
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Mixlib::Install call at c:/chef/cache/cookbooks/chef_client_updater/providers/default.rb:125 and trace how the architecture value is obtained on Windows Server 2016. Reproduce the chef_client_updater update if possible, then verify that the reported architecture is x86_64 instead of "the."
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ruby
- Domain
- operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100