Ask Your Question

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 -0600

bschonecker gravatar image

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

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 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2018-08-02 02:44:28 -0600

joshc gravatar image

The top_of_stack issue is almost certainly due to updating the puppet-agent package on the server, but not restarting the puppetserverprocess. See

The puppet generate typeserror is unrelated. The registry module title patterns issue was fixed in

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2018-06-04 19:06:03 -0600

Seen: 569 times

Last updated: Aug 02