Telegraf agent installation fails on windows due to failure to download config-utils.bat file
search cancel

Telegraf agent installation fails on windows due to failure to download config-utils.bat file

book

Article ID: 428286

calendar_today

Updated On:

Products

VCF Operations

Issue/Introduction

  • Telegraf agent installation fails on windows virtual machine with below error:

    "Failed to download: https://<cloud proxy ip or fqdn>:443/downloads/salt/config-utils.bat. errcode=1, errmsg=. Please check C:<telegraf agent log path>\\uaf_bootstrap.log on the endpoint VM."

  • The same error can also be observed in uaf.bootstrap.log and before that below messages are also observed:

    File ignoreSSLcheck_Downloadfile.ps1 cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.
    At line:1 char:1
    + C:\<telegraf agent installation path>\VMware-UCP_Bootstrap_Scriptsvmwa ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : SecurityError: (:) [], PSSecurityException
        + FullyQualifiedErrorId : UnauthorizedAccess

  • It's confirmed that there's no issue accessing cloud proxy port 443,4505,4506 from windows client. There's also no issue when attempting to browse file from url on windows client: https://<cloud proxy ip or fqdn>:443/downloads/salt/config-utils.bat

Environment

Aria Operations 8.18.X

Cause

The execution of powershell script is forbidden because execution policy is set to "Restricted" on windows client.

Resolution

Change the execution policy on windows client to "RemoteSigned":

  1. Run a powershell command line as Administrator
  2. Issue command: Set-ExecutionPolicy RemoteSigned

The execution policy applied currently can be checked with command: Get-ExecutionPolicy

Once the telegraf agent installation completes, the policy can be set back to "Restricted" if required: Set-ExecutionPolicy Restricted

Additional Information

For prerequisites and steps to install telegraf agent please refer to: OS and Application Monitoring

For more information to troubleshoot telegraf agent installation failure due to connection issue, please refer to: Telegraf Agent Installation failure due to Proxy Settings.