Ask Your Question

Uninitialized Constant on custom Function

asked 2015-09-24 23:20:09 -0600

flyinbutrs gravatar image

updated 2015-09-25 08:49:14 -0600

I've got a function that I'm trying to run on my puppetmaster on each client run. It runs just fine on the puppetmaster itself, but it causes the agent runs to fail on the nodes because of the following error:

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: uninitialized constant Puppet::Parser::Functions::<my_module>

I'm not really sure why. I enabled debug logging on the master via, but I see the same error in the logs with no more useful messages.

What other steps can I take to debug this?

Update: Answering questions from @sahumphries

Puppet Community, with Foreman connected Puppetmaster running on Apache2 with Passenger / Rack

Both client and master are running Puppet 3.7.5

Both client and master are Ubuntu 14.04

Both client and master are using Ruby 1.9.3p484 (2013-11-22 revision 43786) [x86_64-linux]

Pluginsync is enabled

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-09-25 03:41:54 -0600

updated 2015-09-25 03:42:52 -0600

stupid question of mine - I'm assuming you're not running puppet enterprise;

do you have same versions of puppet on master and client?

do you have the same ruby versions on master and client?

is pluginsync enabled ?

edit flag offensive delete link more


Hi, I put my updates into the question above. Thanks!

flyinbutrs gravatar imageflyinbutrs ( 2015-09-25 08:49:46 -0600 )edit

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: 2015-09-24 23:20:09 -0600

Seen: 119 times

Last updated: Sep 25 '15