Ask Your Question

Error: Could not retrieve catalog from remote server

asked 2015-09-28 08:27:29 -0600

dhirenp gravatar image
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Puppet::Parser::AST::Resource failed with error ArgumentError: Could not find declared class java at /etc/puppetlabs/puppet/environments/cicd_205067_pro/modules/jenkins/manifests/init.pp:177 on node

I keep getting this error on my new agent that i just registered to master. I had tested this module on another agent and it works. Can anybody help me with understanding this error and what might be missing in terms of configuration on agent or master?

Dependency is specified in my puppetfile

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-10-02 02:48:32 -0600

alexandre gravatar image

What is on line 177 of /etc/puppetlabs/puppet/environments/cicd205067pro/modules/jenkins/manifests/init.pp ?

Probably something like:

include java
# or maybe
class { 'java': ... }

If that's the case, then it means you have no class 'java' in your set of modules.

Are you using a module? Maybe this one:

Then you should install it with this command to execute on your puppet master machine:

puppet module install puppetlabs-java
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: 2015-09-28 08:27:29 -0600

Seen: 918 times

Last updated: Sep 28 '15