Issue #17297 has been updated by Cliff Wells.
Status changed from Closed to Re-opened
Ran into a similar issue. The problem was caused by having the following in a
manifest:
$bighash = custom_function_that_generates_a_big_hash()
notify { "${bighash}": } # check output for debugging
In state.yaml, the string representation of the hash showed up as an invalid
YAML key. Fixed by hand-editing state.yaml to remove the offending key. The key
appeared to be properly escaped, so I assume it was the sheer length of the key
(1700+ chars) that caused the YAML parser to choke. Perhaps a check should be
run and truncate such keys before writing them to state.yaml.
----------------------------------------
Bug #17297: "Error: Could not run: can't convert Puppet::Util::Log into
Integer" in Puppet 3.0 on Ubuntu 12.10
https://projects.puppetlabs.com/issues/17297#change-99058
* Author: Claude Durocher
* Status: Re-opened
* Priority: Normal
* Assignee:
* Category:
* Target version:
* Affected Puppet version: 3.0.0
* Keywords:
* Branch:
----------------------------------------
Running "puppet agent -t" on Ubuntu 12.10 with puppet 3.0.0 and ruby 1.9.3p194
(2012-04-20 revision 35410), I get the following error message
<pre>
...
Debug: Using settings: adding file resource 'lastrunfile':
'File[/var/lib/puppet/state/last_run_summary.yaml]{:path=>"/var/lib/puppet/state/last_run_summary.yaml",
:mode=>"644", :ensure=>:file, :loglevel=>:debug, :links=>:follow,
:backup=>false}'
Debug: Using settings: adding file resource 'lastrunreport':
'File[/var/lib/puppet/state/last_run_report.yaml]{:path=>"/var/lib/puppet/state/last_run_report.yaml",
:mode=>"640", :ensure=>:file, :loglevel=>:debug, :links=>:follow,
:backup=>false}'
Debug: Using settings: adding file resource 'graphdir':
'File[/var/lib/puppet/state/graphs]{:path=>"/var/lib/puppet/state/graphs",
:ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}'
Debug: Finishing transaction 80839800
Debug: Value of 'preferred_serialization_format' (pson) is invalid for report,
using default (yaml)
Debug: report supports formats: b64_zlib_yaml raw yaml; using yaml
Debug: Using cached certificate for ca
Debug: Using cached certificate for station.local.net
Debug: Using cached certificate_revocation_list for ca
Error: Could not run Puppet configuration client: (<unknown>): control
characters are not allowed at line 1 column 1
Error: Could not run: can't convert Puppet::Util::Log into Integer
</pre>
--
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.