microsoft / vscode-remote-release

Visual Studio Code Remote Development: Open any folder in WSL, in a Docker container, or on a remote machine using SSH and take advantage of VS Code's full feature set.
https://aka.ms/vscode-remote
Other
3.61k stars 275 forks source link

Configurable vscode server download path #9986

Open lyquid617 opened 2 months ago

lyquid617 commented 2 months ago

Hello there, I tried connecting to a remote server, but got an out-of-space error. Check the log file, found that it tries to download the server to /tmp and / run out of space. After cleaning up the /, it works fine.

After searching I found there is remote.ssh:server install path which is default ~ to configure install path. I wonder if the download path can also be configured.

The related log snippet is as follows:

[12:14:10.122] [server] Downloading Visual Studio Code server -> /tmp/.tmpp40D4U/vscode-server-linux-legacy-x64.tar.gz
[12:14:10.122] [server] server download progress: 0/59538362 (0%)
[12:14:10.163] [server] server download progress: 2105344/59538362 (4%)
[12:14:10.183] [server] server download progress: 4210688/59538362 (7%)
[12:14:10.203] [server] server download progress: 6316032/59538362 (11%)
[12:14:10.220] [server] server download progress: 8421376/59538362 (14%)
[12:14:10.238] [server] server download progress: 10526720/59538362 (18%)
[12:14:10.259] [server] server download progress: 12632064/59538362 (21%)
[12:14:10.279] [server] server download progress: 14737408/59538362 (25%)
[12:14:10.345] [server] Error installing server: failed to download file: No space left on device (os error 28)
prajzwal08 commented 4 weeks ago

Hi, Was the issue solved?

ritwikmishra commented 6 days ago

The following worked for me (you will need root privileges).