Bug#723188: [Pkg-puppet-devel] Bug#723188: puppetmaster: Non-ASCII characters in manifests break catalogs
On Tue, 17 Sep 2013 13:49:31 +0200 Roland Mas lola...@debian.org wrote: [...] , | $ 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 If you're using passenger, put this line in /etc/apache2/envvars instead. WFM. Regards Mathieu -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#723188: [Pkg-puppet-devel] Bug#723188: puppetmaster: Non-ASCII characters in manifests break catalogs
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@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 When using puppetmaster-passenger 3.3.0, I set export LANG=C.UTF-8 in /etc/apache2/envvars to make the puppet master handle my UTF-8 characters in manifests. I think that C.UTF-8 should probably be the default setting for puppet master, US-ASCII is rather limited. -- Stig -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#723188: [Pkg-puppet-devel] Bug#723188: puppetmaster: Non-ASCII characters in manifests break catalogs
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@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@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@polymir ~ $ ssh miraxxe cat /usr/local/sbin/run-puppet.sh | #! /bin/sh | | puppet agent --test | roland@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) -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org