Halaman ini belum tersedia dalam bahasa lokal Anda. Kami berusaha keras untuk menambahkan lebih banyak versi bahasa. Terima kasih atas dukungan Anda.

Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive
Help Center/ Intelligent EdgeFabric/ FAQs/ Edge Application FAQs/ What Do I Do If a Containerized Application Fails to Be Started on an Edge Node?

What Do I Do If a Containerized Application Fails to Be Started on an Edge Node?

Updated on 2022-02-21 GMT+08:00

Symptom

A containerized application cannot be started on an edge node.

Fault Locating

Troubleshooting methods are sorted based on the occurrence probability of the possible causes. You are advised to check the possible causes from high probability to low probability to quickly locate the cause of the problem.

Figure 1 Fault locating
Table 1 Fault locating

Possible Cause

Solution

The containerized application fails to be delivered to the edge node.

For details, see What Do I Do If an Application Fails to Be Delivered to an Edge Node?.

The containerized application is incorrectly configured.

Containerized Application Is Incorrectly Configured

The container image cannot be pulled to the edge node.

For details, see What Do I Do If a Container Image Fails to Be Pulled?.

Containerized Application Is Incorrectly Configured

  1. Log in to the edge node.
  2. Run the following command to check whether the container is running:

    sudo docker ps | grep Application name

    Run the following command to check whether the container exits abnormally:

    sudo docker ps -a | grep Application name

    Run the preceding two commands repeatedly to check whether the container keeps restarting.

    • If the status of your application cannot be queried, go to 3.
    • If your container restarts repeatedly, run the following command to query logs:

      ID=`sudo docker ps -a | grep Application name | awk '{print $1}' `

      sudo docker logs $ID

      The application logs are displayed, based on which you can locate the cause of repeated container restarts. The possible causes are as follows:

      • Image errors

        The image is in error, or the image does not match the system. You can perform the following operations to verify the image on the edge node:

        1. Obtain edge node images.

          docker images

        2. Find your image and obtain the image ID.
        3. Run the docker run command to run the container. Different startup commands apply based on service requirements.
      • Startup parameter errors

        Check whether the startup parameters are correct.

      • Directory mounting errors

        If the image needs to access a special directory on the edge node, ensure that the directory has been mounted during the delivery.

      • NPU issues

        If your application needs to use NPU resources, ensure that you have selected the NPU resources when delivering the application.

        NPU resources are occupied by applications that are not delivered by IEF, resulting in insufficient resources. IEF cannot identify the NPU usage of non-IEF applications. Therefore, check that NPU resources are sufficient.

      • Resource issues

        Ensure that the Limit value of the CPU and memory resources requested when the application is delivered are sufficient. (If the amount of resources requested by the container exceeds the Limit value, the container will be killed repeatedly.) You can conduct verification by setting Limit to a larger value.

      • Health check issues

        If you have configured the health check, ensure that the health check mode is correctly configured. If the health check mode is incorrectly configured, the health check will fail and the container will be restarted repeatedly.

        Log in to the IEF console, choose Edge Applications > Containerized Applications, and click the name of your application. On the details page that is displayed, click the Upgrade tab, and choose Health Check under Advanced Settings to check whether the liveness probe and readiness probe of your application are correctly configured.

        To verify this problem, you can update the application without configuring the health check and check whether the application restarts repeatedly.

      • Health check interval issues

        Check how long it takes for the application to start properly and how long it takes for the system to return health check results.

        Figure 2 Health check configurations

        The health check delay indicates the interval between the time when the application is delivered and the time when a health check is started. If the interval is too short, a health check may start before the application is ready. In this case, the application fails the health check continuously and the container is restarted repeatedly, resulting in a vicious cycle.

        The health check timeout indicates the interval between the time when the health check is started and the time when a response is returned. If no response is returned within the interval, the health check is counted as failed. If the configured health check timeout period is shorter than the time required for the interface to return the result, the health check fails continuously and the application is restarted repeatedly. (This problem may occur when the edge node performance is poor or the service volume on the application is large.)

  3. Check whether the application is successfully delivered.

    1. Run the following command to switch to the root user:

      sudo su

    2. Query application logs.

      cat /var/IEF/sys/log/edge_core.log | grep Application name

    If logs are displayed, the application has been successfully delivered. The possible cause is that the container image fails to be pulled. Locate the fault by referring to What Do I Do If a Container Image Fails to Be Pulled?.

    If no log is displayed, submit a service ticket.

Kami menggunakan cookie untuk meningkatkan kualitas situs kami dan pengalaman Anda. Dengan melanjutkan penelusuran di situs kami berarti Anda menerima kebijakan cookie kami. Cari tahu selengkapnya

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback