简体   繁体   English

Windows 2008 x86上的刀引导程序静音失败

[英]knife bootstrap silent fail on windows 2008 x86

I use knife bootstrap on windows 2008 x86 server is silent fail. 我在Windows 2008 x86服务器上使用小刀引导程序失败。 It created windows batch file, but the batch file not executed and return code is 0. 它创建了Windows批处理文件,但该批处理文件未执行,返回码为0。

the version info is 版本信息是

knife-windows version:1.4.1 winrm version:1.8.1 刀-Windows版本:1.4.1 Winrm版本:1.8.1

and after digging, I think found that. 经过挖掘,我认为发现了这一点。 on knife-windows source code lib/chef/knife/winrm_session.rb "relay_command" method 在Windows Server上的源代码lib / chef / knife / winrm_session.rb“ relay_command”方法

remote_id = @winrm_session.open_shell
command_id = @winrm_session.run_command(remote_id, command)

=> it's not run batch file. =>它没有运行批处理文件。 just exit code is 0, and run other command is OK 只需退出代码为0,然后运行其他命令就可以了

@winrm_session.create_executor do |executor|
  executor.run_cmd(cmd) do |stdout, stderr|
     Chef::Log.info(cmdstdout)
     Chef::Log.error(cmdstderr)
  end
end

=> it's ok to run batch file. =>可以运行批处理文件。 but lt's bad idea because can't get real time log 但是这是个坏主意,因为无法获取实时日志

sound like the it is winrm_session run_command bug. 听起来像是winrm_session run_command错误。 but I'm not sure. 但我不确定。 how to fix this? 如何解决这个问题?

thanks. 谢谢。

它是通过https://github.com/chef/knife-windows/pull/389修复的,因此,当将knife-windows更新到最新版本时,就可以了。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在Windows 7 x86上安装Thin的问题 - Problems installing Thin on windows 7 x86 在Windows 7 x86上使用Ruby安装OpenSSL for eventmachine - Install OpenSSL with Ruby for eventmachine on Windows 7 x86 尝试用小刀Windows引导Windows客户端的Chef的问题 - Issues trying to bootstrap Chef for windows client with knife-windows 在Windows 8上安装heroku toolbelt时出错:无法执行文件C:\\ Program Files(x86)\\ Heroku \\ ruby​​-1.9.3 \\ bin \\ gem.bat - Error while installing heroku toolbelt on Windows 8: Unable to execute file C:\Program Files(x86)\Heroku\ruby-1.9.3\bin\gem.bat 刀引导节点窗口时如何绕过最新的chef-client-client - how to bypass download chef-client-latest when knife bootstrap a node windows Watir不会安装XP x86或Win 7 x64。 获取错误为FFI gem构建原生扩展 - Watir will not install with XP x86 or Win 7 x64. Getting error building native extension for the FFI gem 厨师/刀引导json属性的优先顺序是什么 - what is the precedence for chef/knife bootstrap json attributes 从 mac x86 切换到 arm m1 架构,我遇到了这个错误,有人知道如何解决吗? - Switching from a mac x86 to arm m1 architecture, i ran into this error, anyone knows how fix it? 如何在Windows上将rubygems平台从x86-mingw32更改为x86-mswin32-60 - How to change rubygems platform from x86-mingw32 to x86-mswin32-60 on windows 本地红宝石宝石无法在Windows 2008R2上安装:Errno :: EADDRNOTAVAIL - Local ruby gems fail to install on Windows 2008R2: Errno::EADDRNOTAVAIL
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM