Slackbot
02/28/2023, 6:12 PMjosh
02/28/2023, 6:20 PMPuppet::Util::Execution.execute implementation which ultimately calls into clojure. I would expect the stderr output to be logged to puppetserver's log based on https://github.com/puppetlabs/clj-shell-utils/blob/bf95a25bcd8865c7770f26188b0f25ba9aee0b76/src/java/com/puppetlabs/puppetserver/ShellUtils.java#L100-L102josh
02/28/2023, 6:21 PMcombine: true which would merge stdout & stderr (for short term debugging). Unfortunately the execution API doesn't support popen style methods where the caller can receive independent stdout and stderr streams.bastelfreak
02/28/2023, 6:25 PMvchepkov
02/28/2023, 6:26 PMvchepkov
02/28/2023, 6:27 PMExecuted an external process which logged to STDERR: gpg: decryption failed: No secret keybastelfreak
02/28/2023, 6:27 PMvchepkov
02/28/2023, 6:27 PMvchepkov
02/28/2023, 6:28 PMbastelfreak
02/28/2023, 6:28 PMExecuted an external process which logged to STDERR:vchepkov
02/28/2023, 6:28 PMvchepkov
02/28/2023, 6:28 PMvchepkov
02/28/2023, 6:29 PMfailonfail: true temp file is never removedbastelfreak
02/28/2023, 6:30 PMjosh
02/28/2023, 6:30 PMstrace the java process and follow forks to see how gpg is getting called (differently)?vchepkov
02/28/2023, 6:30 PMvchepkov
02/28/2023, 6:31 PMvchepkov
02/28/2023, 6:32 PMError was Execution of 'gpg --homedir /etc/puppetlabs/puppetserver/keys/gpg --quiet --no-secmem-warning --no-permission-warning --no-tty --yes --decrypt /tmp/puppet-eyaml-hiera-gpg-input20230215-129448-8gat21' returned 2:vchepkov
02/28/2023, 6:34 PMjosh
02/28/2023, 6:36 PMpe-puppet user has read permission to /tmp/puppet-eyaml-hiera-gpg-input20230215-129448-8gat21 Also maybe selinux?vchepkov
02/28/2023, 6:38 PMvchepkov
02/28/2023, 6:38 PMvchepkov
02/28/2023, 6:39 PMbastelfreak
02/28/2023, 6:39 PMvchepkov
02/28/2023, 6:40 PMvchepkov
02/28/2023, 6:40 PM# cat /etc/systemd/system/pe-puppetserver.service.d/limits.conf
[Service]
LimitNOFILE=32768