What Should I Do If the VM Agent Is Offline?
Symptom
The agent has been installed but is offline and cannot work properly.
Solution
- Log in to the ECS where the VM agent is offline. For details, see Logging In to an ECS.
- Run the following commands to check Authorization Model selected during the VM agent installation.
cd /opt/servicestage-agent
cat servicestage-agent.conf
- If Authorization Model is Agency:
- Log in to the cloud server console.
- Choose Elastic Cloud Server and click the ECS whose VM agent is offline.
- In the Management Information area of the Basic Information tab page, view the IAM agency bound to the ECS.
- Log in to the Identity and Access Management (IAM) console.
- Choose Agencies and click the agency obtained in 3.c.
- On the Basic Information tab page, check whether Cloud Service is ECS.
- On the Permissions tab page, check whether the permission is Tenant Administrator.
If both are yes, go to 5.
If either is no, modify an agency and go to 3.f.
- Log in to the ECS where the VM agent is offline. For details, see Logging In to an ECS.
- Run the following commands to restart the agent. Replace x.x.x with the version of servicestage-agent in the actual environment.
cd /opt/servicestage-agent/servicestage-agent-x.x.x
su agent ./servicestage-agent.sh restart
- If Authorization Model is AKSK, perform the following operations:
- Obtain the AK or SK with the correct permissions or create new AK or SK. For details, see Access Keys.
- Log in to the ECS where the VM agent is offline. For details, see Logging In to an ECS.
- Run the following commands to change the AK and SK values in the configuration file, and save and exit the file.
vi servicestage-agent.conf
- Run the following commands to restart the agent. Replace x.x.x with the version of servicestage-agent in the actual environment.
cd /opt/servicestage-agent/servicestage-agent-x.x.x
su agent ./servicestage-agent.sh restart
- If the fault persists, contact customer service.
Application Management FAQs
- How Do I View the Causes of Application Component Deployment Failures?
- What Should I Do If I Don't See the VM Agent After Installing It?
- What Should I Do If the VM Agent Is Offline?
- What If an Instance Is Being Created for a Long Time?
- How Do I Solve the Dependency Problem When a Node Program Runs in Docker?
- How Do I Customize a Tomcat Context Path?
- How Do I Use a Fixed Application Component IP?
- What Should I Do If an ECS Error Occurs When I Create and Deploy a Component on a VM?
- What Should I Do If I Cannot Access the Port When I Create and Deploy a Component on a VM?
- Which Directories Do I Use to Write Files for VM-Deployed Application Components?
- What Should I Do If "host status is not active" Is Reported When a VM-Deployed Component Fails to Be Deleted?
- How Do I Use the ServiceStage Source Code Deployment Function?
- What Should I Do If Components Fail to Be Upgraded in ServiceStage Dark Launch?
- How Do I Mount Items to Modify the Configuration File of a Container-based Component?
- What Should I Do If the Application Name Displayed on Microservice Governance Is Different from That Displayed on ServiceStage Application Management After an Application Component Is Connected to a Microservice Engine?
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