Friday, July 12, 2013

Puppet error: Error 400 on SERVER: Could not find class

After building a puppet module, I was receiving the following error:

jemurray@ubuntu:~$ puppet agent --test
err: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find class copyFile for at /etc/puppet/manifests/site.pp:1 on node
warning: Not using cache on failed catalog
err: Could not retrieve catalog; skipping run

The problem was the module directory name.   You can't have upper case.   Change the module name 'copyFile' from upper case to lower case 'copyfile' and try again:

jemurray@ubuntu:~$ sudo puppet agent --test
[sudo] password for jemurray:
info: Caching catalog for
info: Applying configuration version '1373689458'
notice: Finished catalog run in 0.03 seconds

Reference site here

No comments:

Post a Comment