Issue #12702 has been updated by Markus Frosch.
Here is a workaroud for any Foreman user who has this problem, edit the file
/etc/puppet/node.rb:
<pre>
def build_body(certname,filename)
# Strip the Puppet:: ruby objects and keep the plain hash
facts = File.read(filename)
puppet_facts = YAML::load(facts.gsub(/\!ruby\/object.*$/,''))
hostname = puppet_facts['values']['fqdn'] || certname
# filter any non-printable char from the value, if it is a String
puppet_facts['values'].each do |key, val|
if val.is_a? String
puppet_facts['values'][key] = val.scan(/[[:print:]]/).join
end
end
{'facts' => puppet_facts['values'], 'name' => hostname, 'certname' =>
certname}
end
</pre>
----------------------------------------
Bug #12702: Puppet does not specify encoding when setting up rails database
connection
https://projects.puppetlabs.com/issues/12702#change-100122
* Author: Jan Ziegler
* Status: Accepted
* Priority: Normal
* Assignee:
* Category: stored configuration
* Target version:
* Affected Puppet version: 2.7.10
* Keywords:
* Branch:
----------------------------------------
Hi,
I want to install puppet on Windows Server 2003. I already have a working
Puppetmaster (Scientific Linux).
I installed puppet the way it's explained here:
http://projects.puppetlabs.com/projects/1/wiki/Puppet_Windows
It worked moving files locally via puppet for example.
But when I try to run puppet via Puppetmaster I always get the following Output:
<pre>
notice: Ignoring --listen on onetime run
info: Retrieving plugin
err: /File[C:/Dokumente und Einstellungen/All
Users/Anwendungsdaten/PuppetLabs/puppet/var/lib]:
Failed to generate additional resources using 'eval_generate: Could not
intern_multiple from pson: Paths must be fully qualified
err: /File[C:/Dokumente und Einstellungen/All
Users/Anwendungsdaten/PuppetLabs/puppet/var/lib]:
Could not evaluate: Could not intern from pson: Paths must be fully qualified
Could not retrieve file metadata for puppet://foreman.id.dvag.com/plugins:
Could not intern from pson: Paths must be fully qualified
err: Could not retrieve catalog from remote server: Error 400 on SERVER:
PGError:
ERROR : invalid byte sequence for encoding "UTF8": 0xe46973 :
INSERT INTO "fact_values" ("value", "host_id", "created_at", "fact_name_id",
"updated_at")
VALUES ('Mitteleuropõische Zeit ', 88, '2012-02-16 15:13:29.293099', 28,
'2012-02-16 15:13:29.293099') RETURNING "id"
warning: Not using cache on failed catalog
err: Could not retrieve catalog; skipping run
notice: /File[C:/Dokumente und Einstellungen/All
Users/Anwendungsdaten/PuppetLabs/puppet/var/state/last_run_summary.yaml]/content:
</pre>
But what about the database - UTF8 Problem?
Can you please tell me why I get this error message and what can be done to fix
it?
Thanks
--
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.