【问题标题】:cookbook causing exception when running运行时导致异常的食谱
【发布时间】:2013-10-26 18:57:08
【问题描述】:

谁有安装石墨食谱的运气? 我已经尝试过 opscode 社区一和最新的重水社区一但没有运气 例如当我尝试运行时,heavywater 会出现以下异常:

FATAL: Chef::Exceptions::ResourceNotFound: resource template[/opt/graphite/conf/storage-schemas.conf] is configured to notify resource runit_service[carbon-cache] with action restart, but runit_service[carbon-cache] cannot be found in the resource collection. template[/opt/graphite/conf/storage-schemas.conf] is defined in /root/monitoring/cookbooks/graphite/recipes/carbon_cache.rb:28:in `from_file'

【问题讨论】:

  • 您尝试过其他 Graphite 食谱吗?无耻的自插:github.com/cmur2/chef-graphite - 为了更灵活的配置和理解,我自己写了。
  • Cmur2 我希望使用社区食谱。当社区食谱更新时,这将确保我的可维护性
  • 有充分的理由,您能否提供更多详细信息,例如您正在使用哪些与石墨相关的节点属性等以及更完整的堆栈跟踪错误消息?
  • 更新了相关异常详情的问题
  • 您是否使用 runit 来管理您的操作系统服务?至少 the cookbook 假设了这一点并且之后没有找到 runit - 也许您应该更改 node['graphite']['carbon']['service_type'] 以反映您的偏好。

标签: chef-infra graphite


【解决方案1】:

您很可能在默认位置/opt/graphite/bin/carbon-cache.py 中没有 carbon-cache.py。

【讨论】:

    【解决方案2】:

    我的问题是使用了错误的食谱版本。

    需要使用在创建石墨食谱版本时可用的旧版本的 runit 食谱。

    我使用的是最新版本的 runit。

    不知道人们如何管理说明书版本控制,但我原以为会指定相关说明书的适当版本

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-04-26
      • 2015-01-14
      • 1970-01-01
      • 2017-04-19
      • 2021-07-28
      • 2015-09-17
      • 1970-01-01
      • 2017-09-03
      相关资源
      最近更新 更多