Troubleshooting Approach
Prerequisites
Before performing fault localization, ensure that you are familiar with basic HCCL concepts and auxiliary fault localization functions.
For HCCL, fault codes cover most common issues. If the error message does not contain fault code information, or if the fault code is EI9999, the issue may be a relatively rare fault scenario or an internal HCCL problem. In such cases, analyze the issue based on the actual CANN logs and code. If the issue cannot be resolved, contact technical support.
For issues without a clear first reported error, when performing fault localization in a large cluster, it is necessary to sort out the behavior of each rank and identify the root node through the dependencies between ranks. To address this challenge, HCCL provides the link setup root node localization capability and the cluster heartbeat capability, and it outputs diagnostic results for common issues. For related principles, see Link Setup Failure Troubleshooting Approach and Cluster Heartbeat Mechanism.
This document is applicable to the following scenarios:
- The descriptions of the HCCL implementation mechanisms in this document are intended solely to explain the principles of various failure modes and to assist in analyzing fault symptoms and identifying root causes. If any content related to operational mechanisms in this document conflicts with the corresponding documentation for those mechanisms, the latter shall prevail.
- Some CANN log examples in this document may be adjusted as versions are updated. Users are advised to focus on the key information in the logs. In case of significant discrepancies, the actual log information shall prevail.
- When an HCCL exception occurs during service execution, error log information from the HCCL component will appear in the CANN log. If no error log from the HCCL component is found in the CANN log, it is necessary to check whether error information exists from other components. If no errors are found, attention should be paid to whether the training script itself has anomalies, or whether there are abnormal conditions such as core dumps or process hangs.
Fault Diagnosis-Related Environment Variables
HCCL_CONNECT_TIMEOUT, HCCL_EXEC_TIMEOUT
Timeout durations for HCCL during the link setup phase and the execution phase. It is recommended that the value configured for HCCL_CONNECT_TIMEOUT be smaller than that for HCCL_EXEC_TIMEOUT, so that the first error information can be correctly reported in complex scenarios, thereby distinguishing whether the blocking of an abnormal service process is caused by the local end or the remote end.
-
A switch for recording HCCL operator-level input parameters. When the root cause of a cluster behavior consistency issue cannot be identified through other means, this environment variable can be enabled to record the collective communication behavior on different ranks, and cross-card horizontal comparison can be used to assist in locating the point where the behavior divergence is introduced.
-
HCCL module-level log switch. During operator development and debugging, this configuration can be used to analyze log information such as algorithm selection and task orchestration within the operator.
-
Advanced HCCL fault detection configuration capability. For details, see the environment variable description. It is recommended to keep the default value.
HCCL-Related Log Description
HCCL log information is recorded in CANN logs. For details about CANN logs, see Log Reference.
- When HCCL reports an error, key fault information is printed in the debug directory of CANN logs. In addition, in some service scenarios where training frameworks are used, HCCL also prints key error information in the service logs.
- In the run directory of CANN logs, HCCL records some key runtime logs by default, such as communicator initialization and destruction (printed by default) and communication operator dispatch (requires the
HCCL_ENTRY_LOG_ENABLEenvironment variable to be enabled). Examples of key logs are as follows:Communicator initialization:
For Ascend 950PR&950DT products, the log example is as follows:
Entry-HcclGetRootInfo V950 Entry-HcclCommInitRootInfo V950, rankId[0], rankNum[16].- rankId: Rank number of the current rank within the communicator.
- rankNum: Size of the communicator.
For Atlas A3 products and Atlas A2 products, the log example is as follows:
Entry-HcclGetRootInfo:rootInfo[0x7fffcd65f130], deviceLogicId[0] Entry-HcclCommInitRootInfoConfigInner:ranks[16], rank[0], rootinfo: host ip[127.10.0.1] port[60000] nicDeploy[1] identifier[group_name_0], deviceLogicId[0]- ranks: Size of the communicator.
- rank: Rank number of the current rank within the communicator.
- rootinfo: Information about the root node.
- identifier: Name of the communicator.
Communicator destruction:
For Ascend 950PR&950DT products, the log example is as follows, where
commindicates the communicator name:Entry-HcclCommDestroy V950 comm[group_name_0]For Atlas A3 products and Atlas A2 products, the log example is as follows:
Entry-HcclCommDestroy: op_base comm destroy beginCommunication operator dispatch (requires enabling the HCCL_ENTRY_LOG_ENABLE environment variable):
For Ascend 950PR&950DT products, the log example is as follows:
Entry-HcclAllReduce: tag[AllReduce_127.10.0.1%eth1_30000_0_1736576907435382], sendBuf[0x12e7bf550000], recvBuf[0x12e7bf550000], count[531260224], dataType[float32], reduceOp[sum], streamId[5], deviceId[0]- tag: Communication operator identifier.
- sendBuf: Input data address pointer.
- recvBuf: Output data address pointer.
- count: Data volume.
- dataType: Data type.
- reduceOp: Reduce computation type.
- streamId: Stream on which the communication operator is executed.
- deviceId: Device logical ID delivered by the communication operator.
For Atlas A3 products and Atlas A2 products, the log example is as follows:
Entry-HcclAllReduce: tag[AllReduce_127.10.0.1%eth1_30000_0_1736576907435382], sendBuf[0x12e7bf550000], recvBuf[0x12e7bf550000], count[531260224], dataType[float32], op[sum], localRank[0], streamId[5],comm[0x331c9c00], deviceLogicId[0]- tag: Communication operator identifier.
- sendBuf: Input data address pointer.
- recvBuf: Output data address pointer.
- count: Data volume.
- dataType: Data type.
- op: Reduce computation type.
- localRank: Local rank number.
- streamId: Stream on which the communication operator is executed.
- comm: Communicator handle.
- deviceLogicId: Device logical ID delivered by the communication operator.
To facilitate quick retrieval and identification of communicator, local end, and link information, HCCL provides quick retrieval keywords:
Communicator Key Info,LocalRank Key Info, andLinkInfo.For Ascend 950PR&950DT products, the log example is as follows:
[Communicator Key Info]identifier[group_name_0] rankSize[8] comm[0x331c9c00] [LocalRank Key Info]userRank[3] deviceLogicId[1] [LinkInfo]userRank[3] remoteRank[4] localProtocol[6] remoteProtocol[6] engine[AICPU_TS] channel[1/1]- Communicator key information:
identifier[communicator name],rankSize[communicator size],comm[communicator handle]. - Local key information:
userRank[rank number within communicator],deviceLogicId[device logical ID]. - Link key information:
userRank[local rank number],remoteRank[remote rank number],localProtocol[local communication protocol],remoteProtocol[remote communication protocol],engine[communication engine],channel[current channel index/total number of channels].
For Atlas A3 products and Atlas A2 products, the log example is as follows:
For example, executing
grep -r "Communicator Key Info"yields the following information:run/plog/plog-858941_20251210195327204.log:[INFO] HCCL(858941,all_reduce_test):2025-12-10-19:53:28.131.350 [hccl_communicator_attrs.cc:327] [858941][Communicator Key Info]identifier[127.0.0.1%enp_60000_0_1765367607599032] rankSize[8] serverNum[1] moduleNum[1] superPodNum[0] multiModuleDiffDeviceNumMode[0] multiSuperPodDiffServerNumMode[0]Communicator key information:
identifier[communicator name],rankSize[communicator size],serverNum[number of servers within communicator],moduleNum[number of modules within communicator],superPodNum[number of SuperPoDs within communicator],multiModuleDiffDeviceNumMode[Whether the device count differs between modules],multiSuperPodDiffServerNumMode[Whether the server count differs between SuperPoDs]. In the information, "1" indicates yes and "0" indicates no.For example, executing
grep -r "LocalRank Key Info"yields the following information:run/plog/plog-858941_20251210195327204.log:[INFO] HCCL(858941,all_reduce_test):2025-12-10-19:53:28.131.357 [hccl_communicator_attrs.cc:330] [858941][LocalRank Key Info]userRank[6] hostIp[127.0.0.1] devicePhyId[6] server[127.0.0.1] deviceIp[0.0.0.0] superPodId[0] useSuperPodMode[0] isStandardCard[0]Local key information:
userRank[Rank number within communicator],hostIp[host-side IP],devicePhyId[physical ID],server[node information],deviceIp[device-side IP],superPodId[SuperPoD ID],useSuperPodMode[Whether it is SuperPoD mode],isStandardCard[Whether it is a standard card scenario]. In the information, "1" indicates yes, and "0" indicates no.
- Communicator key information:
To query the environment variables that have been successfully configured, their configured and effective values are printed in the
run/plogdirectory of CANN logs.For Ascend 950PR&950DT products, you can query the effective values and sources of environment variables (environment variables or default values) by searching for the keyword
HCCL_ENV. In some versions, you can search forbase_configorEnv configand view the following logs together with the environment variable name. If the environment variable configuration is abnormal, search for[InitGroupStage][EnvConfig]and refer to Environment Variable Configuration Exception Troubleshooting Approach.[INFO] HCCL(229424,python3.8):2025-12-23-22:31:40.239.170[base_config.cc:33][229424][Init][EnvVarParam]Env config "HCCL_IF_IP" is not set. Default value is used. [INFO] HCCL(229424,python3.8):2025-12-23-22:31:40.239.176[base_config.cc:33][229424][Init][EnvVarParam]Env config "HCCL_IF_BASE_PORT" is not set. Default value is used. [INFO] HCCL(229424,python3.8):2025-12-23-22:31:40.239.181[base_config.cc:33][229424][Init][EnvVarParam]Env config "HCCL_SOCKET_IFNAME" is not set. Default value is used. [INFO] HCCL(229424,python3.8):2025-12-23-22:31:40.239.187[base_config.cc:33][229424][Init][EnvVarParam]Env config "HCCL_WHITELIST_DISABLE" is not set. Default value is used. [INFO] HCCL(229424,python3.8):2025-12-23-22:31:40.239.192[base_config.cc:33][229424][Init][EnvVarParam]Env config "HCCL_HOST_SOCKET_PORT_RANGE" is not set. Default value is used. [INFO] HCCL(229424,python3.8):2025-12-23-22:31:40.239.197[base_config.cc:33][229424][Init][EnvVarParam]Env config "HCCL_SOCKET_FAMILY" is not set. Default value is used. [INFO] HCCL(229424,python3.8):2025-12-23-22:31:40.239.206[base_config.cc:33][229424][Init][EnvVarParam]Env config "HCCL_CONNECT_TIMEOUT" is parsed.For the following products, the actual effective values of environment variables for each process can be queried by searching for the keyword
HCCL_ENV. For example, execute:grep -r "HCCL_ENV" run/plog/plog-_xxx_.log.- Atlas A3 products
- Atlas A2 products
- Atlas training products
- Atlas inference products
After the command is executed, the following information is obtained:
[INFO] HCCL(1595259,alltoall_test):2026-01-06-15:38:29.881.877 [externalinput.cc:598] [1595259][HCCL_ENV] HCCL_CONNECT_TIMEOUT set by default to [120]s [INFO] HCCL(1595259,alltoall_test):2026-01-06-15:38:29.881.882 [externalinput.cc:558] [1595259][HCCL_ENV] HCCL_EXEC_TIMEOUT set by default to [1836]s [INFO] HCCL(1595259,alltoall_test):2026-01-06-15:38:29.881.886 [externalinput.cc:663] [1595259][HCCL_ENV] HCCL_INTRA_PCIE_ENABLE set by default to [1], HCCL_INTRA_ROCE_ENABLE set by default to [0] [INFO] HCCL(1595259,alltoall_test):2026-01-06-15:38:29.881.890 [externalinput.cc:742] [1595259][HCCL_ENV] environmental variable PROFILING_MODE and GE profiling option is not set, default: false [INFO] HCCL(1595259,alltoall_test):2026-01-06-15:38:29.881.895 [externalinput.cc:833] [1595259][HCCL_ENV] HCCL_WHITELIST_DISABLE set by environment to [0] [INFO] HCCL(1595259,alltoall_test):2026-01-06-15:38:29.881.912 [externalinput.cc:880] [1595259][HCCL_ENV] HCCL_IF_IP is not set [INFO] HCCL(1595259,alltoall_test):2026-01-06-15:38:29.881.915 [externalinput.cc:936] [1595259][HCCL_ENV] HCCL_SOCKET_IFNAME set by default to [EmptyString] [INFO] HCCL(1595259,alltoall_test):2026-01-06-15:38:29.881.917 [externalinput.cc:903] [1595259][HCCL_ENV] HCCL_SOCKET_FAMILY is not set and is used by default [AF_INET] [INFO] HCCL(1595259,alltoall_test):2026-01-06-15:38:29.881.920 [externalinput.cc:865] [1595259][HCCL_ENV] HCCL_IF_BASE_PORT set by default to [60000] [INFO] HCCL(1595259,alltoall_test):2026-01-06-15:38:29.881.988 [externalinput.cc:1170] [1595259][HCCL_ENV] HCCL_RDMA_TC set by default to [132] [INFO] HCCL(1595259,alltoall_test):2026-01-06-15:38:29.881.991 [externalinput.cc:1205] [1595259][HCCL_ENV] HCCL_RDMA_SL set by default to [4] [INFO] HCCL(1595259,alltoall_test):2026-01-06-15:38:29.882.058 [externalinput.cc:1250] [1595259][HCCL_ENV] HCCL_RDMA_TIMEOUT set by default to [20] [INFO] HCCL(1595259,alltoall_test):2026-01-06-15:38:29.882.064 [externalinput.cc:1284] [1595259][HCCL_ENV] HCCL_RDMA_RETRY_CNT set by default to [7] [INFO] HCCL(1595259,alltoall_test):2026-01-06-15:38:29.882.069 [externalinput.cc:1370] [1595259][HCCL_ENV] HCCL_BUFFSIZE set by environment to [1]M [INFO] HCCL(1595259,alltoall_test):2026-01-06-15:38:29.882.072 [externalinput.cc:621] [1595259][HCCL_ENV] HCCL_DETERMINISTIC set by default to [false] [INFO] HCCL(1595259,alltoall_test):2026-01-06-15:38:29.882.074 [externalinput.cc:1395] [1595259][HCCL_ENV] HCCL_DIAGNOSE_ENABLE set by default to [0] [INFO] HCCL(1595259,alltoall_test):2026-01-06-15:38:29.882.077 [externalinput.cc:1484] [1595259][HCCL_ENV] HCCL_ENTRY_LOG_ENABLE set by default to [0] [INFO] HCCL(1595259,alltoall_test):2026-01-06-15:38:29.882.081 [externalinput.cc:1505] [1595259][HCCL_ENV] HCCL_INTER_HCCS_DISABLE is not set, default value is FALSE. [INFO] HCCL(1595259,alltoall_test):2026-01-06-15:38:29.882.090 [externalinput.cc:1569] [1595259][HCCL_ENV] environmental variable HCCL_OP_EXPANSION_MODE is [HOST], aicpuUnfold[0], aivMode[0], enableFfts[1] [INFO] HCCL(1595259,alltoall_test):2026-01-06-15:38:29.882.096 [externalinput.cc:1420] [1595259][HCCL_ENV] HCCL_RDMA_QPS_PER_CONNECTION is set to default value [1] [INFO] HCCL(1595259,alltoall_test):2026-01-06-15:38:29.882.099 [externalinput.cc:1454] [1595259][HCCL_ENV] HCCL_MULTI_QP_THRESHOLD is set to default value [512]KB [INFO] HCCL(1595259,alltoall_test):2026-01-06-15:38:29.882.116 [externalinput.cc:1724] [1595259][HCCL_ENV][ParseRetryEnable] HCCL_OP_RETRY_ENABLE set by environment variable to [L0:0,L1:0,L2:0]. [INFO] HCCL(1595259,alltoall_test):2026-01-06-15:38:29.882.120 [externalinput.cc:1736] [1595259][HCCL_ENV] HCCL_OP_RETRY_PARAMS is not set, default value MaxCnt is [1], HoldTime is [5000]ms, IntervalTime is [1000]ms [INFO] HCCL(1595259,alltoall_test):2026-01-06-15:38:29.882.123 [externalinput.cc:1778] [1595259][HCCL_ENV] HCCL_LOGIC_SUPERPOD_ID set by environment to [0] [INFO] HCCL(1595259,alltoall_test):2026-01-06-15:38:29.882.125 [externalinput.cc:525] [1595259][HCCL_ENV] HCCL_RDMA_PCIE_DIRECT_POST_NOSTRICT set by default to [EmptyString], rdmaFastPost is [0] [INFO] HCCL(1595259,alltoall_test):2026-01-06-15:38:29.882.128 [externalinput.cc:791] [1595259][HCCL_ENV][Parse][MultiQpSrcPortConfigPath]environmental variable HCCL_RDMA_QP_PORT_CONFIG_PATH is empty [INFO] HCCL(1595259,alltoall_test):2026-01-06-15:38:29.882.131 [externalinput.cc:1800] [1595259][HCCL_ENV] HCCL_DEBUG_CONFIG is not set, debugConfig set by default to 0x0
Rapid Fault Localization and Delimitation Approach
Determine whether the error is HCCL-related.
- For common error scenarios, HCCL reports error information and fault information in the service console logs. If a fault code such as
EI****orEJ****is found in the service logs, the fault can be diagnosed based on the corresponding fault information, or the relevant sections can be checked in combination with the error information in the CANN logs. For the fault code list, see HCCL-Related Fault Codes. - In addition to the fault code information printed on the console, HCCL prints ERROR-level logs of the HCCL component in the CANN logs. Therefore, if no error log of the HCCL component is found in the CANN logs, it is necessary to check whether there are error messages from other components. If no error is found, check whether the training script itself is abnormal, or whether there are other anomalies such as core dumps or process hangs.
- For common error scenarios, HCCL reports error information and fault information in the service console logs. If a fault code such as
Collect all CANN logs.
Since HCCL collective communication is a globally coordinated behavior within a communicator, an HCCL error on a single node is often caused by waiting for a peer timeout. In such cases, the root cause must be investigated in conjunction with the log information of the peer. For HCCL fault localization and demarcation, CANN logs from all nodes in the cluster must be collected, including logs from both the debug directory and the run directory.
Confirm the current error phase and perform troubleshooting based on the phase.
HCCL services involve three phases: communicator initialization, parameter plane establishment, and communication operator execution. Since the hardware resources, communication topology, and synchronization methods used in different phases differ significantly, first confirm the phase in which the current HCCL error occurs, and then refer to the corresponding section for further troubleshooting based on the phase.
HCCL has added multi-level retrieval keywords for common fault scenarios. You can quickly identify the current error phase based on the keywords in the error log, and perform further troubleshooting and localization based on the error information. For details about multi-level retrieval keywords, see HCCL Multi-Level Retrieval Keywords. The following log indicates that a timeout error occurred during the operator execution phase, and the current operator expansion mode is HOST mode:
[ERROR] HCCL(858209,all_reduce_test):2025-12-10-19:52:32.589.097 [task_exception_handler.cc:27] [858274][TaskExecStage][Timeout][HOST]Task run failed, base information is streamID:[1740], taskID[23], tag[AllReduce_127.0.0.1%enp_60000_0_1765367469951573], AlgType(level 0-1-2):[fullmesh-ring-NHR].NOTE: The multi-level retrieval keyword feature is supported only in CANN 8.5.0 and later versions. For unsupported versions or scenarios where no keywords are retrieved, the current error phase can be determined using other methods.
HCCL provides communicator creation interfaces and communication operator interfaces. Both types of interfaces are synchronously submitted and asynchronously executed. Therefore, the following scenarios can be distinguished:
If the service fails when calling the communicator creation interface, or if keywords such as
topoinfoandranktableappear in the error logs, refer to the Communicator Initialization Stage chapter for further troubleshooting.If the service fails when calling the communication operator interface, or if the keyword
transportappears in the error logs, refer to the Parameter Plane Link Setup Stage chapter for further troubleshooting.If both the communicator creation interface and the communication operator submission succeed, but an HCCL operator execution failure occurs during stream synchronization, or if keywords such as "TaskExceptionHandler", "FFTS+ run failed", or "Task run failed" appear in the error logs, refer to the Task Dispatch and Execution Stage chapter for further troubleshooting.
In addition to the key information from these three phases, if explicit error code information such as
EI0001appears in the service console logs, you can directly locate the corresponding fault code in the subsequent content based on the error code and proceed with further troubleshooting.
HCCL Multi-Level Retrieval Keywords
HCCL-Related Fault Codes
This section provides a quick reference table and does not constitute a complete list of fault codes. For complete fault code definitions, symptoms, possible causes, and solutions, see HCCL Error Code Reference. For scenario-specific troubleshooting guidance, see Fault Diagnosis.
The following plog keyword table applies only to Ascend 950PR&950DT products and can be used to quickly locate common faults on these products. The third-level keyword further identifies the task execution mode or exception type. Values include HOST, AICPU, AIV, CCU, and CQE ERROR. If input parameter verification and environment variable verification do not enter the task execution phase, no third-level keyword is available.
| Fault Code or Scenario | Primary Keyword | Secondary Keyword | Tertiary Keyword |
|---|---|---|---|
| EI0001 environment variable configuration exception | InitGroupStage | EnvConfig | - |
| EI0003 operator input parameter verification failure | TaskExecStage | InvalidArgument | - |
| EI0002 (HOST execution timeout) | TaskExecStage | Timeout | HOST |
| Other HOST execution exceptions | TaskExecStage | RunFailed | HOST |
| EI0002 (AICPU execution timeout) | TaskExecStage | Timeout | AICPU |
| Other AICPU execution exceptions | TaskExecStage | RunFailed | AICPU |
| Other AIV execution exceptions | TaskExecStage | RunFailed | AIV |
| EI0002 (CCU execution timeout) | TaskExecStage | Timeout | CCU |
| Other CCU execution exceptions | TaskExecStage | RunFailed | CCU |
| CQE error | TaskExecStage | RunFailed | CQE ERROR |
| CQE error detected by heartbeat | TaskExecStage | HeartbeatAbnormal | CQE ERROR |
| EI0007 communicator initialization resource application failure | InitGroupStage | Resource | - |
| EI0007 parameter plane resource application failure | InitChannelStage | Resource | - |
| EI0009 transport initialization failure | InitGroupStage | RunFailed | - |
| EI0014 rankTable cluster configuration verification failure | InitGroupStage | RanktableCheck | - |
| EI0015 cluster information negotiation phase exception | InitGroupStage | RanktableDetect | - |
| EI0016 communicator configuration item verification failure | InitGroupStage | RanktableCheck | - |
Fault code descriptions are subject to the product scope specified in the table. Multi-level retrieval keywords are used to locate the fault phase and are not intended to uniquely identify a fault code. For Ascend 950PR&950DT products, EI0014 and EI0016 both belong to configuration verification in the communicator initialization phase, so their retrieval keywords are the same. Specific causes must be distinguished based on the fault code and error information.
For example, you can use grep -F '[TaskExecStage][InvalidArgument]' to locate operator input parameter verification errors, and use grep -F '[TaskExecStage][Timeout][AICPU]' to locate AICPU execution timeouts. Communicator Key Info, LocalRank Key Info, and LinkInfo are used to assist in retrieving communicator, local rank, and link information. Use them together as needed.
The following fault code description table applies to Atlas A3 products and Atlas A2 products.
| Fault Code | Fault Code Description |
|---|---|
| EI0001 | Environment Variable Configuration Error |
| EI0002 | Communication Operator Execution Timeout |
| EI0003 | Collective communication operator input parameter verification failed. Determine the specific input parameter based on the error information. |
| EI0004 | rankTable File Loading Failure |
| EI0005 | Parameter Consistency Verification Failure |
| EI0006 | Communication Operator Parameter Plane Link Setup Timeout |
| EI0007 | Resource initialization failed. Determine the specific cause based on the error information. |
| EI0008 | HCCL versions are inconsistent and verification failed. Determine the cause based on the version information in the error information. |
| EI0009 | Transport initialization failed. Determine the specific cause based on the error information. |
| EI0010 | Inter-card link setup within a server failed. Determine the specific cause based on the error information. |
| EI0011 | QP Memory Resource Application Failure |
| EI0012 | SDMA Task Exception During Operator Execution |
| EI0013 | ROCE CQE ERROR Exception During Operator Execution |
| EI0014 | Cluster Information Verification Failure |
| EI0015 | Communicator Cluster Information Negotiation Phase Timeout |
| EI0016 | Inconsistent TLS Information Configuration |
| EI0019 | Server Node Port Binding Failure During Communicator Creation Phase or Port Binding Failure During Parameter Plane Link Setup Phase |
| EI9999 | Internal HCCL error. Troubleshoot in conjunction with CANN logs. If the issue persists, contact technical support. |