New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ZD : 16.5.x nodes are reporting a handler error when run as systemd service #10565
Comments
That looks like an audit cookbook bug and not a chef-client bug |
@lamont-granquist I have a customer that is using the same version of the audit cookbook (v9.4.0), but gets this error when they upgrade to chef client 16.5.77 from 16.2.50 |
I ran in to this as well and confirmed the results in a local A2 vagrant setup. Looks like
|
Hello @collinmcneese @srb3 I tried to reproduce this issue from my end but no such error as in your logs.
Please revert with steps that I can use to reproduce. |
So things work fine if you run On my config, I have the interval set down to |
This is definitely a |
FYI it also affects any knife calls from within an execute resource |
The issue somehow related to pry/pry#2139 |
@tas50 & @lamont-granquist, As per my investigation seems the regression due to pry version 13.1 updated in inspec inspec/inspec#4992, it already reported at pry/pry#2139. Is it feasible to set the HOME path? if missing by fetching it using I have tried to track down the Here the chef-client logs after Pry fixes:
|
The issue got fixed with the latest version of inspec, have tested it with chef 16.8.14, it seems working fine.
|
Description
Nodes are receiving the below error when reaching the audit handler portion only when chef-client is initiated from the systemctl service. They work fine when run manually as root.
Chef Version
16.5.x
Platform Version
Replication Case
Install/configure Chef Infra Client 16.5.64 or 16.5.77 under systemd on a node with has audit/compliance reporting enabled
Client Output
Expected Behaviour
Chef Infra Client sends audit/compliance report to Automate successfully
Actual Behaviour
Bundled Inspec reports following error
And client run fails.
Stacktrace
The text was updated successfully, but these errors were encountered: