Failed to Configure the MindCluster ToolBox Environment Variable Script

Symptom

When the MindCluster ToolBox environment variable configuration script set_env.sh is executed, an error message is displayed.

root@****:/opt# source /usr/local/Ascend/toolbox/set_env.sh
/root/mxIndex does not comply with security rules group write. exiting

or

[root@******] does not comply with security rules other write. exiting

Possible Causes

The permission or owner group of the user who runs the command is different from that of some files.

Solution

Solution 1: Run the following commands to reset the environment variables and configure the environment variable script (the default path of the root user is used as an example):

unset LD_LIBRARY_PATH
source /usr/local/Ascend/toolbox/set_env.sh

Solution 2: If the fault persists, check whether the permission on the directory where the error is reported is too high. If yes, change the permission to 755 and perform the operation again. (Note that all upper-layer directories will be verified recursively.)

Solution 3: If the fault still persists, run the following commands to temporarily avoid the fault:

export PATH=$PATH:/usr/local/Ascend/toolbox/latest/Ascend-DMI/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/dcmi
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/Ascend/driver/lib64
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/Ascend/driver/lib64/driver