Hey James! That error sounds like you have an out-of-date Psych YAML gem.

What versions of Puppet, Ruby, Hiera, and Psych are you using?



On Nov 8, 2023, at 8:54 AM, James Millsap <jmillsa...@gmail.com> wrote:

We have a fairly mature puppet instance along with foreman for classification.  
For some reason, yesterday, everything started failing with this error:

Info: Using environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: 
Server Error: Evaluation Error: Error while evaluating a Function Call, 
undefined method `safe_load' for Puppet::Util::Yaml:Module (file: 
/etc/puppetlabs/code/environments/production/manifests/site.pp, line: 3, 
column: 1) on node hostname.company.com
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

Line 3 of the site.pp is just this:
hiera_include('classes', '')

Which has not changed in many years.  There is either a bug that appeared from 
nowhere, or a syntax error buried somewhere.  I have been going through our 
repository and rolling back every yaml change, but so far nothing has worked.  
If anyone has a clever way to get puppet to give me some more information so I 
can find this, I would be eternally grateful.

--
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<mailto:puppet-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/cb051ca4-92a5-43c7-a7d0-9e8942b0af73n%40googlegroups.com<https://groups.google.com/d/msgid/puppet-users/cb051ca4-92a5-43c7-a7d0-9e8942b0af73n%40googlegroups.com?utm_medium=email&utm_source=footer>.


CAUTION: This email originated from outside of the organization. Do not click 
on links or open attachments unless you recognize the sender and know the 
content is safe.



This e-mail may contain information that is privileged or confidential. If you 
are not the intended recipient, please delete the e-mail and any attachments 
and notify us immediately.

-- 
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/7547DCB3-6ACE-46A7-AA63-157FEB0328D1%40perforce.com.

Reply via email to