When you use the puppetlabs-pe_status_check
module, installed by default in Puppet Enterprise (PE) 2021.7 and later, it fails with a Facter error resolving the pe_status_check
fact.
Error messages and logs
[2022-10-06 17:07:13.448508 ] ERROR Facter - [31mError while resolving custom fact fact='pe_status_check', resolution='<anonymous>': invalid date or strptime format - `[06/Oct./2022:11:12:21 +1100]' `[%d/%b/%Y:%H:%M:%S %Z]'[0m
When Puppet services are started on infrastructure nodes with non-US or non-UK English locales, for example, en-AU, it causes errors in Apache logging and parsing in the Puppet Server access log. The time the request was made outputs <MONTH>.
(with a dot at the end) instead of <MONTH>
. For example:
[07/Oct./2022:11:25:25 +0000] "POST /metrics/v2
This is not a valid date string or strptime
format. The formatting error breaks log parsing, causing pe_status_check
to fail with a Facter error.
Version and installation information
PE version: All supported
Solution
To reduce the error to a warning and allow facts to resolve, update to the latest version of the pe_status_check
module manually using the instructions in the module’s README.
How can we improve this article?
2 comments
After upgrading the module to the latest 2.6.0, the error doesn't affect the entire custom fact, however I'm still getting it as a warning:
The issue seems to be `strptime` in the S0039 chunk:
Hi Dinan,
I see you submitted a ticket with support. A support engineer will get back to you soon.
Thanks!
Please sign in to leave a comment.
Related articles