Ask Your Question
0

Error: Could not retrieve catalog from remote server: invalid byte sequence in US-ASCII

asked 2013-12-16 04:47:17 -0500

dalang gravatar image

updated 2013-12-17 02:43:01 -0500

I upgrade my puppet agent from 3.1.1 to 3.3.2. The puppet agent is running on window 2k8 r2 enterprise service pack 1. When I execute the command "puppet agent -t", a error raised as below:

Error: Could not retrieve catalog from remote server: invalid byte sequence in US-ASCII.

I get a lot of error info after run "puppet agent -t --debug --trace", the following is what I think helpful:

Error: Could not retrieve catalog from remote server: invalid byte sequence in US-ASCII
C:/Program Files (x86)/Puppet Labs/Puppet/sys/ruby/lib/ruby/gems/1.9 ...
(more)
edit retag flag offensive close merge delete

Comments

May be it is a bug in windows-pr 1.2.2 gem. Currently, I commented out `buf.strip` in method named get_last_error in error.rb (...\Puppet Labs\Puppet\sys\ruby ...(more)

dalang gravatar imagedalang ( 2013-12-17 02:50:12 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2014-02-20 11:59:53 -0500

joshc gravatar image

Could you file a ticket at https://tickets.puppetlabs.com/browse/PUP and include the stack trace? Also the full detail output seems to have expired. Do you have another copy?

edit flag offensive delete link more
0

answered 2014-03-21 09:55:56 -0500

you can force the puppetmaster to use UTF-8 editing the file /usr/share/puppet/rack/puppetmasterd/config.ru adding Encoding.defaultexternal = Encoding::UTF8

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2013-12-16 04:47:17 -0500

Seen: 1,420 times

Last updated: Mar 21 '14