hiera_include failing with undefined method "cached_file_data"

285 views
Skip to first unread message

Daniel Urist

unread,
Mar 13, 2017, 12:53:50 PM3/13/17
to puppet-users
So, this just started happening on all my  nodes following upgrade to puppet-agent 1.9.3-1jessie on my puppet master:

root@nweb8:/# puppet agent -t 
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: {"message":"Server Error: Evaluation Error: Error while evaluating a Function Call, undefined method `cached_file_data' for #<Puppet::Pops::Lookup::Context:0x2c24d9> at /etc/puppetlabs/code/environments/production/manifests/site.pp:48:3 on node nweb8.ucar.edu","issue_kind":"RUNTIME_ERROR","stacktrace":["Warning: The 'stacktrace' property is deprecated and will be removed in a future version of Puppet. For security reasons, stacktraces are not returned with Puppet HTTP Error responses."]}

The relevant code in my site.pp is this:

node default {
  hiera_include('bogusplaceholder', "roles::${role}")
}

According to the docs, the hiera_include function should still be supported.

Daniel Urist

unread,
Mar 13, 2017, 1:10:39 PM3/13/17
to puppet-users
I've tried replacing the call to hiera_include() with a call to include() like this (per https://docs.puppet.com/puppet/latest/function.html#hierainclude) , but that results in the same error:

include( lookup("roles::${role}", {'merge' => 'unique' }) )

Daniel Urist

unread,
Mar 13, 2017, 1:27:04 PM3/13/17
to puppet-users
Fixed by restarting puppetserver per https://tickets.puppetlabs.com/browse/PUP-7337

It looks like the debian packages are missing a restart trigger: https://tickets.puppetlabs.com/browse/PA-681
Reply all
Reply to author
Forward
0 new messages