You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As far as I know neither Exec or Service uses the output from this command, so I wonder if the default in this modules params.pp should be changed the same way I did in https://github.com/voxpupuli/puppet-jira
The text was updated successfully, but these errors were encountered:
We hit a similar error in internal PuppetDB testing on Debian and it turned out to be because the system locale was POSIX, which changed the default encoding for Ruby as well. Setting a UTF-8 locale resolved this error.
I did try to set the locale in a few ways, but I did not succeed..
From what I experienced the service type doesn't fail the same way the exec does.
( guessing that systemctl status is used by the service type to verify if the service is running. )
If this is only affecting the exec i guess the best thing to do is to redirect the output do /dev/null for this command.
I don't see any reason why the onlyif command output should be handled by the exec.
The exec is handling the onlyif command output in order to add it to the log at a debug level, so that someone can debug why their exec is or is not running. There could potentially be some improvements to the error handling around that code so that string encoding issues for debug logging doesn't cause catalog failures.
Describe the Bug
The onlyif command of the Exec in Postgresql::Server::Instance::Reload failes with
I have been seeing this issue in https://github.com/voxpupuli/puppet-jira acceptance test that run on quay.io/centos/centos:centos7
ie https://github.com/voxpupuli/puppet-jira/actions/runs/7570644144/job/20707054752#step:5:402
The problem seems to be the output of
systemctl status
which is UTF-8 encoded.I have solved this in https://github.com/voxpupuli/puppet-jira acceptance by declaring
https://github.com/voxpupuli/puppet-jira/pull/414/files#diff-1379c6bd5755b4327b5570882a99637ab4538a043ddfb2ea8a3e4abdf2de3697R22
As far as I know neither Exec or Service uses the output from this command, so I wonder if the default in this modules params.pp should be changed the same way I did in https://github.com/voxpupuli/puppet-jira
The text was updated successfully, but these errors were encountered: