Help Center/ ModelArts/ Troubleshooting/ DevEnviron/ Custom Image Faults/ Faults of Custom Images on Notebook Instances
Updated on 2026-11-10 GMT+08:00
Faults of Custom Images on Notebook Instances
If an error occurs when using a custom image, the possible causes are as follows:
- The custom image does not belong to user ma-user or user group ma-group.
- The /home/ma-user directory that stores the custom image does not belong to user ma-user or user group ma-group.
- The directory permissions of /home/ma-user must be set to 750 for the custom image.
- The custom image occupies key directories used by ModelArts, for example, the directory is created as a soft link or the directory cannot be read or written. As a result, the instance fails to be started or the SSH, Jupyter, and CodeServer functions are abnormal. Key directories used by ModelArts include:
- System/Service directories: /modelarts, /opt, and /home/ma-user ($HOME)
- Runtime configuration directories in $HOME: $HOME/.ssh, $HOME/.jupyter, $HOME/.modelarts, $HOME/.vscode-server, $HOME/.env, $HOME/.pip, $HOME/log, and ${HOME}/.code-server-extensions. Retain default settings for these directories. If these directories do not exist, they will be automatically created by the platform upon instance startup. Store your code and data in the mounted working directory $WORK_DIR, which is not subject to the preceding restrictions.
- The created custom image cannot run properly by running the docker run command on the local host.
- Jupyterlab is installed by the user, which causes a conflict. In this case, you need to run the Jupyterlab commands on the local host to list related static file paths, and delete and uninstall the Jupyterlab service in the image.
- The user service uses ports 8888 and 8889 of the official development environment. In this case, modify the process port number.
- PYTHONPATH and sys.path are specified by the user image. In this case, the fault is caused by the service startup invoking conflict. You need to start the instance before specifying PYTHONPATH and sys.path.
- A dedicated resource pool with SUDO permissions enabled is used. In this case, when a custom image is used, the SUDO tool is not installed or is incorrectly installed.
- The used CANN and CUDA environments are not compatible.
- The Docker image configuration is wrong, or there is a network or firewall block, or problems with file permissions, missing dependencies, or build commands.
- Check whether the following problems occur in the Anaconda environment:
- You might have created an empty folder in the Anaconda environment directory {conda}/envs or created an invalid folder in the environment's lib directory. This can break the Anaconda directory structure.
- You might have deleted necessary files in an environment directory. This can stop the Anaconda environment from working correctly.
- For details about SSH troubleshooting, see Accessing a Notebook Instance Using SSH for Troubleshooting.
Parent topic: Custom Image Faults
What is your overall rating for this page?
0
1
2
3
4
5
6
7
8
9
10
Very dissatisfiedVery satisfied
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot