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
Managed Threat Detection
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
On this page
Help Center/ DataArts Studio/ FAQs/ DataArts Factory/ What Should I Do If a Shell/Python Node Fails and Error "session is down" Is Reported?

What Should I Do If a Shell/Python Node Fails and Error "session is down" Is Reported?

Updated on 2024-08-30 GMT+08:00

This section uses the Shell node as an example.

Symptom

The Shell node fails to be executed, but the Shell script is executed successfully.

Possible Causes

  1. Obtain the run logs of the Shell node.
    [2021/11/17 02:00:36 GMT+0800] [INFO] No job-level agency is set, Workspace-level agency is dlg_agency, Execute job use agency dlg_agency, job id is 07572F197E4642E5BE549C2B656F157Ctm7cHkHd
    [2021/11/17 02:00:36 GMT+0800] [DEBUG] ===============================================
    [2021/11/17 02:00:36 GMT+0800] [INFO] Get response from agent when try to submit shell running job :
    [2021/11/17 02:00:36 GMT+0800] [INFO]
    {
    "jobResultList":[
    {
    "jobId":"a567f7f5-3c9e-4dfc-a464-bd477ac5b1ea",
    "status":"created",
    "errorCode":0,
    "failCount":0,
    "result":[
    
    ]
    }
    ],
    "agentId":"614853ee-c1c6-456d-9aa6-fc84ad1281ed"
    }
    [2021/11/17 02:00:36 GMT+0800] [DEBUG] ===============================================
    [2021/11/17 02:05:56 GMT+0800] [DEBUG] ===============================================
    [2021/11/17 02:05:56 GMT+0800] [INFO] Job Run finish , the raw output is :
    [2021/11/17 02:05:56 GMT+0800] [INFO]
    {
    "jobId":"a567f7f5-3c9e-4dfc-a464-bd477ac5b1ea",
    "status":"failed",
    "errorCode":3427,
    "errorMessage":"Shell script job execute failed.",
    "failCount":0,
    "result":[
    {
    "is_success":false,
    "exeTime":300.609
    }
    ]
    }
    [2021/11/17 02:05:56 GMT+0800] [DEBUG] ===============================================
    [2021/11/17 02:05:56 GMT+0800] [DEBUG] ===============================================
    [2021/11/17 02:05:56 GMT+0800] [INFO] The return code is : [-1].
    [2021/11/17 02:05:56 GMT+0800] [DEBUG] ===============================================
    [2021/11/17 02:05:56 GMT+0800] [INFO] Execute shell script job finished.
    [2021/11/17 02:05:56 GMT+0800] [ERROR] Shell exit code is not 0
    [2021/11/17 02:05:56 GMT+0800] [DEBUG] ===============================================
    [2021/11/17 02:05:56 GMT+0800] [ERROR] Shell script job execute failed. Please contact ECS Service.
    [2021/11/17 02:05:56 GMT+0800] [ERROR] Exception message: RuntimeException: Shell script job execute failed. Please contact ECS Service.
    [2021/11/17 02:05:56 GMT+0800] [ERROR] Root Cause message:RuntimeException: Shell script job execute failed. Please contact ECS Service.
  2. Ensure that the values of the following parameters in the sshd_config file are as follows.

    Cause: The SSH session times out and is disconnected. As a result, the Shell node fails.

Solution

  1. Open the /etc/ssh/sshd_config file of the ECS and add or update the following parameter values:

    ClientAliveInterval 300

    ClientAliveCountMax 3

    NOTE:

    The ClientAliveInterval parameter specifies the interval for the server to send requests to a client. The default value is 0, indicating that the server does not send requests to the client. Value 300 indicates that the server sends a request every five minutes and the client sends a response accordingly. In this process, a persistent connection is maintained. The default value of ClientAliveCountMax is 3. If the number of times that the client does not respond to requests sent by the server reaches the value of this parameter, the server disconnects the connection to the client. Normally, the client sends responses.

  2. After the modification, restart the sshd of the ECS and run the following command:
    restart sshd.service

  3. Check whether sshd is started successfully. (The following figure shows that sshd is started successfully.)

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