If the status of a Cloud Backup client is abnormal, backup and restore jobs may fail. This topic describes how to troubleshoot and resolve Cloud Backup client status exceptions.
Symptoms
In the Cloud Backup console, you may see the following:
The client status is "Stopped", and the following message appears: "The Cloud Backup client is not connected properly."
A backup job fails with the error message: "The backup fails because the backup client loses connection."


Causes
The following issues can cause the client status exception and make backup jobs fail:
The client program does not run as expected. For example, the client process has stopped.
The network connection between the client and the Cloud Backup service is interrupted, for example by network unreachability, firewall rules, or incorrect client settings.
The client fails to register, for example after the NIC of the on-premises server is replaced.
The client is stopped while a backup job is running. The backup process ends unexpectedly, the Cloud Backup service cannot obtain the job status, and the job times out.
Solution
Check whether the Cloud Backup client is running.
For information about the client logs, see Where are Cloud Backup client logs stored?
Check the logs and the network.
Check the logs and the network status of the client, and then reconfigure and reactivate the client.
Check the log file.
NoteThe default installation paths of the new client are as follows. Use the actual installation path.
Windows log path: Local disk (C:) > Program Files > Aliyun Hybrid Backup Service Client > logs
Linux log path: /opt/alibabacloud/hbrclient/logs
Open the log file and search for Failed to register client. AppError: ErrorCode=.
If the ErrorCode is InvalidInstanceId, the network is working, but the client fails to register.
Root cause: Operations on the ECS instance, such as replacing the system disk or restarting it after a patch installation, can invalidate its encrypted InstanceID. The instance is then treated as invalid, and client registration fails.
Handling: An old client with an invalidated InstanceID cannot be recovered by reactivation. Install a new Cloud Backup client and create a new backup plan. To keep the backup data of the old client, do not delete the old client from the client list.
If the ErrorCode is not InvalidInstanceId, restart the Cloud Backup service. On Linux, run
service hbrclient restart.If the issue persists, go to Step 2 to check the network status of the server.
If the client still fails to register, submit a ticket to get support.
If Program Stopped! appears in the log file, the client was stopped while a backup job was running. The backup process ended unexpectedly, the Cloud Backup service could not obtain the job status, and the job timed out. You can check whether the Cloud Backup client is running. If the client is running, subsequent backup jobs run as expected.

Check the network status of the server.
We recommend that you use the Diagnostic tool for Cloud Backup clients to monitor the network environment of the client. For common network issues, see Common network issues.
Open the network.log file of the client.
If Failed on ping appears in the log file, a network issue exists, such as an incorrect firewall or route configuration. Contact the network administrator and configure the public endpoint or the ECS internal endpoint for the Cloud Backup region based on the list in Check the network connectivity.
If Failed on ping does not appear, go to Step 4.
Check whether the NIC of the server was replaced.
Contact the network administrator to confirm whether the NIC of the server that hosts the client was replaced.
If you use the old client, check whether the server was cloned.
Contact the network administrator to confirm whether the server that hosts the client was cloned.
If the server was cloned, the installed client was cloned with it, so the client on the cloned server fails to register.
If the client on the original server is still in use, uninstall the client on the cloned server and then reinstall it.
If the client on the original server is no longer in use, reactivate the client on the cloned server as described in Step 6.
If the server was not cloned, go to Step 5.
Check whether the operating system of the server was reinstalled.
NoteAfter the operating system of the server is reinstalled, the client loses contact with the Cloud Backup console, and its status becomes abnormal. If you then reinstall and register the client, a second client with the same name appears in the console.
Stop the new Cloud Backup client service first.
In the Cloud Backup console, obtain the reactivation command and token of the old client. Reactivation is available only after the client has been disconnected for more than 1 hour. If reactivation is unavailable, wait and try again.
Run the reactivation command in the client installation directory on the server.
After a short while, the old client is displayed as Activated in the Cloud Backup console.
In the Cloud Backup console, delete the new client whose status is abnormal.
If the client status is still abnormal, reactivate the Cloud Backup client.
If the client status is still abnormal after reactivation, operations on the ECS instance, such as replacing the system disk, reinstalling the operating system, or restarting the instance after a patch installation, may have invalidated its encrypted InstanceID. The registration of the old client is no longer valid and cannot be restored by using a reactivation token. Perform the following steps:
Install a new Cloud Backup client on the same ECS instance.
Create a new backup plan with the new client to restore backup protection.
Keep the record of the old client in the client list so that you can still view its historical backup data. If you delete the record, you can no longer access that data.
NoteAfter the encrypted InstanceID of an ECS instance is invalidated, the old client cannot be recovered. Force-reinstalling the client or using the console Reinstall action does not resolve this issue. The Reinstall action depends on Cloud Assistant. If Cloud Assistant is not installed on the ECS instance or is unavailable, the client cannot be installed automatically. You can confirm this issue in the client registration logs described in Step 1: if a log file contains Failed to register client. AppError: ErrorCode=InvalidInstanceId, the encrypted InstanceID has been invalidated.
Log on to the Cloud Backup console.
Select the data source for file backup.
ECS File Backup Standard Edition
In the left-side navigation pane, choose .
Local File Backup
In the left-side navigation pane, choose .
In the top navigation bar, select the region where the client resides.
Find the client that you want to reactivate. In the Actions column, choose More > Reactivate Client.
In the Reactivate Client panel, copy the command and run it in the client installation directory on the server. Wait until the client is reactivated.
After the client is reactivated, the Client Status changes to Activated.
If the issue persists after these checks, submit a ticket to get support.