- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我已经安装了最新的 ChefDK 并运行了 Chef 网站上的一个厨房教程。当我运行 kitchen list
时,这是我看到的错误消息:
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ClientError
>>>>>> Message: Could not load the 'vagrant' driver from the load path. Please ensure that your driver is installed as a gem or included in your Gemfile if using Bundler.
>>>>>> ----------------------
>>>>>> Please see .kitchen/logs/kitchen.log for more details
>>>>>> Also try running `kitchen diagnose --all` for configuration
我在这里看到其他问题表明这可能与安装的 kitchen-vagrant gem 的多个版本或不兼容版本有关。当我运行 chef gem list kitchen-vagrant 时,我看到以下内容:
*** LOCAL GEMS ***
kitchen-vagrant (0.20.0)
我已尝试按照其他线程上的指南卸载并重新安装 gem(即安装版本 0.16.0)。然而,这并没有解决问题。
同时运行 chef -v 给我以下信息:
Chef Development Kit Version: 0.18.26
chef-client version: 12.14.89
delivery version: master (d86679335580be3de22996ef294b20d525889d8d)
berks version: ERROR
kitchen version: ERROR
我不知道为什么 berks 和 kitchen 会说这样的错误。我不是 ruby 开发人员,所以我不确定为什么会遇到这个问题。任何帮助将不胜感激。
这也是厨房诊断的结果——如果有帮助的话:
---
timestamp: 2016-09-24 14:18:39 UTC
kitchen_version: 1.13.1
plugins:
error:
exception: "#<Kitchen::ClientError: Could not load the 'vagrant' driver from the
load path. Please ensure that your driver is installed as a gem or included
in your Gemfile if using Bundler.>"
message: Could not load the 'vagrant' driver from the load path. Please ensure
that your driver is installed as a gem or included in your Gemfile if using
Bundler.
backtrace:
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/driver.rb:50:in
`rescue in for_plugin'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/driver.rb:40:in
`for_plugin'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/config.rb:235:in
`new_driver'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/config.rb:248:in
`new_instance'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/config.rb:144:in
`block in build_instances'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/config.rb:143:in
`map'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/config.rb:143:in
`with_index'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/config.rb:143:in
`build_instances'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/config.rb:119:in
`instances'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/command.rb:115:in
`filtered_instances'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/command.rb:145:in
`parse_subcommand'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/command/diagnose.rb:56:in
`load_instances'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/command/diagnose.rb:35:in
`block in call'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/command/diagnose.rb:80:in
`record_failure'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/command/diagnose.rb:35:in
`call'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/cli.rb:56:in
`perform'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/cli.rb:142:in
`diagnose'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/thor-0.19.1/lib/thor/command.rb:27:in
`run'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in
`invoke_command'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/cli.rb:334:in
`invoke_task'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/bin/kitchen:13:in
`block in <top (required)>'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/errors.rb:174:in
`with_friendly_errors'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/bin/kitchen:13:in
`<top (required)>'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/bin/kitchen:23:in `load'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/bin/kitchen:23:in `<main>'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `eval'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `<main>'"
loader:
process_erb: true
process_local: true
process_global: true
global_config:
project_config:
filename: "/Workspace/clique-infrastructure-repo/cookbooks/motd/.kitchen.yml"
raw_data:
driver:
name: vagrant
provisioner:
name: chef_solo
platforms:
- name: ubuntu-14.04
- name: centos-7.2
suites:
- name: default
run_list:
- recipe[motd::default]
attributes:
local_config:
combined_config:
filename:
raw_data:
driver:
name: vagrant
provisioner:
name: chef_solo
platforms:
- name: ubuntu-14.04
- name: centos-7.2
suites:
- name: default
run_list:
- recipe[motd::default]
attributes:
instances:
error:
exception: "#<Kitchen::ClientError: Could not load the 'vagrant' driver from the
load path. Please ensure that your driver is installed as a gem or included
in your Gemfile if using Bundler.>"
message: Could not load the 'vagrant' driver from the load path. Please ensure
that your driver is installed as a gem or included in your Gemfile if using
Bundler.
backtrace:
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/driver.rb:50:in
`rescue in for_plugin'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/driver.rb:40:in
`for_plugin'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/config.rb:235:in
`new_driver'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/config.rb:248:in
`new_instance'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/config.rb:144:in
`block in build_instances'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/config.rb:143:in
`map'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/config.rb:143:in
`with_index'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/config.rb:143:in
`build_instances'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/config.rb:119:in
`instances'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/command.rb:115:in
`filtered_instances'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/command.rb:145:in
`parse_subcommand'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/command/diagnose.rb:56:in
`load_instances'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/command/diagnose.rb:35:in
`block in call'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/command/diagnose.rb:80:in
`record_failure'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/command/diagnose.rb:35:in
`call'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/cli.rb:56:in
`perform'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/cli.rb:142:in
`diagnose'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/thor-0.19.1/lib/thor/command.rb:27:in
`run'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in
`invoke_command'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/cli.rb:334:in
`invoke_task'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/bin/kitchen:13:in
`block in <top (required)>'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/errors.rb:174:in
`with_friendly_errors'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/bin/kitchen:13:in
`<top (required)>'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/bin/kitchen:23:in `load'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/bin/kitchen:23:in `<main>'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `eval'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `<main>'"
这是 chef gem env
的结果:
RubyGems Environment:
- RUBYGEMS VERSION: 2.6.6
- RUBY VERSION: 2.3.1 (2016-04-26 patchlevel 112) [x86_64-darwin13]
- INSTALLATION DIRECTORY: /opt/chefdk/embedded/lib/ruby/gems/2.3.0
- USER INSTALLATION DIRECTORY: /Users/Jaz/.chefdk/gem/ruby/2.3.0
- RUBY EXECUTABLE: /opt/chefdk/embedded/bin/ruby
- EXECUTABLE DIRECTORY: /opt/chefdk/embedded/bin
- SPEC CACHE DIRECTORY: /Users/Jaz/.gem/specs
- SYSTEM CONFIGURATION DIRECTORY: /opt/chefdk/embedded/etc
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-darwin-13
- GEM PATHS:
- /opt/chefdk/embedded/lib/ruby/gems/2.3.0
- /Users/Jaz/.chefdk/gem/ruby/2.3.0
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :backtrace => false
- :bulk_threshold => 1000
- "install" => "--user --no-document"
- "update" => "--user --no-document"
- REMOTE SOURCES:
- https://rubygems.org/
- SHELL PATH:
- /Users/Jaz/.rvm/gems/ruby-2.3.0/bin
- /Users/Jaz/.rvm/gems/ruby-2.3.0@global/bin
- /Users/Jaz/.rvm/rubies/ruby-2.3.0/bin
- /usr/local/bin
- /usr/bin
- /bin
- /usr/sbin
- /sbin
- /Library/gradle-2.8/bin
- /usr/local/mysql/bin
- /Users/Jaz/Library/Android/sdk/platform-tools
- /Users/Jaz/Library/Android/sdk/tools
- /Users/Jaz/.rvm/bin
这是我的 .kitchen/logs/kitchen.log 文件的结果:
E, [2016-09-24T15:35:12.586307 #1273] ERROR -- Kitchen: ------Exception-------
E, [2016-09-24T15:35:12.586384 #1273] ERROR -- Kitchen: Class: Kitchen::ClientError
E, [2016-09-24T15:35:12.586402 #1273] ERROR -- Kitchen: Message: Could not load the 'vagrant' driver from the load path. Please ensure that your driver is installed as a gem or included in your Gemfile if using Bundler.
E, [2016-09-24T15:35:12.586414 #1273] ERROR -- Kitchen: ----------------------
E, [2016-09-24T15:35:12.586425 #1273] ERROR -- Kitchen: ------Backtrace-------
E, [2016-09-24T15:35:12.586435 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/driver.rb:50:in `rescue in for_plugin'
E, [2016-09-24T15:35:12.586446 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/driver.rb:40:in `for_plugin'
E, [2016-09-24T15:35:12.586456 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/config.rb:235:in `new_driver'
E, [2016-09-24T15:35:12.586467 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/config.rb:248:in `new_instance'
E, [2016-09-24T15:35:12.586477 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/config.rb:144:in `block in build_instances'
E, [2016-09-24T15:35:12.586487 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/config.rb:143:in `map'
E, [2016-09-24T15:35:12.586497 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/config.rb:143:in `with_index'
E, [2016-09-24T15:35:12.586507 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/config.rb:143:in `build_instances'
E, [2016-09-24T15:35:12.586517 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/config.rb:119:in `instances'
E, [2016-09-24T15:35:12.586528 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/command.rb:115:in `filtered_instances'
E, [2016-09-24T15:35:12.586538 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/command.rb:145:in `parse_subcommand'
E, [2016-09-24T15:35:12.586548 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/command/list.rb:32:in `call'
E, [2016-09-24T15:35:12.586558 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/cli.rb:56:in `perform'
E, [2016-09-24T15:35:12.586569 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/cli.rb:120:in `list'
E, [2016-09-24T15:35:12.586579 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
E, [2016-09-24T15:35:12.586589 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
E, [2016-09-24T15:35:12.586599 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/cli.rb:334:in `invoke_task'
E, [2016-09-24T15:35:12.586621 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'
E, [2016-09-24T15:35:12.586632 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
E, [2016-09-24T15:35:12.586642 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/bin/kitchen:13:in `block in <top (required)>'
E, [2016-09-24T15:35:12.586653 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/errors.rb:174:in `with_friendly_errors'
E, [2016-09-24T15:35:12.586663 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/bin/kitchen:13:in `<top (required)>'
E, [2016-09-24T15:35:12.586673 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/bin/kitchen:23:in `load'
E, [2016-09-24T15:35:12.586683 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/bin/kitchen:23:in `<main>'
E, [2016-09-24T15:35:12.586698 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `eval'
E, [2016-09-24T15:35:12.586709 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `<main>'
E, [2016-09-24T15:35:12.586719 #1273] ERROR -- Kitchen: ----End Backtrace-----
E, [2016-09-24T15:35:12.586729 #1273] ERROR -- Kitchen: ---Nested Exception---
E, [2016-09-24T15:35:12.586739 #1273] ERROR -- Kitchen: Class: LoadError
E, [2016-09-24T15:35:12.586749 #1273] ERROR -- Kitchen: Message: cannot load such file -- kitchen/driver/vagrant
E, [2016-09-24T15:35:12.586759 #1273] ERROR -- Kitchen: ----------------------
E, [2016-09-24T15:35:12.586768 #1273] ERROR -- Kitchen: ------Backtrace-------
E, [2016-09-24T15:35:12.586778 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/driver.rb:50:in `rescue in for_plugin'
E, [2016-09-24T15:35:12.586788 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/driver.rb:40:in `for_plugin'
E, [2016-09-24T15:35:12.586798 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/config.rb:235:in `new_driver'
E, [2016-09-24T15:35:12.586808 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/config.rb:248:in `new_instance'
E, [2016-09-24T15:35:12.586818 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/config.rb:144:in `block in build_instances'
E, [2016-09-24T15:35:12.586828 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/config.rb:143:in `map'
E, [2016-09-24T15:35:12.586838 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/config.rb:143:in `with_index'
E, [2016-09-24T15:35:12.586848 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/config.rb:143:in `build_instances'
E, [2016-09-24T15:35:12.586858 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/config.rb:119:in `instances'
E, [2016-09-24T15:35:12.586868 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/command.rb:115:in `filtered_instances'
E, [2016-09-24T15:35:12.586878 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/command.rb:145:in `parse_subcommand'
E, [2016-09-24T15:35:12.586889 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/command/list.rb:32:in `call'
E, [2016-09-24T15:35:12.586898 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/cli.rb:56:in `perform'
E, [2016-09-24T15:35:12.586909 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/cli.rb:120:in `list'
E, [2016-09-24T15:35:12.586918 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
E, [2016-09-24T15:35:12.586929 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
E, [2016-09-24T15:35:12.586938 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/cli.rb:334:in `invoke_task'
E, [2016-09-24T15:35:12.586948 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'
E, [2016-09-24T15:35:12.586958 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
E, [2016-09-24T15:35:12.586968 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/bin/kitchen:13:in `block in <top (required)>'
E, [2016-09-24T15:35:12.586978 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/errors.rb:174:in `with_friendly_errors'
E, [2016-09-24T15:35:12.586988 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/bin/kitchen:13:in `<top (required)>'
E, [2016-09-24T15:35:12.587001 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/bin/kitchen:23:in `load'
E, [2016-09-24T15:35:12.587012 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/bin/kitchen:23:in `<main>'
E, [2016-09-24T15:35:12.587021 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `eval'
E, [2016-09-24T15:35:12.587031 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `<main>'
E, [2016-09-24T15:35:12.587041 #1273] ERROR -- Kitchen: ----End Backtrace-----
最佳答案
我遇到了完全相同的问题并尝试遵循在 github 上找到的建议.那没有用。
最后,这就是为我解决问题的方法:
gem install kitchen-wrapper
关于ruby - 无法从加载路径 : Kitchen cannot find kitchen-vagrant's plugin 加载 'vagrant' 驱动程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39677365/
由于我在一个团队中工作,我想让与 vagrant(和 Chef-solo)一起工作的过程尽可能顺利。 当团队中的某人更改厨师食谱、角色或其他任何内容时,我希望所有其他团队成员通过在下一个“Vagran
在学习了几天之后,我很高兴能够成功设置我的 VM 并运行 Laravel 起始页。在那里很开心:) 有人可以澄清“何时”使用 Vagrant 函数。我的问题: 如果我打算关闭我的电脑,你应该使用 ha
如果我更改了配置脚本或更糟的基本操作系统,有没有办法强制 vagrant 重新配置或重新下载基本框?我试图改变 config.vm.box和 config.vm.box_url ,但是 vagrant
默认情况下,vagrant将框提取到用户主驱动器-%HOMEDRIVE%\.vagrant.d\boxes。这是在网络位置上。虽然有利于可靠存储,但速度非常慢。 如何更改盒子的位置? 最佳答案 当然。
我的系统上有许多测试 Vagrant 盒,我正在整理它们。我安装了插件,例如vagrant plugin install vagrant-hostsupdater和vagrant plugin ins
我的系统上有许多测试 Vagrant 盒,我正在整理它们。我安装了插件,例如vagrant plugin install vagrant-hostsupdater和vagrant plugin ins
我在理解他们网站上的 vagrant 工作流程时遇到了一些麻烦。 我之前一直在做一个项目,经历了更改目录和设置 vagrant box 等的整个过程。我什至运行了 bundle install 来安装
我在一个盒子上有一些相当复杂的配置,之后我想以编程方式做等效于 vagrant reload 的事情。 . 我见过的最好的解决方案是 here ,但是该链接上的代码似乎在 Vagrant 1.4+ 上
我无法在 Windows 7 机器上在我们的公司代理后面执行 vagrant up(或 vagrant add)。我尝试过使用和不使用 http_proxy/https_proxy 环境变量。我尝试将
是否可以将配置脚本中的值返回给 vagrant? response = config.vm.provision( "shell", path: "script.sh" ) if response =
这两个 Vagrant 插件有什么区别?我正在使用 vagrant-hostmanager,它可以更新主机上的/etc/hosts 文件,以及 guest 机器上的文件,支持多机 vagrant 设置
我正在使用vagrant和ansible来配置虚拟机,并且工作正常。这个可笑的剧本克隆了一个git repo,安装了它并运行了一个服务守护进程。 我还希望有一个无所事事的命令,该命令执行一个单独的“更
在浏览 Vagrant 教程时,我看到了两种在主机和 guest 计算机之间共享文件夹的选项 - 共享文件夹和同步文件夹。它们之间有什么区别? 或者,在 Vagrant 2 中,同步文件夹是共享文件夹
我在 Vagrant 中遇到同步文件夹的问题。我的配置非常简单: Vagrant.configure(2) do |config| config.vm.box = "ubuntu/xenial64
我正在尝试提供一个主-主MySQL对,并且只有它们都启动时才能正确配置它们。 Vagrant.configure("2") do |config| web.vm.box = "centos/7"
我已经在目录D:\vagrant\precise32\02-lamp\中执行了以下命令(在Windows中,使用Git Bash) $ vagrant box add precise32 http:/
尝试使用 Vagrant 的安装程序在 Windows 7 X64 上安装 Vagrant - vagrant_1.7.0.msi 安装正常,但无法使用 vagrant。在任何命令上,例如 vagra
我想禁用VirtualBox Guest Additions。我不会将它们用于文件夹同步等操作,对于我正在使用的盒子(例如centos / 7),无论如何它们都无法构建。有什么办法告诉流浪汉不要尝试在
我在 VirtualBox 上使用 Vagrant。昨天,我通过运行保存了我的项目的快照: $ vagrant snapshot save 'my-project-date-time' 今天,我对我想
我使用来自 vagrant init 的默认配置配置了 Vagrant (1.7.4)在 OS X (10.11.4) 上使用最新版本的 VirtualBox (5.0.16 r105871) 和最新
我是一名优秀的程序员,十分优秀!