If the status of a Cloud Backup client is abnormal, backup and restore jobs may fail. This topic describes how to troubleshoot and handle the status exceptions on a Cloud Backup client.
Cause
The process of the Cloud Backup client encounters an exception. For example, the process has stopped.
The network connection between the Cloud Backup client and server is abnormal. For example, the network is disconnected, messages are intercepted by the firewall, or the client settings are incorrect.
The Cloud Backup client fails to be registered. For example, the network interface controller (NIC) of the on-premises server is replaced.
Check the status of the Cloud Backup client
Windows
Windows supports both the old and new Cloud Backup clients. The two versions of Cloud Backup clients have different service names on Windows.
The service name of the new Cloud Backup client is Alibaba Cloud Hybrid Backup Service.
The service name of the old Cloud Backup client is Aliyun Hybrid Backup Service.
You can use the following method to view the status of the Cloud Backup client:
View the status of the service.
NoteBefore you change the startup type of the service, you must understand the features and usage of the service to prevent adverse effects on the system. For some services, you may need to perform operations as an administrator.
Open Server Manager by using one of the following methods:
Press Win+R. In the Run dialog box, enter
services.msc
.In the Windows search bar, enter Service and click Services.
In the Services window, view Windows services.
To start the service, double-click the service name. In the Properties window, click Start.
To stop the service, double-click the service name. In the Properties window, click Stop.
View the status of the local backup service. If the backup service is in the Running state, the Cloud Backup client is running properly.
If the Cloud Backup client is not running properly, you can right-click the backup service and select Restart from the shortcut menu to restart the service.
If the Cloud Backup client still does not run properly, you can uninstall and reinstall the client. For more information, see How do I uninstall a Cloud Backup client? and Download and activate a Cloud Backup client for Windows.
For more information about how to view the logs of the Cloud Backup client, see Where do I view the default installation path and logs of a Cloud Backup client?
Linux
Linux supports both the old and new Cloud Backup clients. The two versions of Cloud Backup clients have different process names on Linux.
The process name of the new Cloud Backup client is hbrclient.
The process name of the old Cloud Backup client is hybridbackup.
New Cloud Backup client (hbrclient)
You can use the following methods to view the status of the Cloud Backup client:
View the status of the process.
Run the systemctl status hbrclient, service hbrclient status, or ps axu|grep hbrclient command to check the status of the Cloud Backup client. If the command output contains active or run, the Cloud Backup client is started and running properly.
Check whether the port is enabled properly.
Run the netstat -lpt | grep hbrclient command to check the port status. If the port is in the LISTEN state, the port is enabled properly.
tcp6 0 0 [::]:43565 [::]:* LISTEN 1727/hbrclient
Old Cloud Backup client (hybridbackup)
You can use the following methods to view the status of the Cloud Backup client:
View the status of the process.
Run the ps axu|grep hybridbackup command. If a result is returned, the Cloud Backup client is started and running properly.
Check whether port 8011 is enabled properly.
Run the lsof -i:8011 command to check the port status. If the port is in the LISTEN state, the port is enabled properly. If
command not found
is returned, you can run the yum install lsof or apt install lsof command to install lsof and try again.COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME hybridbac 11477 username 5u IPv6 10625414 0t0 TCP *:8011 (LISTEN)
For more information about how to view the logs of the Cloud Backup client, see Where do I view the default installation path and logs of a Cloud Backup client?
Restart or reinstall the Cloud Backup client
If the Cloud Backup client is not running properly, you can restart the client.
NoteDifferent commands are used on different Linux operating systems:
Run the following commands to restart the new Cloud Backup client:
systemctl restart hbrclient
systemctl restart hbrclientupdater
Run the following commands to restart the old Cloud Backup client:
systemctl restart hybridbackup
systemctl restart updater
If the Cloud Backup client still does not run properly, you can uninstall and reinstall the client. For more information, see How do I uninstall a Cloud Backup client? and Download and activate a Cloud Backup client for Linux.
Check the logs and network
Check the logs and network of the Cloud Backup client. Then, reset and reactivate the client.
Check the logs.
NoteThe new Cloud Backup client is installed in one of the following paths by default. The following paths are for reference only. The actual installation path may be different.
On Windows, you can view the logs in the C:\Program Files\Aliyun Hybrid Backup Service Client\logs path.
On Linux, you can view the logs in the /opt/alibabacloud/hbrclient/logs path.
Open the log file and search for Failed to register client. AppError: ErrorCode=.
If the value of the ErrorCode parameter is InvalidInstanceId, the network connection is normal but the Cloud Backup client fails to be registered. Perform Step 3.
If the value of the ErrorCode parameter is not InvalidInstanceId, restart the Cloud Backup service. On Linux, you can run the
service hbrclient restart
command to restart the Cloud Backup service.If the exception persists, perform Step 2 to check the network status.
If the registration still fails, submit a ticket.
Check the network status of the server.
We recommend that you use the diagnostic tool for Cloud Backup clients to monitor the network. For more information about common network issues, see Common network issues.
Open the network.log file of the client.
If Failed on ping is included in the log file, a network exception has occurred. The exception may be caused by firewall and route configurations. Contact the IT engineer of the network where the server is located and set the Internet endpoint or ECS internal endpoint of the corresponding region. For more information about the endpoint, see What can I do if a client connection exception occurs?
If Failed on ping is not included in the log file, perform Step 4.
Check whether the NIC of the server has been replaced.
Contact the IT engineer of the network where the server is located to check whether the NIC of the server has been replaced.
For the old Cloud Backup client, check whether the server has been cloned.
Contact the IT engineer of the network where the server is located to check whether the server has been cloned.
If the server has been cloned, the Cloud Backup client installed on the server has also been cloned. As a result, the Cloud Backup client on the cloned server fails to be registered.
If the Cloud Backup client on the original server is still in use, uninstall the Cloud Backup client on the cloned server and reinstall the Cloud Backup client.
If the Cloud Backup client on the original server is not in use, perform Step 6 to reactivate the Cloud Backup client on the cloned server.
If the server has not been cloned, perform Step 5.
Check whether the operating system of the server has been reinstalled.
NoteIf the operating system of the server is reinstalled, the Cloud Backup client is disconnected from the Cloud Backup console. As a result, the status of the Cloud Backup client is displayed as Abnormal in the Cloud Backup console. After you reinstall the Cloud Backup client and register it, another Cloud Backup client with the same name appears.
In this case, stop the new Cloud Backup client first.
In the Cloud Backup console, obtain the reactivation command and token of the old Cloud Backup client. The client can be reactivated only if the client is disconnected for more than 1 hour. If Reactivate is unavailable, wait for a while and try again later.
Run the obtained reactivation command in the corresponding client installation directory on the server.
Wait until the status of the old Cloud Backup client is displayed as Activated in the Cloud Backup console.
In the Cloud Backup console, uninstall the new Cloud Backup client where the exception occurs.
If the exception persists, reactivate the Cloud Backup client.
Log on to the Cloud Backup console.
Select the data source of file backup.
ECS file backup
In the left-side navigation pane, choose
.On-premises file backup
In the left-side navigation pane, choose
.
In the top navigation bar, select a region.
Find the Cloud Backup client that you want to reactivate, and choose in the Actions column.
In the Reactivate Client panel, copy the command. Then, run the command in the client installation directory on the server and wait until the Cloud Backup client is activated.
After the client is activated, the value in the Client Status column changes to Activated.
If the issue persists after you perform the preceding operations, submit a ticket.