-
Notifications
You must be signed in to change notification settings - Fork 36
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
Debian 9.8/10 timing out on audits #22
Comments
I'm really just looking for suggestions on how to debug this, it just sits there eating 3-4% CPU until it times out. |
Try to run the same command manually on this machine. Normally, this is caused by a bad internet connection. Very likely the apt-get update does not run through. |
It works fine manually. It also works fine if I run "inspec exec" manually or from another machine. It's something about being inside the audit cookbook that is causing it to fail, it's consistently failed for about 10 days now. The machine isn't heavily loaded and my other Debian boxes are unaffected. |
If it is working manually, then it may be an issue with permissions. Maybe it is also related to an updated InSpec version? |
Did a fresh install to Debian 10 and the problem went away for awhile, now it's started back up. It's just this 1 machine, other Debian 10 boxes are fine. This is the box running Automate, so it's running inspec by chef-client via the audit cookbook and reporting back to itself, but that doesn't look like the issue.
|
This bug continues to haunt me, it went away when I stopped running Automate on the box. I migrated Automate to another Debian box, and now that machine exhibits the failure. As far as I can tell, the offending line is which sits there chewing on
where process 24114 is java running ElasticSearch
and it has 19334 entries. It eventually gets killed by inspec because it takes too long or fails. I assume what we're trying to do is wait for /var/lib/dpkg/lock to free up? Couldn't we use |
We are have it in Prod ... on our Automate Server ... |
Describe the bug
I'm using this profile in a testing environment and it was working the last 2 months but it recently stopped working through the Chef Audit cookbook. Other similar Debian machines don't seem to recreate the issue in Kitchen, so I'm looking for any suggestions for debugging.
Expected behavior
The machine in question worked for weeks, then stopped. Manual verification and running "inspec exec" by hand don't recreate the issue.
Actual behavior
From the Automate 2 UI:
OS / Environment
Debian 9.8, Chef 14.10, InSpec 3.6.6.
Inspec Version
Baseline Version
0.4.0 and git master branch have same results
The text was updated successfully, but these errors were encountered: