Help Center/ Host Security Service/ FAQs/ Agent/ What Should I Do If Agent Installation Failed?
Updated on 2024-10-28 GMT+08:00

What Should I Do If Agent Installation Failed?

If the agent fails to be installed, rectify the fault by following the instructions provided in this section.

Failed to Install the Agent on the HSS Console

If the agent fails to be installed on the console, rectify the fault based on the information displayed on the HSS management console and Table 1.

Table 1 Suggestions for troubleshooting agent Installation failures

Console Message

Suggestion

Connection timed out. Network error.

  • Linux

    Check the network configuration to ensure that the server can access the network.

  • Windows
  1. Run PowerShell as a Windows system administrator.
  2. Run the following command to query the service information:

    winrm get winrm/config/service

    • If the value of AllowUnencrypted is true, check the network configuration to ensure that the server can access the network.
    • If the value of AllowUnencrypted is false, run the following command to change the value to true:

      winrm set winrm/config/service '@{AllowUnencrypted="true"}'

  3. On the HSS console, install the agent on the Windows server again.
  4. After the agent is installed, run the following command to change the value of AllowUnencrypted to false:

    winrm set winrm/config/service '@{AllowUnencrypted="false"}'

Authentication failed due to incorrect password.

Incorrect password. Please check the password you entered.

The memory space is insufficient.

When installing the agent, ensure that at least 50 MB memory is available. Check and free up memory.

Invalid metadata.

Failed to obtain the metadata. For details, see Why Can't My Linux ECS Obtain Metadata?

Failed to install expect.

Check whether the network fluctuates. After the network recovers, install the agent again.

If the network is normal but the installation still fails, choose Service Tickets > Create Service Ticket in the upper right corner of the Huawei Cloud management console to contact technical support.

Failed to connect to VPC.

HSS does not have the VPCOperatePolicy permission. HSS cannot communicate with each other between VPCs. You are advised to perform the following operations to grant the permission:

  1. Log in to the HSS console.
  2. Click in the upper left corner and select a region and a project.
  3. In the navigation pane, choose Installation & Configuration > Permissions Management.
  4. Click Assign in the upper left corner of the permission list to grant the VPCOperatePolicy permission to HSS.

For details about the meanings and functions of the VPCOperatePolicy permission, see Granting Permissions on Associated Cloud Services.

Abnormal DEW key status.

Check and restore your DEW key pair to the normal state.

Failed to connect to VPCEP.

HSS does not have the VPCEPOperatePolicy permission. HSS cannot create a VPC endpoint. The VPC endpoint is used for communication between the agent and the HSS server. You are advised to perform the following operations to grant the permission:

  1. Log in to the HSS console.
  2. Click in the upper left corner and select the desired region and project.
  3. In the navigation pane, choose Installation & Configuration > Permissions Management.
  4. Click Assign in the upper left corner of the permission list to grant the VPCEPOperatePolicy permission to HSS.

For details about the meanings and functions of the VPCEPOperatePolicy permission, see Granting Permissions on Associated Cloud Services.

Failed to log in using the key.

Incorrect password. Please check the password you entered.

Insufficient permissions to run the installation command.

Possible cause: The script cannot be executed in the /tmp directory, or bash does not have the execution permission.

Suggestion:

  • You are advised to check whether the preceding directories or files have the corresponding permissions.
  • If the permissions have been granted but the installation still fails, choose Service Tickets > Create Service Ticket in the upper right corner of the Huawei Cloud management console to contact technical support.

Failed to download the installation file.

This error occurs only on Linux servers. You are advised to perform the following operations to check the security group and DNS configurations.

  • Checking the security group

    Log in to the server and run the following command to check whether port 10180 of the 100.125.0.0/16 CIDR block is allowed in the outbound direction of the server security group:

    curl -kv https://hss-agent.region code.myhuaweicloud.com:10180

    Each region has a unique region code. For details about the region code, see Regions and Endpoints.

    Take CN North-Beijing1 as an example. The complete command is as follows: curl -kv https://hss-agent.cn-north-1.myhuaweicloud.com:10180
    • If the ping command is successfully executed, port 10180 of 100.125.0.0/16 CIDR block has been enabled.
    • If the page is suspended after the ping command is executed, the port 10180 in the 100.125.0.0/16 network segment is not allowed. For details about how to allow the port, see Adding a Security Group Rule.
  • Checking DNS configurations

    Log in to the server and run the following command to check whether the DNS of the server can resolve the domain name for downloading the agent:

    ping -c 1 hss-agent.RegionCode.myhuaweicloud.com

    Each region has a unique region code. For details about the region code, see Regions and Endpoints.

    Take CN North-Beijing1 as an example. The complete command is as follows: ping -c 1 hss-agent.cn-north-1.myhuaweicloud.com

    • If the resolved IP address is displayed, the DNS resolution is normal.
    • If name or service not known is displayed or no IP address is resolved, the DNS resolution fails. For details, see Modifying the DNS.

Insufficient disk space.

Check the following directories to ensure that the disk capacity is sufficient:

  • Linux
    • /usr/local: default installation path of the agent. Ensure the available disk space is greater than 300 MB.
    • /temp: path for downloading the agent installation package. Ensure the available disk space is greater than 100 MB.
  • Windows
    • C:\Users\xxx\Downloads: path for downloading the agent installation package. Ensure the available disk space is greater than 100 MB.
    • C:\Program Files\HostGuard: default installation path of the agent. Ensure the available disk space is greater than 300 MB.

There are no private keys managed by DEW.

Check and ensure that your DEW key pair has been managed.

Installation error.

Perform the following operations:

  1. Log in to the HSS console.
  2. Click in the upper left corner and select the desired region and project.
  3. In the navigation pane, choose Installation & Configuration > Permissions Management.
  4. Check whether the VPCEPOperatePolicy and VPCOperatePolicy permissions are in the permission list.
    • If yes, in the upper right corner of the management console, choose Service Tickets > Create Service Ticket and submit a service ticket.
    • If no, click Assign in the upper left corner of the permission list and grant the VPCEPOperatePolicy and VPCOperatePolicy permissions to HSS. Install the agent again.

      For the meanings and functions of the preceding permissions, see Granting Permissions on Associated Cloud Services.

The VPC network cannot be connected due to NIC route conflicts.

A route conflict occurs between the NIC of your server and the elastic NIC attached to the server where the agent is being installed. The VPC network cannot be connected. You are advised to install the agent using commands.

Failed to Install the Agent Using Commands

If you fail to install the agent using commands (that is, by logging in to the server and running commands), rectify the fault based on the command output.