puppet apply有时会失败:无法设置';确保文件存在的目录-/var/lib/puppet/facts

puppet apply有时会失败:无法设置';确保文件存在的目录-/var/lib/puppet/facts,puppet,Puppet,我们使用“puppet apply”来设置新创建的VM实例,但有时它会失败并出现以下错误,即使它在使用同一实例和同一清单文件之前通过了X次: err: /File[/var/lib/puppet/facts]/ensure: change from absent to directory failed: Could not set 'directory on ensure: File exists - /var/lib/puppet/facts Got 1 failure(s) while in

我们使用“puppet apply”来设置新创建的VM实例,但有时它会失败并出现以下错误,即使它在使用同一实例和同一清单文件之前通过了X次:

err: /File[/var/lib/puppet/facts]/ensure: change from absent to directory failed: Could not set 'directory on ensure: File exists - /var/lib/puppet/facts
Got 1 failure(s) while initializing: change from absent to directory failed: Could not set 'directory on ensure: File exists - /var/lib/puppet/facts

因为我还没有找到关于这种错误的任何信息,所以我在这里询问。有人也有这个问题吗?你有什么解决办法吗?

是的,我也有同样的问题


一种解决方法是编写一个脚本来运行
puppet apply
命令5次,这解决了我的问题。

所以这里的问题是僵尸傀儡进程仍在运行。杀死它之后,这个错误再也没有出现过