【问题标题】:Chef-Client fails to get the ruby gem during chef provisioningChef-Client 在主厨配置期间未能获得 ruby​​ gem
【发布时间】:2015-05-13 03:43:15
【问题描述】:

我正在关注厨师博客:https://www.chef.io/blog/2014/11/12/chef-provisioning-infrastructure-as-code/ 在尝试命令时 chef-client -z <myenv>.rb,失败并出现以下异常

Running handlers:
[2015-05-12T08:58:25-07:00] ERROR: Running exception handlers
Running handlers complete
[2015-05-12T08:58:25-07:00] ERROR: Exception handlers complete
[2015-05-12T08:58:25-07:00] FATAL: Stacktrace dumped to /scratch/ChefWorkstation/.chef/local-mode-cache/cache/chef-stacktrace.out
Chef Client failed. 0 resources updated in 1.536536008 seconds
[2015-05-12T08:58:25-07:00] ERROR: cannot load such file -- chef/provisioning/docker_driver
[2015-05-12T08:58:27-07:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

如果我尝试, chef gem listchef gem which chef/provisioning/docker_driver 分别显示列出的 gem 和路径

有人可以帮忙吗?

【问题讨论】:

    标签: ruby docker chef-infra


    【解决方案1】:

    问题是因为我以 sudo 运行命令。但是如果我不使用 sudo 我会看到 docker 问题。不过这个问题解决了

    【讨论】:

      猜你喜欢
      • 2020-02-14
      • 1970-01-01
      • 1970-01-01
      • 2015-03-14
      • 1970-01-01
      • 1970-01-01
      • 2013-08-20
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多