![Puppet/Hiera:服务器上出现错误 400:未定义 Hiera::Backend:Module 的方法“empty_answer”](https://linux22.com/image/615322/Puppet%2FHiera%EF%BC%9A%E6%9C%8D%E5%8A%A1%E5%99%A8%E4%B8%8A%E5%87%BA%E7%8E%B0%E9%94%99%E8%AF%AF%20400%EF%BC%9A%E6%9C%AA%E5%AE%9A%E4%B9%89%20Hiera%3A%3ABackend%3AModule%20%E7%9A%84%E6%96%B9%E6%B3%95%E2%80%9Cempty_answer%E2%80%9D.png)
我让 Puppet Master 运行了相当长一段时间。最近重新启动该进程后,我开始收到以下信息:
# puppet agent -t
info: Retrieving plugin
info: Loading facts in /var/lib/puppet/lib/facter/mountpoints.rb
info: Loading facts in /var/lib/puppet/lib/facter/pe_version.rb
info: Loading facts in /var/lib/puppet/lib/facter/concat_basedir.rb
info: Loading facts in /var/lib/puppet/lib/facter/disks.rb
info: Loading facts in /var/lib/puppet/lib/facter/root_home.rb
info: Loading facts in /var/lib/puppet/lib/facter/puppet_vardir.rb
err: Could not retrieve catalog from remote server: Error 400 on SERVER: undefined method `empty_answer' for Hiera::Backend:Module at /etc/puppet/environments/production/modules/sshauthkeys/manifests/helper.pp:2
如果我跑
hiera -c /etc/puppet/hiera.yaml <key>
它按预期工作。知道这可能是什么吗?
我正在运行 puppet 2.7、hiera 1.2.1 和 hiera-puppet 1.0.0
亲切的问候,
克里斯蒂安