Help Center> Host Security Service (Old)> FAQs> Deployment and Configuration> Agent> What Do I Do If Agent Installation Fails?
Updated on 2024-02-27 GMT+08:00

What Do I Do If Agent Installation Fails?

Failed to Install the Agent by Running the Installation Commands

Symptom

The agent fails to be installed by running commands. The server list page on the console still indicates that the agent is not installed.

Possible Causes

Solution

  1. Check whether the SELinux firewall of the server is disabled.

    • If it is, go to Step 2.
    • If it is not, disable it and install the agent again.

  2. Check whether there is an EIP bound to the server.

    • If it has, go to Step 3.
    • If there is not, bind an EIP to the server and reinstall the agent.

  3. Check whether the installation command is suitable for the server region and OS.

    1. Switch to the server region.
    2. Copy the installation commands suitable for your server OS.
      • Run 32-bit installation commands on a 32-bit server.
      • Run 64-bit installation commands on a 64-bit server.
    • If it has, go to Step 4.
    • If the commands you used are incorrect, install the agent again with correct ones.

  4. Check whether the installation was performed by user root.

    • If it has, go to Step 5.
    • If it was not, install the agent again as user root.

  5. Uninstall the agent as user root and forcibly install it.

    • If the installation is successful, no further action is required.
    • If the installation fails, contact technical support.

Failed to Install the Agent by Running the Script

Symptom

An error is reported during the agent installation. The following error message is displayed when the agent is being installed by using a script:

Figure 1 Error message

Possible Causes

The DNS address is incorrectly configured. The domain name obs.myhuaweicloud.com cannot be resolved.

Solution

Perform the following steps to correctly configure DNS and retry installation:

  1. Run the cat /etc/resolv.conf command to view the resolv.conf file.

    cat /etc/resolv.conf

  2. Run the ping Domain_name command. If the command output in Figure 2 is displayed, go to Step 3.

    ping obs.myhuaweicloud.com
    Figure 2 Failing to ping the domain name

  3. Run the following command to open the resolv.conf file:

    vi /etc/resolv.conf

    Replace the IP addresses highlighted in Figure 3 with common DNS IP addresses.
    nameserver Common_DNS_IP_address_1
    nameserver Common_DNS_IP_address_2
    Figure 3 The part to be replaced

  4. After the modification, run the ping obs.myhuaweicloud.com command again. If information similar to the following is displayed, the domain name is pinged successfully.

    Figure 4 Message indicating the domain name can be pinged

  5. Run the installation script.

Example of Agent Installation Troubleshooting

Agent FAQs

more