像这样运行厨师客户端:
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
答案 0 :(得分:0)
你有一个ld预加载设置强制打开所有进程中的“libsnoopy”。从github看来,它似乎是一种简单的审计工具。无论出于何种原因,该文件未加载,因此需要检查。尝试从预加载配置中删除它。还要检查/home
是否存在并且安装正确。