Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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

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.1/gems/windows-pr-1.2.2/lib/windows/error.rb:449:in `strip'
C:/Program Files (x86)/Puppet Labs/Puppet/sys/ruby/lib/ruby/gems/1.9.1/gems/windows-pr-1.2.2/lib/windows/error.rb:449:in `get_last_error'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/error.rb:11:in `initialize'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/file.rb:13:in `new'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/file.rb:13:in `replace_file'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/util.rb:465:in `replace_file'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/indirector/json.rb:18:in `save'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/indirector/indirection.rb:202:in `find'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/configurer.rb:254:in `block in retrieve_new_catalog'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/util.rb:354:in `block in thinmark'
C:/Program Files (x86)/Puppet Labs/Puppet/sys/ruby/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/util.rb:353:in `thinmark'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/configurer.rb:253:in `retrieve_new_catalog'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/configurer.rb:69:in `retrieve_catalog'

the full detail ouput is here

In addition, this error seems only happened in window 2k8 r2 enterprise. I tested win7 and win2k8 r2 standard, both of them is ok.

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

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.1/gems/windows-pr-1.2.2/lib/windows/error.rb:449:in `strip'
C:/Program Files (x86)/Puppet Labs/Puppet/sys/ruby/lib/ruby/gems/1.9.1/gems/windows-pr-1.2.2/lib/windows/error.rb:449:in `get_last_error'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/error.rb:11:in `initialize'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/file.rb:13:in `new'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/file.rb:13:in `replace_file'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/util.rb:465:in `replace_file'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/indirector/json.rb:18:in `save'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/indirector/indirection.rb:202:in `find'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/configurer.rb:254:in `block in retrieve_new_catalog'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/util.rb:354:in `block in thinmark'
C:/Program Files (x86)/Puppet Labs/Puppet/sys/ruby/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/util.rb:353:in `thinmark'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/configurer.rb:253:in `retrieve_new_catalog'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/configurer.rb:69:in `retrieve_catalog'

the full detail ouput is here

In addition, this error seems only happened in window 2k8 r2 enterprise. . I tested on win7 and win2k8 r2 standard, both of them is ok.it never happened.