Ask Your Question

Error 400 on SERVER: Could not find class for Puppet

asked 2015-06-18 12:33:06 -0500

updated 2015-06-23 10:59:26 -0500

I've seen several posts and solution for this problem, I tried many of them but still i am not able to solve it.
Please help!

I am using puppet 3.7.5 which is not installed via yum due to network restriction, so i downloaded the required packages from another server and successfully installed them, all the stuff (Puppet server, dashboard and agent on client machine) are working fine.

But, when i am trying to run puppet I am getting this error everytime I created the weblogic module with one simple test init.pp file with one simple class - but it's not working.

I tried creating/configuring weblogic directory inside /etc/puppet/modules and then /etc/puppet/ but it didn't work

I tried with changing permissions of modules directory to puppet:puppet and with root:root, but it didn't work!

On Agent side :

[root@pclient ~]# puppet agent --test --verbose
Info: Retrieving pluginfacts
Info: Retrieving plugin
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find class weblogic at /etc/puppet/manifests/site.pp:4 on node pclient
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
edit retag flag offensive close merge delete


Can you add "--debug --trace" to the puppet agent arguments and post a link to a pastebin of the output? I don't see anything immediately wrong with the code, so there must be something else strange going on. Please post a link to your puppet.conf file, too.

GregLarkin gravatar imageGregLarkin ( 2015-06-19 19:21:09 -0500 )edit

Hi Greg, Thanks for your reply and sorry for the delay. As suggested, I have attached the logs in and the passwd is puppet Please could you help in resolving this issue. Thanks in advance

scm_questor gravatar imagescm_questor ( 2015-06-20 21:21:04 -0500 )edit

What is the output of "puppet module list"?

GregLarkin gravatar imageGregLarkin ( 2015-06-20 22:52:19 -0500 )edit

i faced the same problem and still facing it, i only turned around temporally by importing the class file to my manifest. my puppet module list output shows my class since i'd created metadata file for it.

Anwar gravatar imageAnwar ( 2015-06-22 02:04:30 -0500 )edit

Hi Greg - Thanks again and sorry for the delay. please find the below output - it shows the module name but with question marks in bracket and dont know why its not working [root@pmaster ~]# puppet module list /etc/puppet/modules âââ weblogic (???) /usr/share/puppet/modules (no modules installed)

scm_questor gravatar imagescm_questor ( 2015-06-22 05:59:00 -0500 )edit

1 Answer

Sort by » oldest newest most voted

answered 2015-06-24 12:00:42 -0500

Strangely but when i tried to install puppet master on another machine, it worked fine there. I tried to find out the difference with the existing installation but couldn't find any.

So, i removed everything on the main puppet master and re-installed and configured everything from scratch and now its working fine :)

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



Asked: 2015-06-18 12:33:06 -0500

Seen: 2,964 times

Last updated: Jun 24 '15