Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation of ms-python.python fails: read ECONNRESET #7281

Open
1 of 2 tasks
michal-zima-cnb opened this issue Mar 26, 2025 · 3 comments
Open
1 of 2 tasks

Installation of ms-python.python fails: read ECONNRESET #7281

michal-zima-cnb opened this issue Mar 26, 2025 · 3 comments
Labels
bug Something isn't working triage This issue needs to be triaged by a maintainer

Comments

@michal-zima-cnb
Copy link

michal-zima-cnb commented Mar 26, 2025

Is there an existing issue for this?

  • I have searched the existing issues

OS/Web Information

  • Web Browser:
  • Local OS:
  • Remote OS: Ubuntu 22.04.5 LTS
  • Remote Architecture: x86-64
  • code-server --version: 4.98.2 e2c489d with Code 1.98.2

Steps to Reproduce

  1. After successful installation of Code Server on Linux server (Ubuntu), running command for installation of python extension on server:
    code-server --install-extension ms-python.python
  2. Command ends with following errors:
Installing extensions...
read ECONNRESET
Failed Installing Extensions: ms-python.python
  1. This machine is behind firewall, but I had following hostnames/ports enabled on firewall (to allow installation of extensions and also installation of Code Server itself):
    code-server.dev:443
    marketplace.visualstudio.com:443
    az764295.vo.msecnd.net:443
    code.visualstudio.com:443
    update.code.visualstudio.com:443
    vscode.download.prss.microsoft.com:443
    download.visualstudio.microsoft.com:443
    open-vsx.org:443
    xextensions.coder.com:443

  2. I also tried to download vsix file of this extension on Ubuntu server and install it from this file using commands:

curl --output /home/jovyan/ms-python.python-2025.2.0.vsix https://open-vsx.org/api/ms-python/python/2025.2.0/file/ms-python.python-2025.2.0.vsix
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
code-server --install-extension /home/jovyan/ms-python.python-2025.2.0.vsix

But installation failed as well - see output of this command:

Installing extensions...
Error: End of central directory record signature not found. Either not a zip file, or file is truncated.
    at F9 (file:///usr/lib/code-server/lib/vscode/out/server-main.js:48:2327)
    at file:///usr/lib/code-server/lib/vscode/out/server-main.js:48:3655
    at /usr/lib/code-server/lib/vscode/node_modules/yauzl/index.js:40:7
    at /usr/lib/code-server/lib/vscode/node_modules/yauzl/index.js:190:5
    at Immediate.<anonymous> (/usr/lib/code-server/lib/vscode/node_modules/yauzl/index.js:705:38)
    at process.processImmediate (node:internal/timers:483:21) {
  code: 'Extract',
  name: 'Extract'
}
Failed Installing Extensions: file:///home/jovyan/ms-python.python-2025.2.0.vsix

Expected

Installation of code server extension on server should be succesfull
a) Either using command (thus installation directly from Open-VSX marketplace):
code-server --install-extension ms-python.python
b) Or from downloaded visx file:
code-server --install-extension /home/jovyan/ms-python.python-2025.2.0.vsix

Actual

See Steps to Reproduce

Logs

Screenshot/Video

No response

Does this bug reproduce in native VS Code?

No response

Does this bug reproduce in GitHub Codespaces?

No response

Are you accessing code-server over a secure context?

  • I am using a secure context.

Notes

No response

@michal-zima-cnb michal-zima-cnb added bug Something isn't working triage This issue needs to be triaged by a maintainer labels Mar 26, 2025
@code-asher
Copy link
Member

code-asher commented Mar 26, 2025

I checked a random extension and the .vsix seems to download from https://openvsxorg.blob.core.windows.net so maybe that one also needs to be allowed. If not, you may need to check what your firewall is blocking to see if there is anything else.

I think even installing from .vsix still makes some network requests.

@michal-zima-cnb
Copy link
Author

I checked a random extension and the .vsix seems to download from https://openvsxorg.blob.core.windows.net so maybe that one also needs to be allowed. If not, you may need to check what your firewall is blocking to see if there is anything else.

I think even installing from .vsix still makes some network requests.

OK, I will, ask for opening openvsxorg.blob.core.windows.net:443 on firewall and try it once again and let you know then.
Thanks
Michal

@michal-zima-cnb
Copy link
Author

After allowing openvsxorg.blob.core.windows.net:443 on firewall, I was able to install ms-python.python extension:

code-server --install-extension ms-python.python --verbose --log trace
[2025-03-28T11:02:41.427Z] debug Found VS Code arguments; spawning VS Code CLI
[2025-03-28T11:02:41.429Z] debug Running Code CLI
Installing extensions...
Installing extension 'ms-python.python'...
Extension 'ms-python.debugpy' v2025.4.1 was successfully installed.
Extension 'ms-python.python' v2025.2.0 was successfully installed.

Thanks @code-asher for your advice/help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage This issue needs to be triaged by a maintainer
Projects
None yet
Development

No branches or pull requests

2 participants