Help Center/ ServiceStage/ User Guide (ME-Abu Dhabi Region)/ FAQs/ What Should I Do If a VM Component Fails to Be Deployed or Updated?
Updated on 2022-12-05 GMT+08:00

What Should I Do If a VM Component Fails to Be Deployed or Updated?

If a component fails to be deployed or upgraded on a VM, perform the following steps to locate and rectify the fault.

  1. Log in to ServiceStage and choose Application Management > Application List.
  2. Click the application name. The Overview page is displayed.
  3. On the Environment View tab, select an environment to view the application components that have been deployed in the environment.
  4. Click the name of a component that is not ready. On the Overview page of the component instance that is displayed, obtain the name of the component instance.
  5. Choose Update. On the Update page, obtain the version number of the component instance.
  6. Choose Instance and click before the instance which fails to be started or installed.
  7. Click the Events tab to view the error information. If the system displays a message indicating that the port is occupied, you can deploy a port again.
  8. If the log information obtained in 6 is not clear, obtain the logs of the component instance from the ECS.

    1. Click the node where the instance resides to go to the host details page. If an EIP has been bound to the node, click the EIPs tab to obtain the EIP of the node and use the SSH client tool to connect to the node. Alternatively, click Remote Login in the upper-left corner to log in to the node and run the following command:
      cd /var/log/application/{component_instance_name}/{version}

      Replace {component_instance_name} with the component instance name obtained in 4 and {version} with the version number obtained in 5.

      Run the ls command, and then run the cd command to access the sub-directory displayed after the ls command is run.

    2. Obtain the detailed error logs from the sub-directory.

      If the component is a Tomcat8 component, view the catalina.out log to check the errors reported during Tomcat startup.

      For other types of applications, view the start_app.log file to check the errors reported during the startup.