Help Center/ ModelArts/ FAQs/ Notebook (New Version)/ Failures to Access the Development Environment Through VS Code/ What Do I Do If a Remote Connection Failed After VS Code Is Opened?
Updated on 2024-06-15 GMT+08:00

What Do I Do If a Remote Connection Failed After VS Code Is Opened?

If your local PC runs Linux, see possible cause 2.

Possible Cause 1

Automatically installing the VS Code plug-in ModelArts-HuaweiCloud failed.

Solution

Method 1: Verify that the VS Code network is accessible. Search for ModelArts-HuaweiCloud in the VS Code marketplace. If the following information is displayed, a network error occurred. In this case, switch to another proxy or use another network.

Search for ModelArts-HuaweiCloud again. If the following information is displayed, the network is normal. Then, switch back to the ModelArts management console and try to access VS Code again.

Method 2: If the error message shown in the following figure is displayed, the VS Code version is outdated. Upgrade the VS Code to 1.57.1 or the latest version.

Possible Cause 2

The local PC runs Linux, and VS Code is installed as user root. When you access VS Code, the information "It is not recommended to run Code as root user" is displayed.

Solution

Install VS Code as a non-root user, return to the ModelArts management console, and click Access VS Code.