On 2024-02-21 starting at around 22.30 UTC Puppet was failing on servers using Puppet 5 in eqiad with an error like this:
jmm@es1031:~$ sudo puppet agent -tv Warning: Unable to fetch my node definition, but the agent run will continue: Warning: Error 500 on SERVER: Server Error: Could not retrieve facts for es1031.eqiad.wmnet: Failed to find facts from PuppetDB at puppet:8140: undefined method `content' for nil:NilClass Info: Retrieving pluginfacts Info: Retrieving plugin Info: Retrieving locales Info: Loading facts Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: undefined method `content' for nil:NilClass Warning: Not using cache on failed catalog Error: Could not retrieve catalog; skipping run
A restart of Apache and a reboot of puppetmaster1002 did not help. Eventually puppetmaster1002 was taken out of rotation via https://gerrit.wikimedia.org/r/c/operations/puppet/+/1005708