Linux 对根用户的chef客户端权限被拒绝

Linux 对根用户的chef客户端权限被拒绝,linux,chef-infra,Linux,Chef Infra,按如下方式运行chef客户端: root@chef-production-server:~# chef-client -j /etc/chef/first-boot.json 输出: Starting Chef Client, version 12.8.1 [2016-04-10T14:11:12+00:00] INFO: *** Chef 12.8.1 *** [2016-04-10T14:11:12+00:00] INFO: Chef-client pid: 8556 [2016-04-1

按如下方式运行chef客户端:

root@chef-production-server:~# chef-client -j /etc/chef/first-boot.json
输出:

Starting Chef Client, version 12.8.1
[2016-04-10T14:11:12+00:00] INFO: *** Chef 12.8.1 ***
[2016-04-10T14:11:12+00:00] INFO: Chef-client pid: 8556
[2016-04-10T14:11:13+00:00] INFO: Setting the run_list to ["recipe[sensu_client::default@0.1.0]", "recipe[simple_server::application_server_recipe@0.1.2]", "recipe[mongodb::default@0.16.2]"] from CLI options
[2016-04-10T14:11:13+00:00] INFO: Run List is [recipe[sensu_client::default@0.1.0], recipe[simple_server::application_server_recipe@0.1.2], recipe[mongodb::default@0.16.2]]
ERROR: ld.so: object '/usr/local/lib/libsnoopy.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
bla bla bla

cannot create directory ‘/home/jenkins/.rvm’: Permission denied
它以前起过作用,现在不起作用了。也试过

 sudo chef-client -j /etc/chef/first-boot.json

您已将ld preload设置为在所有进程中强制打开“libsnoopy”。从github来看,似乎是某种简单的审计工具。无论出于何种原因,该文件未加载,因此需要进行检查。尝试从预加载配置中删除它。还要检查
/home
是否存在并正确安装