Issue #22563 has been updated by Luke Alexander.
Yes indeed we do have passenger running the puppetmaster via apache and inside the init script is the line: ENV="env -i LANG=C PATH=/usr/local/bin:/usr/bin:/bin" This is with apache version: 2.2.22-13 (on wheezy) However, the same env line exists on a squeeze server running apache version: 2.2.16-6+squeeze10 and that does not suffer the same issue with extlookup. I'm not sure what the correct thing to do is then, 'fix' the init script or 'fix' extlookup.rb? Either way I'm changing files from packages which I generally try to avoid. Thanks Luke ---------------------------------------- Bug #22563: 3.2.4 invalid byte sequence in US-ASCII for extlookup variables https://projects.puppetlabs.com/issues/22563#change-98251 * Author: Luke Alexander * Status: Needs More Information * Priority: Normal * Assignee: Luke Alexander * Category: utf8 * Target version: * Affected Puppet version: 3.2.4 * Keywords: * Branch: ---------------------------------------- I have a bug with a recently upgraded puppet master, when I run the puppet client on the master we get this error: <pre> puppet agent -vt --debug > /root/debug.log Warning: Local environment: "production" doesn't match server specified node environment "dr", switching agent to "dr". Error: Could not retrieve catalog from remote server: Error 400 on SERVER: invalid byte sequence in US-ASCII at /etc/puppet/modules/vendor/apt/manifests/params.pp:7 on node guadalupe.dr.brandwatch.net Warning: Not using cache on failed catalog Error: Could not retrieve catalog; skipping run </pre> Line 7 from params.pp is an extlookup variable: <pre> $reposerver = extlookup(“reposerver”) reposerver from extdata evaluates to a fqdn of our repo server I can work around this problem by adding the below lines to the top of /usr/lib/ruby/vendor_ruby/puppet/parser/functions/extlookup.rb Encoding.default_external = Encoding::UTF_8 Encoding.default_internal = Encoding::UTF_8 </pre> I guess that is not the correct fix, though. This on Debian Wheezy with: ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux] puppet 3.2.4 facter 1.6.7 I've attached the debug log. Regards, Luke -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/groups/opt_out.
