aws-samples / amazon-sagemaker-codeserver

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

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

Closed nicornk closed 1 year ago

nicornk commented 1 year 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 1 year 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 1 year ago

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