使用厨师omnibus安装石墨

时间:2013-05-31 19:46:15

标签: chef graphite

我正在尝试使用厨师安装石墨。我是厨师的新手,对工作很不了解。 我正在使用厨师版(10.24.4)。当我尝试在客户端安装石墨时出现以下错误。

================================================================================
Error executing action `touch` on resource 'file[/var/lib/mysql/mysql.sock]'
================================================================================

Errno::ENXIO
------------
No such device or address - /var/lib/mysql/mysql.sock

Resource Declaration:
---------------------
# In /var/chef/cache/cookbooks/graphite-mysql/recipes/default.rb

 37:     file mysqld_file do
 38:         action :touch
 39:    retries 4
 40:    retry_delay 100
 41:         owner mysqld_user
 42:         group "root" 
 43:         mode "0774" 
 44:     end
 45: end

Compiled Resource:
------------------
# Declared in /var/chef/cache/cookbooks/graphite-mysql/recipes/default.rb:37:in `block in from_file'

file("/var/lib/mysql/mysql.sock") do
  provider Chef::Provider::File
  action [:touch]
  retries 0
  retry_delay 100
  path "/var/lib/mysql/mysql.sock"
  backup 5
  cookbook_name "graphite-mysql"
  recipe_name "default"
  owner "root"
  group "root"
  mode "0774"
end

[2013-05-31T13:41:52-05:00] ERROR: Running exception handlers
[2013-05-31T13:41:52-05:00] FATAL: Saving node information to /var/chef/cache/failed-run-data.json
[2013-05-31T13:41:52-05:00] ERROR: Exception handlers complete
[2013-05-31T13:41:52-05:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2013-05-31T13:41:52-05:00] FATAL: Errno::ENXIO: file[/var/lib/mysql/mysql.sock] (graphite-mysql::default line 37) had an error: Errno::ENXIO: No such device or address - /var/lib/mysql/mysql.sock

我明确尝试在客户端触摸mysql.sock文件,它工作正常。我无法理解究竟是什么导致了这个问题。真诚地感谢任何帮助。

提前致谢!

1 个答案:

答案 0 :(得分:0)

你使用的是厨师10而不是厨师11,所以chef-solo没有选择metadata.rb中指定的依赖项。厨师11的一个重大改进就是它会做到这一点。

基本上这本食谱要求在它之前运行mysql cookbook,或者在发生这种情况之前以某种方式设置mysql。