0

当我的厨师客户间歇运行时,它会引发此错误,并且在不同步任何食谱的情况下退出。但是如果我手动调用它,它会在我的提示中起作用。知道如何解决吗?

[2014-02-26T11:58:12+00:00] INFO: Forking chef instance to converge...
[2014-02-26T11:58:12+00:00] INFO: *** Chef 11.10.4 ***
[2014-02-26T11:58:12+00:00] INFO: Chef-client pid: 7880
[2014-02-26T11:58:13+00:00] INFO: Run List is [role[TestingRolesAs_Main]]
[2014-02-26T11:58:13+00:00] INFO: Run List expands to [some cookbooks here, chef-client]
[2014-02-26T11:58:13+00:00] INFO: Starting Chef Run for 
[2014-02-26T11:58:13+00:00] INFO: Running start handlers
[2014-02-26T11:58:13+00:00] INFO: Start handlers complete.
[2014-02-26T11:58:13+00:00] INFO: HTTP Request Returned 404 Object Not Found: 
[2014-02-26T11:58:13+00:00] INFO: Loading cookbooks [chef-client, cron, listpackages, logrotate, s247agentinstall, s247cleanup, servermonitoragent]
[2014-02-26T11:58:13+00:00] ERROR: Running exception handlers
[2014-02-26T11:58:13+00:00] ERROR: Exception handlers complete
[2014-02-26T11:58:13+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2014-02-26T11:58:13+00:00] ERROR: couldn't find HOME environment -- expanding `~'
[2014-02-26T11:58:13+00:00] ERROR: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
[2014-02-26T11:58:13+00:00] ERROR: Sleeping for 300 seconds before trying again
4

1 回答 1

0

~/something您在食谱中的某个位置设置了一些路径。

当 Chef 作为守护程序运行时,它会在最小的 shell 环境中执行此操作,其中HOME可能未设置变量,因此无法展开~

于 2014-02-26T15:06:44.120 回答