> It would be very hard to create a large resource type, but not 
> impossible. Whats more likely is that the title of one of your 
> resources is excessively large. This is possible most likely with an 
> exec {} or something similar that uses a very large command as the 
> title of the exec, instead of putting it in the command parameter like 
> so: 
> http://docs.puppetlabs.com/references/latest/type.html#exec-attribute-command.
>  
>
> Either that, or something very similar. 
>
>
Thank you for the quick, thorough, and incredibly helpful reply. You 
pointed me in the right direction. Turns out we had an older module that 
was doing just what you suspected.  There were two titles of over 370 
characters apiece.  Here is the original 
module: 
https://github.com/puppet-modules/puppet-common/blob/master/manifests/defines/line.pp

Command used to troubleshoot:
cat /var/lib/puppet/client_data/catalog/puppetca.fqdn.json | python 
-mjson.tool | grep title

I resolved this issue by changing all execs to named execs, differentiated 
by the '${file}' variable passed into the script to avoid duplicate 
declarations. For example, exec { name: "d_line_ensure_present_${file}": 
command => ... } 

Checking the logs, I no longer see the errors. 

BTW this might be considered a bug, and might call for better 
> normalisation in our schema to avoid this. Having said that, a type 
> and title combination this excessive is very abnormal, so it might be 
> something we want to stop from happening in Puppet anyway :-). So 
> weither this is a bug for puppet or puppetdb we'll have to determine. 
>

Let me know if you need any more information from my end on this.
 

> This looks like you haven't upgraded puppetdb-terminus to the latest 
> version (2.0.0) on your puppet master. We've bumped the command 
> version to 4 now, this looks like its just the old code. Also people 
> often forget to restart the Apache process when upgrading the terminus 
> code, don't forget to do that. 
>

puppetdb-terminus was updated along with puppetdb, but httpd had not been 
restarted.  

Thanks again, Ken!

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/712433e1-f047-4367-a8da-80aa22d1752d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to