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

puppet-agent-5.5.1-1.el7.x86_64

puppetdb-termini-5.2.1-1.el7.noarch

puppetserver-5.3.0-1.el7.noarch

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

Comments

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

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