Skip to content

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

Closed
@michal-zima-cnb

Description

@michal-zima-cnb

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageThis issue needs to be triaged by a maintainer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions