We are running inspec as part of chef-client using audit cookbook and reporting the client run to chef automate. On one of windows node, facing a problem where inspec run is failing with the following error message:
[2022-01-28T10:17:44+11:00] INFO: Chef Infra Client Run complete in 12.3129728 seconds
[2022-01-28T10:17:44+11:00] INFO: Skipping removal of unused files from the cache
[2022-01-28T10:17:44+11:00] INFO: Running report handlers
[2022-01-28T10:17:50+11:00] INFO: Using InSpec 4.18.39
[2022-01-28T10:17:52+11:00] INFO: Running tests from: [{:url=>"https://test.com/winrm-0.1.8.tar.gz", :name=>"winrm"}]
[2022-01-28T10:18:50+11:00] ERROR: InSpec has raised a runtime exception. Generating a minimal failed report.
[2022-01-28T10:18:50+11:00] ERROR: Failed to open TCP connection to : (getaddrinfo: No such host is known. )
[2022-01-28T10:18:50+11:00] INFO: Reporting to chef-server-automate
[2022-01-28T10:18:50+11:00] INFO: Report to Chef Automate via Chef Server: https://chefserver/organizations/testorg/data-collector
[2022-01-28T10:18:50+11:00] INFO: Reporting to json-file
[2022-01-28T10:18:50+11:00] INFO: Writing report to c:\build\inspec_report.json
[2022-01-28T10:18:50+11:00] INFO: Report handlers complete
chef-client version is 15.6.10.
Any pointers will be helpful. Checked couple of configurations against a working node like dns, host file.
Thanks