Andy Spiegl
2014-Jan-29 18:13 UTC
[Puppet Users] Finally found workaround for problem with German windows clients
A while ago I asked here for solutions with windows and puppet 3.x I always got this error during the agent run:> Could not intern from pson: "\xE4" on US-ASCIIAfter trying and debugging for a long time I finally found the right comment in the right bug report: http://projects.puppetlabs.com/issues/12702 https://tickets.puppetlabs.com/browse/PUP-1225 The problem is/was that in a German Windows facter answers with German umlauts in windows-1250 character set instead of UTF-8. This is something Puppet can't handle and quits. C:\Program Files (x86)\Puppet Labs\Puppet\bin>facter timezone Mitteleurop\344ische Zeit In the bug report the user comment describes an (ugly) workaround to this: One has to patch this file (on ALL client PCs!): C:/Program Files (x86)/Puppet Labs/Puppet/facter/lib/facter/timezone.rb ---------------------------- + Iconv.iconv("UTF-8", "windows-1250",Time.new.zone) - Time.new.zone ---------------------------- After doing that the puppet agent finally runs without throwing errors. \o/ Hopefully this will be fixed upstream soon. The bug is 2 years old! HTHH someone, Andy. -- People with courage and character always seem sinister to the rest. (Hermann Hesse) -- 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/20140129181343.GA3072%40spiegl.de. For more options, visit https://groups.google.com/groups/opt_out.