-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
Unable to install extensions with code --install-extension
in bash.
#147670
Comments
I am unable to install most extensions at this time as well. Just turned on settings sync on a new machine and almost all extensions report:
When downloading a .vsix from the marketplace I receive a similar error, I attempted that with Remote - SSH. Repeatedly attempting to install the same extension will eventually succeed though, seems the marketplace is having serious issues. |
I'm having the same issues. I reinstalled windows 11 and tried with a clean install of vscode but still got the same results. |
LMAO, yesterday atom also starts to have a server 500 error when installing plugins. I am wondering whether there is a large hacker team who is attempting to attack all popular code editors... |
Have confirmed that my script can successfully get finished now. git clone https://gist.github.com/cainmagi/fdf835fcc03b68749f4b0f473dae157a dockertest-vscode
docker build -t vscode:test --build-arg BASE_IMAGE=ubuntu:focal dockertest-vscode Since I have not modified the script. I think Microsoft has fixed the Server issue. It should be caused by the temporarily low performance of the server. |
ubuntu:bionic
(18.04) andubuntu:xenial
(16.04). I have not tested it withubuntu:impish
orubuntu:jammy
.Bug description 📑
When writing Dockerfiles, I may need to install code extensions by bash commands like this:
where
hookyqr.beautify
can be the ID of any extension.Until 4/17/2022, this command can work well. However, since 4/18/2022, the command may cause the following issues:
Server returned 503
. However, if run the same command again, the extension may be successfully installed. A similar problem is mentioned in the issue Server returned 503 error. #57867.Corrupt ZIP: end of central directory record signature not found
. However, if run the same command again, the extension may be successfully installed. A similar problem is mentioned in the issue Corrupted ZIP, no re-download occurs #117169.Bug report 📜
Currently, when installing the extensions, we may meet such bugs:
Both of the two bugs happen randomly. It means that if we use the same command to install an extension, these bugs may happen or not happen. This problem is very annoying, because when we want to install a lot of extensions, it seems to have an inevitable failure with a non-specific extension.
My suspicion 🤔
I have tried to download the extension file
.vsix
from the market website. For example,https://marketplace.visualstudio.com/search?term=hookyqr.beautify&target=VSCode&category=All%20categories&sortBy=Relevance
I can find that the market website is not very stable now. But I can still download the extension if I refresh the page for several times.
After that, I can install the extension like this:
This time, I can find the following phenomena:
Server 503 Error
if the downloaded package is not an extension pack.Corrput ZIP
error, although the possibility is significantly reduced compared to use the online installation method. If I repeat the same command after a failure, it may be successfully installed.So I guess that both
code 1.66.2
and the market website have abnormal behaviors, please help me verify the problem. No proxy is used with my device. It can get access to any website without any problem.How to reproduce 🔧
Actually, I have written an example Dockerfile for reproducing this bug:
https://gist.github.com/cainmagi/fdf835fcc03b68749f4b0f473dae157a#file-install-vscode-readme-md
Use the following command to build the testing image:
If the users like, they could replace the base image with other Ubuntu releases, like
ubuntu:bionic
.It should fail when installing the extensions at
Step 11/14
now.The text was updated successfully, but these errors were encountered: