FAQ
A colleague of mine had a similar issue. When he ran it, the first time it
failed and the second time it succeeds.

We noticed that his init.pp under modules/manifest doesn't contain a class.
By adding an empty class, e.g. class xyz { }, solved the issue.
On Saturday, February 25, 2012 2:11:36 PM UTC-5, Mike Knell wrote:

Hey folks,

I've got a fairly basic out-of-the-box puppetmaster/puppet setup (out
of the box on Ubuntu, that is), but am running into a bit of an odd
problem with updating clients.

The first time a host runs Puppet, and every time I change anything in
the configs on the server, the agent has to run once and abort for
each included class (module, thing..) on the machine I'm trying to
configure before it finally just works after 'n' tries and everything
works fine.

I've tried to Google this, asked some colleagues with Puppet smarts,
and not come up with any useful hints. Anyone got any idea what's
going on here? See below for a sample run of (multiple) attempts.

Cheers,
Mike

# puppet agent --test
err: Could not retrieve catalog from remote server: Error 400 on
SERVER: Could not find class unix for hostname.uffish.net at
/etc/puppet/manifests/templates.pp:2 on node hostname.uffish.net
warning: Not using cache on failed catalog
err: Could not retrieve catalog; skipping run
# puppet agent --test
err: Could not retrieve catalog from remote server: Error 400 on
SERVER: Could not find class users for hostname.uffish.net at
/etc/puppet/manifests/templates.pp:3 on node hostname.uffish.net
warning: Not using cache on failed catalog
err: Could not retrieve catalog; skipping run
# puppet agent --test
err: Could not retrieve catalog from remote server: Error 400 on
SERVER: Could not find class ntp for hostname.uffish.net at
/etc/puppet/manifests/templates.pp:8 on node hostname.uffish.net
warning: Not using cache on failed catalog
err: Could not retrieve catalog; skipping run
# puppet agent --test
err: Could not retrieve catalog from remote server: Error 400 on
SERVER: Could not find class bind for hostname.uffish.net at
/etc/puppet/manifests/templates.pp:9 on node hostname.uffish.net
warning: Not using cache on failed catalog
err: Could not retrieve catalog; skipping run
# puppet agent --test
err: Could not retrieve catalog from remote server: Error 400 on
SERVER: Could not find class squid for hostname.uffish.net at
/etc/puppet/manifests/templates.pp:24 on node hostname.uffish.net
warning: Not using cache on failed catalog
err: Could not retrieve catalog; skipping run
# puppet agent --test
info: Caching catalog for hostname.uffish.net
(from here on in, runs normally)
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/b453e637-4067-4c0b-903a-907cb75a7973%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppuppet-users @
categoriespuppet
postedDec 13, '13 at 11:38p
activeDec 13, '13 at 11:38p
posts1
users1
websitepuppetlabs.com

1 user in discussion

Jules: 1 post

People

Translate

site design / logo © 2022 Grokbase