I have similar symptoms with a PE 3.7 agent running on RHEL5, 32-bit and PE 3.7 running on RHEL6, 64-bit. My specific problems can be found in the Report Log: err Could not retrieve catalog; skipping run Puppet 2014-11-22 12:42 UTC err Could not retrieve catalog from remote server: Error 400 on SERVER: Attempt to assign to a reserved variable name: 'trusted' on node myagent.mydomain.com Puppet 2014-11-22 12:42 UTC In my case, the problem seems to be related to a conflict with the server name and perhaps the certificates. However, the agent on the RHEL5 box already checked-in as an accepted node (fingerprint defined when the master accepted the node request). Therefore I am stumped as to why there seems to be a naming conflict.
On Thursday, November 20, 2014 3:30:04 PM UTC-8, hendri wrote: > > This is on Amazon Linux on EC2 - Puppet Agent and master are at 2.7.25 > > Manual runs of facter and puppet `puppet agent -t` complete successfully > and produce no errors. how were if puppet runs either as service daemon or > cron I get the above error in the log. > > Here is the error > > /var/log/messages > Nov 17 21:47:36 servername puppet-agent[123]: Starting Puppet client > version 2.7.25 > Nov 17 21:47:36 servername puppet-agent[123]: Could not run Puppet > configuration client: *Could not retrieve local facts: private method > `scan' called for nil:NilClass* > > > > > > > > > This is the custom fact which is producing the error > Any reason why this code would run successfully manually but fail a daemon? > > > > cat /usr/lib/ruby/site_ruby/1.8/facter/ec2tags.rb > > require 'facter' > > > if Facter.value("ec2_instance_id") != nil > instance_id = Facter.value("ec2_instance_id") > region = Facter.value("ec2_placement_availability_zone")[0..-2] > tags = Facter::Util::Resolution.exec("ec2dtag -O key -W secret_key > --filter \"resource-id=#{instance_id}\" --region #{region} | cut -f 4-|awk > 'BEGIN{FS=\" \";OFS=\"|\"} {$1=$1; print $0}'") > tags.scan(/(.*)\|+(.*)/) do |key, value| > fact = "ec2_tag_#{key}" > Facter.add(fact) { setcode { value } } > end > end > > > > -- 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 puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/abca2cc9-a4d4-4982-88c4-375e05c300fc%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.