aws-samples / amazon-sagemaker-codeserver

Hosting code-server on Amazon SageMaker
MIT No Attribution
52 stars 17 forks source link

Sagemaker Notebook Instance in VPC, code-server --install-extension hangs #6

Closed nicornk closed 2 years ago

nicornk commented 2 years ago

I am running a notebook instance in a VPC with egress controls.

The command code-server --install-extension ms-python.python --force of the install-codeserver.sh file hangs on step:

Installing extensions...

Do you know which URL the code-serverprocess is reaching out to, to download the extension?

giuseppeporcelli commented 2 years ago

code-server uses the Open VSX gallery to offer extensions. Please check this section in the documentation for further information.

Based on my experiments, the URLs to allowlist are: https://open-vsx.org/ https://openvsxorg.blob.core.windows.net/

Alternatively, you can pre-download the extension vsix file, and install from it as described here.

nicornk commented 2 years ago

Allowlisting https://open-vsx.org/ did the trick. Thanks