root 用户的 chef-client 权限被拒绝

chef-client permission denied on root user

运行主厨客户是这样的:

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 预加载设置为强制打开 "libsnoopy"。从 github 看来,它似乎是某种简单的审计工具。无论出于何种原因,该文件都没有加载,因此需要检查一下。尝试从预加载配置中删除它。还要检查 /home 是否存在并正确安装。