Got it

Restoring a Container in the Exited State

415 0 0 0 0

Hi, dear!

Good day to you!

This topic describes how to restore a container in the exited state.


Symptom

  1. On the CSP management node, run the docker ps -a | grep -v mesos command to query all CSP containers. Some containers are in the Exited state.

    docker ps -a | grep -v mesos

  2. The container status is Abnormal on the Resources > Edge Sites > Containers page of the portal.


Cause

This issue may occur when the operating system of the management node restarts continuously.


  1. In the scenario where the Docker daemon node restarts continuously, some containers are not started after the first power-off. As a result, HasBeenStartedBefore is not set and then the Docker daemon is powered off again. After the second power-off restart, Docker determines whether to restart the container based on HasBeenStartedBefore of the container on the disk. HasBeenStartedBefore is not set. As a result, the container cannot be started.

  2. The health check scripts of these containers do not process the Exited state. Therefore, the containers are not started.


Impact on Services

  • In a single-node system, login to the CSP portal and service startup are affected.

  • In a cluster, two or three management nodes are deployed, which affects login to the CSP portal and service startup. If this problem occurs on only one management node, there is no impact on functions.


Identification Method

  1. Log in to the CSP management node as user cspexpert and switch to user root.

  2. Run the docker ps -a | grep -v mesos command to query all CSP containers. Some containers are in the Exited state.

    docker ps -a | grep -v mesos


Emergency Operations

  1. Restart the container in the Exited state and check whether the container can be recovered.

  2. Run the docker ps -a|grep -v mesos command to check whether the service is started properly (healthy state). If yes, no further action is required. If the process is not started properly, contact the document author.

    docker ps -a|grep -v mesos

    Note: The docker restart command is used to process the CSP container. Do not use this command to operate the IVS container. The IVS container names start with mesos.

Best wishes!

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.