How Do I Restore the Connection Between the Agent and SMS?
Symptom
The server migration was in the Disconnected status, so most operations could not be performed.
Possible Causes
- The Agent on the source server is not running.
- The Agent is disconnected from SMS. This can happen if no operations are performed on the Agent for a long time (30 days by default, but this can be changed using the heartmonitorday parameter in the config/g-property.cfg file).
- The network connection between the Agent and SMS is abnormal.
- The SMS-Agent-Py3 or SMS-Agent-Py2 process exits. This can happen if you have been logged out of or have exited from the source server automatically.
- The AK/SK authentication fails. This can happen if the system time in the source server is more than 15 minutes ahead of or behind the local standard time because, for example, the NTP server on the source server is incorrectly configured.
Windows Server 2019/2016/2012 and Windows 10/8.1
- Log in to the source server, search for the Agent icon in the lower right corner, and check whether the Agent is running properly.
- If the Agent has exited, restart the Agent.
- If the Agent is running properly, go to 2.
- On the Agent operation page, check whether the Start button can be clicked.
- If it can, the Agent has proactively disconnected from SMS. Click Start to reconnect to it.
- If it cannot, go to 3.
- In the cmd window, run telnet sms.ap-southeast-3.myhuaweicloud.com 443 to check the connection between the source server and SMS.
- If the connection is unavailable, check whether the DNS and firewall of the source server are correctly configured.
- If the connection is available and data is being transmitted, check whether the outbound bandwidth of the source server is lower than 10 Mbit/s. If it is, the data transmission may be using up all the bandwidth, which can cause the connection between the Agent and SMS to time out. In this case, increase the outbound bandwidth of the source server to more than 10 Mbit/s, and then continue the migration.
- Wait for about a minute and log in to the management console.
- Click Service List. Under Migration, click Server Migration Service.
The SMS console is displayed.
- In the navigation pane on the left, choose Servers.
In the Status column, view the connection status of the source server.
Windows Server 2008 and Windows 7
- Log in to the source server and check whether the SMSAgentDeploy.exe process is running properly.
- Go to the SMS-Agent installation directory, run agent-cli.exe, and then run status to check the Agent connection status.
- Enter connect to reconnect the source server to SMS.
If in the command output, the value of Connected between sms agent and sms server is True, the connection between the source server and SMS has been restored.
- In the cmd window, run telnet sms.ap-southeast-3.myhuaweicloud.com 443 to check the connection between the source server and SMS.
- If the connection is unavailable, check whether the DNS and firewall of the source server are correctly configured.
- If the connection is available and data is being transmitted, check whether the outbound bandwidth of the source server is lower than 10 Mbit/s. If it is, the data transmission may be using up all the bandwidth, which can cause the connection between the Agent and SMS to time out. In this case, increase the outbound bandwidth of the source server to more than 10 Mbit/s, and then continue the migration.
- Wait for about a minute and log in to the management console.
- Click Service List. Under Migration, click Server Migration Service.
The SMS console is displayed.
- In the navigation pane on the left, choose Servers.
In the Status column, view the connection status of the source server.
Linux
- Use PuTTY or another SSH client to log in to the source server.
- Run ps -ef | grep -v grep | grep linuxmain to check whether the Agent is running properly.
- If the linuxmain process is not running, restart the Agent.
- If the linuxmain process is running, go to 3.
- Run ./agent-cli.sh in the SMS-Agent directory to go to agent-cli, and run status to check the Agent connection status.
- Enter connect to reconnect the source server to SMS.
If in the command output, the value of Connected between sms agent and sms server is True, the connection between the source server and SMS has been restored.Figure 2 Reconnecting the source server to SMS
- In the cmd window, run telnet sms.ap-southeast-3.myhuaweicloud.com 443 to check the connection between the source server and SMS.
- If the connection is unavailable, check whether the DNS and firewall of the source server are correctly configured.
- If the connection is available and data is being transmitted, check whether the outbound bandwidth of the source server is lower than 10 Mbit/s. If it is, the data transmission may be using up all the bandwidth, which can cause the connection between the Agent and SMS to time out. In this case, increase the outbound bandwidth of the source server to more than 10 Mbit/s, and then continue the migration.
- Wait for about a minute and log in to the management console.
- Click Service List. Under Migration, click Server Migration Service.
The SMS console is displayed.
- In the navigation pane on the left, choose Servers.
In the Status column, view the connection status of the source server.
Migration Network FAQs
- How Do I Set Up a Secure Migration Network for Using SMS?
- How Do I Prepare a Target Server Before the Migration?
- How Do I Configure Security Group Rules for Target Servers?
- How Do I Resolve the Error "Failed to establish an SSH connection with the target ECS"?
- How Do I Fix the Error "Failed to connect to the target ECS. Check whether its IP address is reachable and confirm that port XX is enabled"?
- How Do I Fix a Connection Failure Between the Source Server and API Gateway Due to a Busy Network?
- How Do I Restore the Connection Between the Agent and SMS?
- Why the Migration Progress Is Suspended or Slow?
- Does a Source Server Have to Connect to the Internet?
- How Do I Configure a Source Server to Access Huawei Cloud Through a Proxy?
- Can I Release or Change the Target Server EIP During the Migration?
- How Do I Resolve the Error "SMS.0302 Failed to resolve domain name xxx"?
- How Do I Resolve the Error "SMS.0303 Unable to access domain name xxx"?
- How Do I Measure the Network Performance Before the Migration?
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbotmore