linux - root 用户的 Chef 客户端权限被拒绝

标签 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-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 是否存在且已正确安装。

关于linux - root 用户的 Chef 客户端权限被拒绝,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36530846/

相关文章:

java - 如何暂时禁用 JVM 网络连接

c# - Linux 上的 MonoDevelop 失败 "Unknown MSBuild Failure"

在多个服务器上进行 Git pull

ubuntu-12.04 - Vagrant 不能需要 log4r

github - 在 Chef 中部署私有(private)存储库 : What am I doing wrong with my deploy key?

chef-infra - 以非 root 用户身份运行 Chef 客户端

c - 带有MSG_TRUNC的Linux TCP recv()-写入缓冲区?

linux - 在 awk 命令 shell 中使用日期

c++ - GtkTreeView 列标题点击事件

mysql - Chef-solo 和 vagrant 在安装后自动运行 MySql 脚本?