Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/windows/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在windows上的测试厨房错误中安装busser serverspec插件_Windows_Test Kitchen_Serverspec - Fatal编程技术网

在windows上的测试厨房错误中安装busser serverspec插件

在windows上的测试厨房错误中安装busser serverspec插件,windows,test-kitchen,serverspec,Windows,Test Kitchen,Serverspec,kitchen verify命令将在windows平台上抛出以下命令。我不知道该从哪个gem开始调试以修复此问题 在我的windows主机上安装的gems: 厨房用杵(0.4.0) 食盐(0.0.22) 厨房流浪汉(0.19.0) 测试厨房(1.5.0) winrm(1.6.0) winrm-s(0.3.4) winrm传输(1.0.3) C:\kitchen salt tutorial\beaver formula>kitchen验证默认值 ----->启动厨房(v1.5.0) -----

kitchen verify
命令将在windows平台上抛出以下命令。我不知道该从哪个gem开始调试以修复此问题

在我的windows主机上安装的gems:

厨房用杵(0.4.0)
食盐(0.0.22)
厨房流浪汉(0.19.0)
测试厨房(1.5.0)
winrm(1.6.0)
winrm-s(0.3.4)
winrm传输(1.0.3)

C:\kitchen salt tutorial\beaver formula>kitchen验证默认值
----->启动厨房(v1.5.0)
----->验证。。。
准备要传输的文件
安装Busser插件:Busser serverspec
$$$$$$&;:术语“C:\opscode\chef\embedded\bin\ruby.exe”不被识别为
$$$$$$$cmdlet、函数、脚本文件或可操作程序的名称。检查
$$$$$$名称拼写,或者如果包含路径,请验证路径是否正确
$$$$$$请更正,然后重试。
$$$$$$第13行字符:8
$$$$$$$+如果(&;“$ruby”“$gem”列表总线-i)-ne“true”){
$$$$$$ +        ~~~~~~~
$$$$$$+类别信息:ObjectNotFound:(C:\opscode\chef\embedded\bin\ru)
$$$$$by.exe:String)[],CommandNotFoundException
$$$$$+FullyQualifiedErrorId:CommandNotFoundException
$$$$$$
$$$$$&;:术语“C:\opscode\chef\embedded\bin\ruby.exe”不被识别为
$$$$$$$cmdlet、函数、脚本文件或可操作程序的名称。请检查
$$$$$$名称拼写,或者如果包含路径,请验证路径是否正确
$$$$$$请更正,然后重试。
$$$$$$第21行字符:19
$$$$$+$gem\u bindir=&;“$ruby”-rrubygems-e”放置gem.bindir.dup.gsub(“/”,“\\”)”
$$$$$$ +                   ~~~~~~~
$$$$$$+类别信息:ObjectNotFound:(C:\opscode\chef\embedded\bin\ru)
$$$$$by.exe:String)[],CommandNotFoundException
$$$$$+FullyQualifiedErrorId:CommandNotFoundException
$$$$$$
$$$$$&;:术语“C:\opscode\chef\embedded\bin\ruby.exe”不被识别为
$$$$$$$cmdlet、函数、脚本文件或可操作程序的名称。请检查
$$$$$$名称拼写,或者如果包含路径,请验证路径是否正确
$$$$$$请更正,然后重试。
$$$$$$第22行字符:5
$$$$$$+&;“$ruby”“$gem\u bindir\busser”设置--键入bat 2&;1
$$$$$$ +     ~~~~~~~
$$$$$$+类别信息:ObjectNotFound:(C:\opscode\chef\embedded\bin\ru)
$$$$$by.exe:String)[],CommandNotFoundException
$$$$$+FullyQualifiedErrorId:CommandNotFoundException
$$$$$$
$$$$$&;:术语“C:\Users\vagrant\AppData\Local\Temp\verifier\bin\busser.bat”是
$$$$$$$无法识别为cmdlet、函数、脚本文件或脚本文件的名称
$$$$$$程序。请检查名称的拼写,或者如果包含路径,请验证
$$$$$$请确认路径正确,然后重试。
$$$$$$第26行字符:3
$$$$$$+&;“$busser”插件安装$plugins.Split()2&;1
$$$$$$ +   ~~~~~~~~~
$$$$$$+CategoryInfo:ObjectNotFound:(C:\Users\vagran…\bin\busser.b)
$$$$$$at:String)[],CommandNotFoundException
$$$$$+FullyQualifiedErrorId:CommandNotFoundException
>>>>>>在实例上验证失败。
>>>>>>有关更多详细信息,请参阅.kitchen/logs/default-windows-2012r2.log
>>>>>>----例外-------
>>>>>>类:Kitchen::ActionFailed
>>>>>>消息:WinRM已退出(1)以获取命令:[
$env:BUSSER_ROOT=“$env:TEMP\verifier”
$env:GEM_HOME=“$env:TEMP\verifier\gems”
$env:GEM_PATH=“$env:TEMP\verifier\gems”
$env:GEM\u CACHE=“$env:TEMP\verifier\gems\CACHE”
$ruby=“$env:systemdrive\opscode\chef\embedded\bin\ruby.exe”
$gem=“$env:systemdrive\opscode\chef\embedded\bin\gem”
$version=“busser”
$gem\u install\u args=“busser--no-rdoc--no-ri--no-format-executable-n$env:TEMP\verifier\bin--无用户安装”
$busser=“$env:TEMP\verifier\bin\busser.bat”
$plugins=“busser服务器规范”`

这是由于在聚合期间尝试安装chefdk而不是chef客户端造成的。文档中的
chef_omnibus_url
选项说明它不是omnibus安装程序,而是chef客户端

  • ChefDK路径-
    C:\opscode\ChefDK\embedded\bin\ruby.exe
  • Chef客户端路径-
    C:\opscode\Chef\embedded\bin\ruby.exe
C:\kitchen-salt-tutorial\beaver-formula>kitchen verify default
-----> Starting Kitchen (v1.5.0)
-----> Verifying <default-windows-2012r2>...
       Preparing files for transfer
       Installing Busser plugins: busser-serverspec

$$$$$$ &amp; : The term 'C:\opscode\chef\embedded\bin\ruby.exe' is not recognized as the
$$$$$$ name of a cmdlet, function, script file, or operable program. Check the
$$$$$$ spelling of the name, or if a path was included, verify that the path is
$$$$$$ correct and try again.
$$$$$$ At line:13 char:8
$$$$$$ + if ((&amp; "$ruby" "$gem" list busser -i) -ne "true") {
$$$$$$ +        ~~~~~~~
$$$$$$     + CategoryInfo          : ObjectNotFound: (C:\opscode\chef\embedded\bin\ru
$$$$$$    by.exe:String) [], CommandNotFoundException
$$$$$$     + FullyQualifiedErrorId : CommandNotFoundException
$$$$$$
$$$$$$ &amp; : The term 'C:\opscode\chef\embedded\bin\ruby.exe' is not recognized as the
$$$$$$ name of a cmdlet, function, script file, or operable program. Check the
$$$$$$ spelling of the name, or if a path was included, verify that the path is
$$$$$$ correct and try again.
$$$$$$ At line:21 char:19
$$$$$$ +   $gem_bindir = &amp; "$ruby" -rrubygems -e "puts Gem.bindir.dup.gsub('/', '\\')"
$$$$$$ +                   ~~~~~~~
$$$$$$     + CategoryInfo          : ObjectNotFound: (C:\opscode\chef\embedded\bin\ru
$$$$$$    by.exe:String) [], CommandNotFoundException
$$$$$$     + FullyQualifiedErrorId : CommandNotFoundException
$$$$$$
$$$$$$ &amp; : The term 'C:\opscode\chef\embedded\bin\ruby.exe' is not recognized as the
$$$$$$ name of a cmdlet, function, script file, or operable program. Check the
$$$$$$ spelling of the name, or if a path was included, verify that the path is
$$$$$$ correct and try again.
$$$$$$ At line:22 char:5
$$$$$$ +   &amp; "$ruby" "$gem_bindir\busser" setup --type bat 2&gt;&amp;1
$$$$$$ +     ~~~~~~~
$$$$$$     + CategoryInfo          : ObjectNotFound: (C:\opscode\chef\embedded\bin\ru
$$$$$$    by.exe:String) [], CommandNotFoundException
$$$$$$     + FullyQualifiedErrorId : CommandNotFoundException
$$$$$$
$$$$$$ &amp; : The term 'C:\Users\vagrant\AppData\Local\Temp\verifier\bin\busser.bat' is
$$$$$$ not recognized as the name of a cmdlet, function, script file, or operable
$$$$$$ program. Check the spelling of the name, or if a path was included, verify
$$$$$$ that the path is correct and try again.
$$$$$$ At line:26 char:3
$$$$$$ + &amp; "$busser" plugin install $plugins.Split() 2&gt;&amp;1
$$$$$$ +   ~~~~~~~~~
$$$$$$     + CategoryInfo          : ObjectNotFound: (C:\Users\vagran...\bin\busser.b
$$$$$$    at:String) [], CommandNotFoundException
$$$$$$     + FullyQualifiedErrorId : CommandNotFoundException
>>>>>> Verify failed on instance <default-windows-2012r2>.
>>>>>> Please see .kitchen/logs/default-windows-2012r2.log for more details
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: WinRM exited (1) for command: [
$env:BUSSER_ROOT = "$env:TEMP\verifier"
$env:GEM_HOME = "$env:TEMP\verifier\gems"
$env:GEM_PATH = "$env:TEMP\verifier\gems"
$env:GEM_CACHE = "$env:TEMP\verifier\gems\cache"
$ruby = "$env:systemdrive\opscode\chef\embedded\bin\ruby.exe"
$gem = "$env:systemdrive\opscode\chef\embedded\bin\gem"
$version = "busser"
$gem_install_args = "busser --no-rdoc --no-ri --no-format-executable -n $env:TEMP\verifier\bin --no-user-install"
$busser = "$env:TEMP\verifier\bin\busser.bat"
$plugins = "busser-serverspec"`