Issue #21751 has been updated by Charlie Sharpsteen. Category set to utf8 Status changed from Needs More Information to Duplicate
If there are non-ASCII characters in the comments, then this is a duplicate of #11303 and setting `LC_CTYPE` as you did is our recommended environment setting for UTF-8 data. This was working on PE 2.8.1 without the environment adjustment because the 2.8 line of PE releases uses Ruby 1.8.x which does not consider character encodings when performing string operations. PE 3.0 uses ruby 1.9.x which will fail with an error if any operation is attempted on two strings with a different encoding. Setting `LC_CTYPE` should take care of any issues with UTF-8 in comments. However, I would strongly caution against using non-ASCII characters in actual puppet code as Puppet currently does not fully support UTF-8. A list of known issues along with our plans for implementing full UTF-8 support can be found in ticket #20522. For a specific example of an issue that arises from using non-ASCII characters in Puppet code see ticket #19295. The issue described there with User information being returned as raw un-encoded strings cannot be solved by setting environment variables or other global Ruby settings for default string encodings. ---------------------------------------- Bug #21751: Error 400 on SERVER: "\xC5" on US-ASCII on tring to retrive catalog by puppet agent https://projects.puppetlabs.com/issues/21751#change-94882 * Author: Krzysztof SuszyĆski * Status: Duplicate * Priority: Normal * Assignee: Charlie Sharpsteen * Category: utf8 * Target version: * Affected Puppet version: 3.2.2 * Keywords: * Branch: ---------------------------------------- After installation of Puppet Enterprise 3.0.0 on CentOS 6.4 box: http://puppet-vagrant-boxes.puppetlabs.com/centos-64-x64-vbox4210-nocm.box running all puppet agent fails (on all nodes the same errors): <pre> [root@puppetmaster ~]# puppet agent -t Info: Retrieving plugin Error: /File[/var/opt/lib/pe-puppet/lib]: Failed to generate additional resources using 'eval_generate: Error 400 on SERVER: "\xC5" on US-ASCII Error: /File[/var/opt/lib/pe-puppet/lib]: Could not evaluate: Error 400 on SERVER: "\xC5" on US-ASCII Could not retrieve file metadata for puppet://puppetmaster.vm/plugins: Error 400 on SERVER: "\xC5" on US-ASCII Info: Loading facts in /etc/puppetlabs/puppet/modules/concat/lib/facter/concat_basedir.rb Info: Loading facts in /etc/puppetlabs/puppet/modules/postgresql/lib/facter/postgres_default_version.rb Info: Loading facts in /opt/puppet/share/puppet/modules/stdlib/lib/facter/pe_version.rb Info: Loading facts in /opt/puppet/share/puppet/modules/stdlib/lib/facter/facter_dot_d.rb Info: Loading facts in /opt/puppet/share/puppet/modules/stdlib/lib/facter/puppet_vardir.rb Info: Loading facts in /opt/puppet/share/puppet/modules/stdlib/lib/facter/root_home.rb Info: Loading facts in /opt/puppet/share/puppet/modules/firewall/lib/facter/iptables_persistent_version.rb Info: Loading facts in /opt/puppet/share/puppet/modules/firewall/lib/facter/ip6tables_version.rb Info: Loading facts in /opt/puppet/share/puppet/modules/firewall/lib/facter/iptables_version.rb Info: Loading facts in /opt/puppet/share/puppet/modules/auth_conf/lib/facter/custom_auth_conf.rb Info: Loading facts in /opt/puppet/share/puppet/modules/concat/lib/facter/concat_basedir.rb Info: Loading facts in /opt/puppet/share/puppet/modules/pe_puppetdb/lib/facter/puppetdb_server_status.rb Info: Loading facts in /opt/puppet/share/puppet/modules/postgresql/lib/facter/postgres_default_version.rb Info: Loading facts in /opt/puppet/share/puppet/modules/pe_common/lib/facter/windows.rb Info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/pe_version.rb Info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/windows.rb Info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/puppetdb_server_status.rb Info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/iptables_persistent_version.rb Info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/custom_auth_conf.rb Info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/concat_basedir.rb Info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/facter_dot_d.rb Info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/puppet_vardir.rb Info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/postgres_default_version.rb Info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/root_home.rb Info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/ip6tables_version.rb Info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/iptables_version.rb Error: Could not retrieve catalog from remote server: Error 400 on SERVER: "\xC5" on US-ASCII on node puppetmaster.vm Warning: Not using cache on failed catalog Error: Could not retrieve catalog; skipping run </pre> Error can be fixed by: * adding: `export LC_CTYPE=en_US.UTF-8` to `/etc/profile` * runing: `service pe-httpd restart` Also reported by other users on IRC channel (Ubuntu/Debian): > mmoll: yes. I use passenger und so I have to set it in /etc/apache2/envvars > (on Debian/Ubuntu), no idea about your setup :) -- 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.
