Issue #22563 has been reported by Luke Alexander.

----------------------------------------
Bug #22563: 3.2.4 invalid byte sequence in US-ASCII for extlookup variables
https://projects.puppetlabs.com/issues/22563

* Author: Luke Alexander
* Status: Unreviewed
* Priority: Normal
* Assignee: 
* Category: 
* 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:

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

Line 7 from params.pp is an extlookup variable:

$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

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.

Reply via email to