Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Situation Awareness
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive
Help Center/ Host Security Service/ FAQs/ Agent/ What Should I Do If Agent Installation Failed?

What Should I Do If Agent Installation Failed?

Updated on 2025-01-07 GMT+08:00

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 VPCOperatePolicy permission, see Authorization.

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 VPCEPOperatePolicy permission, see Authorization.

Failed to log in using the key.

Incorrect key. Please check the key 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 your key pair is managed by DEW.

If the key pair is already managed by DEW, but HSS still displays a message indicating that the managed private key is not found when you install the agent, the possible cause is that your current account is an IAM member account or delegated account and does not have the permissions for KPS in DEW. You can go to the IAM console and use either of the following methods to grant permissions:

  • Method 1: Grant the DEW KeypairFullAccess permission (full permissions for KPS) to the agent installation account.
  • Method 2: If you do not want the agent installation account to have the permission to delete key pairs, you can create the following custom policy and grant the policy to the account. For more details, see Creating a Custom Policy.
    Allowing users to query and export key pairs
    {
        "Version": "1.1",
        "Statement": [
            {
                "Action": [
                    "kps:domainKeypairs:exportpk",
                    "kps:domainKeypairs:list",
                    "kps:domainKeypairs:get"
                ],
                "Effect": "Allow"
            }
        ]
    }

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 details about the permissions, see Authorization.

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.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback