0
我在Redhat Linux 7.2中安装了ChefDK rpm软件包。厨师独奏未在redhat linux中运行
chef-solo --version
命令提供了正确的版本(Chef: 12.19.36
)。
现在,我尝试使用下面的厨师独奏命令来运行我的食谱:
chef-solo --override-runlist "recipe[demo_cookbook::default]"
但我收到以下错误消息:
"Chef encountered an error attempting to load the node data for <my server name>"
Unknown Server Error:
---------------------
The server had a fatal error attempting to load the node data.
/opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/chef-12.19.36/bin/chef-solo:25:in `<top (required)>'
/usr/bin/chef-solo:57:in `load'
/usr/bin/chef-solo:57:in `<main>'
Platform:
---------
x86_64-linux
Exception raised! #<Errno::ENOENT: No such file or directory @ dir_s_mkdir - /var/chef/nodes>
/opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/chef-12.19.36/lib/chef/chef_fs/file_system/repository/chef_repository_file_system_root_dir.rb:113:in `mkdir'
可否请你建议我什么现在可以做什么?
他抱怨缺少目录项的条目。你的文件系统中有'/ var/chef/nodes'吗? – Alfe
我没有/ var/chef/nodes。但是我们需要创建吗?之间我使用厨师独奏 – Arun
堆栈溢出是编程和开发问题的网站。这个问题似乎与题目无关,因为它不涉及编程或开发。请参阅帮助中心的[我可以询问哪些主题](http://stackoverflow.com/help/on-topic)。也许[超级用户](http://superuser.com/)或[Unix&Linux堆栈交换](http://unix.stackexchange.com/)会是一个更好的地方。 – jww