Argon Wade
09/16/2025, 1:47 PMcsharpsteen
09/16/2025, 1:56 PMcalling the puppet binary directlyWhat is the path to the binary you are using in that call?
Argon Wade
09/16/2025, 2:05 PMcsharpsteen
09/16/2025, 2:17 PM/opt/puppetlabs/bin/puppet work in EnvB?
That calls through the wrapper script, which is how all calls to puppet should be made.Argon Wade
09/16/2025, 2:18 PMcsharpsteen
09/16/2025, 2:21 PM/opt/puppetlabs/bin/puppet does, so it should work as well (note, this is a subtly different path from /opt/puppetlabs/puppet/bin/puppet).Argon Wade
09/16/2025, 2:22 PMArgon Wade
09/16/2025, 2:22 PMcsharpsteen
09/16/2025, 2:23 PMpuppet that go through the wrapper script are working, and all calls to puppet should go through the wrapper script.csharpsteen
09/16/2025, 2:23 PMpuppet up by running /opt/puppetlabs/puppet/bin/puppet, that should be changed to use /opt/puppetlabs/bin/puppetArgon Wade
09/16/2025, 2:24 PMArgon Wade
09/16/2025, 2:26 PMArgon Wade
09/16/2025, 2:27 PMcsharpsteen
09/16/2025, 3:00 PMpxp-agent service starts its binary directly.
What does the follow produce for one of the agent nodes that does not report the fact to the Web Console?
cat /proc/$(systemctl show -P MainPID pxp-agent)/environ |tr '\0' '\n'Argon Wade
09/16/2025, 3:07 PMcsharpsteen
09/16/2025, 3:09 PMArgon Wade
09/16/2025, 3:17 PMArgon Wade
09/16/2025, 3:18 PMcsharpsteen
09/16/2025, 3:19 PMArgon Wade
09/16/2025, 3:21 PMArgon Wade
09/16/2025, 4:48 PMcsharpsteen
09/16/2025, 5:21 PMArgon Wade
09/16/2025, 5:30 PMcsharpsteen
09/16/2025, 5:37 PMsomeVar would generally be left alone by wrapper.sh unless it was one of the environment options that sets load paths for libraries.
BUT, SystemD usually applies heavy sanitization to the environment it gives services. So, the variables available to puppet and pxp-agent will be very different from what gets set in a login shell.Argon Wade
09/16/2025, 5:38 PM