Re: [Puppet Users] Errors in 2.6.1

Héctor Rivas Gándara
Mon, 06 Sep 2010 09:35:05 -0000

On Sat, Sep 4, 2010 at 10:44 PM, Douglas Garstang
<doug.garstang@gmail.com> wrote:

> Can someone tell me why, when I restart puppet on the client, I get this:
>
> Sep  4 20:41:49 s_sys@db01.pax.livegamer.com puppet-agent[26756]:
> Could not retrieve catalog from remote server: Error 400 on SERVER:
> Syntax error at '';''; expected ''}'' at
> /etc/puppet/modules/oracle/manifests/server/environment.pp:40 on node
> db01.pax.livegamer.com

I think that the problem is the .pp files end of line format and
enconding. It should be latin1 and (the most important) UNIX like end
of lines == "\n", not "\r\n" like in Windows files.

Check ALL the .pp files, not only the one that reports failure. Using
Windows end of lines will cause completely random errors in random
files.
If you have a Windows formated .pp file somewhere it could make it
fail, even if you don''t use it!!

--
Atentamente
Héctor Rivas