[Pkg-puppet-devel] Bug#723188: Bug#723188: puppetmaster: Non-ASCII characters in manifests break catalogs

Roland Mas lolando at debian.org
Tue Sep 17 11:49:31 UTC 2013


Stig Sandbeck Mathisen, 2013-09-17 12:38:00 +0200 :

> On Tue, Sep 17, 2013 at 09:50:13AM +0200, Roland Mas wrote:
>> My site.pp is encoded in UTF-8, and it contains non-ASCII characters
>> (French in comments).  Now the clients refuse to talk to it:
>> 
>> root at smiragdine:~# puppet agent --test
>> Info: Retrieving plugin
>> Error: Could not retrieve catalog from remote server: Error 400 on
>> SERVER: Could not parse for environment production: invalid byte
>> sequence in US-ASCII at /etc/puppet/manifests/site.pp:1 on node
>> smiragdine.placard.fr.eu.org
>> Warning: Not using cache on failed catalog
>> Error: Could not retrieve catalog; skipping run
>> 
>> I had seen this behaviour previously, and I had managed to work
>> around it by restarting puppetmaster while my locale was effectively
>> fr_FR.utf8.  It may be related to the recent upgrade to 3.3.0 that
>> this workaround no longer works; I can't pinpoint it directly, since
>> I don't run puppet as a daemon (I rather trigger the pulls with a
>> custom script).
>
> If you are using plain "puppetmaster", try setting and exporting the
> environment in the init script, or in /etc/default/puppetmaster

Done already, doesn't seem to work:

,----
| $ cat /etc/default/puppetmaster 
| # Defaults for puppetmaster - sourced by /etc/init.d/puppetmaster
| 
| # Start puppetmaster on boot?
| START=yes
| 
| # Startup options.
| DAEMON_OPTS=""
| 
| export LANG=en_GB.UTF-8
| roland at polymir ~ $ ssh miraxxe sudo run-puppet.sh
| err: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not parse for environment production: invalid byte sequence in US-ASCII at /etc/puppet/manifests/site.pp:1 on node miraxxe.gnurandal.net
| warning: Not using cache on failed catalog
| err: Could not retrieve catalog; skipping run
| roland at polymir ~ $ ssh miraxxe cat /usr/local/sbin/run-puppet.sh
| #! /bin/sh
| 
| puppet agent --test
| roland at polymir ~ $ 
`----

Roland.
-- 
Roland Mas

Just a little bit of you every day will surely keep the doctors away.
  -- Just a little bit of you (The Jackson Five)



More information about the Pkg-puppet-devel mailing list