Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Function Call, undefined method `top_of_stack' for Puppet::Pops::PuppetStack:Module

asked 2018-06-04 19:06:03 -0500

bschonecker gravatar image

updated 2018-06-05 07:56:48 -0500

DarylW gravatar image

Suddenly and without any reason that I see (yet), I'm getting this error when I run puppet agent.

It started off as an error on my puppet server. I noticed that the puppet server can't print/use/see FACTS in a manifest but "facter hostname" for example works. If I use $::hostname in a manifest, the fact is nil/empty/undefined.

I did a "puppet generate types --environment=production" and the error about 'top_of_stack' has now spread to all of my clients.

I'm using puppet open source using R10k for deployments:

My puppet server:

[root@puppet environments]# rpm -qa | grep puppet | sort




I'm not sure if this is helpful:

 puppet generate types --environment=production
Notice: Generating Puppet resource types.
Error: /etc/puppetlabs/code/environments/production/modules/registry/lib/puppet/type/registry_key.rb: title patterns that use procs are not supported.
Error: /etc/puppetlabs/code/environments/production/modules/registry/lib/puppet/type/registry_value.rb: title patterns that use procs are not sup
edit retag flag offensive close merge delete


I solved a similar issue by updating puppetserver. Perhaps restarting puppetserver also helps?

qingbo gravatar imageqingbo ( 2018-06-11 02:06:00 -0500 )edit