Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

32 bit Windows claiming to be 64 bit #1549

Closed
jmink opened this issue Jun 25, 2014 · 0 comments · Fixed by #1560
Closed

32 bit Windows claiming to be 64 bit #1549

jmink opened this issue Jun 25, 2014 · 0 comments · Fixed by #1560
Labels
Type: Bug Does not work as expected.

Comments

@jmink
Copy link
Contributor

jmink commented Jun 25, 2014

From @sersut

On Windows Server 2003 R2 and Windows 2008 (both 32 bit) the following spec fails:

20) Chef::Resource::PowershellScript when executing guards evaluates a powershell     $false for a not_if block as true
     Failure/Error: resource.should_skip?(:run).should be_false
     Chef::Exceptions::Win32ArchitectureIncorrect:
       powershell_script[Guard resource] (dynamically defined) had an error:     Chef::Exceptions::Win32ArchitectureIncorrect: Support for the i386 architecture from a 64-    bit Ruby runtime is not yet implemented
     # C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.14.0.alpha.5-x86-mingw32/lib/chef/provider/windows_script.rb:40:in `initialize'
     # C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.14.0.alpha.5-x86-mingw32/lib/chef/provider/powershell_script.rb:59:in `initialize'
     # C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.14.0.alpha.5-x86-mingw32/lib/chef/platform/provider_mapping.rb:454:in `new'
     # C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.14.0.alpha.5-x86-mingw32/lib/chef/platform/provider_mapping.rb:454:in `provider_for_resource'
     # C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.14.0.alpha.5-x86-mingw32/lib/chef/resource.rb:682:in `provider_for_action'
     # C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.14.0.alpha.5-x86-mingw32/lib/chef/resource.rb:648:in `run_action'
     # C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.14.0.alpha.5-x86-mingw32/lib/chef/guard_interpreter/resource_guard_interpreter.rb:62:in `evaluate_action'
     # C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.14.0.alpha.5-x86-mingw32/lib/chef/guard_interpreter/resource_guard_interpreter.rb:51:in `evaluate'
     # C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.14.0.alpha.5-x86-mingw32/lib/chef/resource/conditional.rb:79:in `evaluate_command'
     # C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.14.0.alpha.5-x86-mingw32/lib/chef/resource/conditional.rb:75:in `evaluate'
     # C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.14.0.alpha.5-x86-mingw32/lib/chef/resource/conditional.rb:68:in `continue?'
     # C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.14.0.alpha.5-x86-mingw32/lib/chef/resource.rb:710:in `block in should_skip?'
     # C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.14.0.alpha.5-x86-mingw32/lib/chef/resource.rb:709:in `each'
     # C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.14.0.alpha.5-x86-mingw32/lib/chef/resource.rb:709:in `find'
     # C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.14.0.alpha.5-x86-mingw32/lib/chef/resource.rb:709:in `should_skip?'
     # C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.14.0.alpha.5-x86-mingw32/spec/functional/resource/powershell_spec.rb:240:in `block (3 levels) in <top (required)>' 

The issue might be: https://github.com/opscode/chef/blob/master/lib/chef/mixin/windows_architecture_helper.rb#L67

@thommay thommay added Type: Bug Does not work as expected. and removed Bug labels Jan 25, 2017
@chef chef locked and limited conversation to collaborators Nov 16, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Type: Bug Does not work as expected.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants