Skip to content
New issue

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

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

Already on GitHub? # to your account

vscode connect fails #58

Closed
alon1samuel opened this issue Apr 15, 2024 · 4 comments
Closed

vscode connect fails #58

alon1samuel opened this issue Apr 15, 2024 · 4 comments

Comments

@alon1samuel
Copy link

Trying to connect using vscode has failed since about a week ago,
I'm managing to connect with SSH fine, but vscode itself fails.

Looks like a permissions error?

Getting a tar error which not sure how to fix:

[11:38:35.267] stderr> tar: code: Cannot change ownership to uid 1000, gid 1000: Operation not permitted
[11:38:35.267] stderr> tar: Exiting with failure status due to previous errors
[11:38:35.268] > ERROR: tar exited with non-0 exit code: 0
@alon1samuel
Copy link
Author

Update:
Checked and I've downgraded to Remote - SSH version to v0.109.0
Now it works!

Was previously on v0.110.1

@ivan-khvostishkov
Copy link
Contributor

Hi, @alon1samuel , thanks for raising this issue with the upstream repository! I will try to understand if it's a bug or a feature.

@ivan-khvostishkov
Copy link
Contributor

One of the users also reported that the following command might help when downgrading:

rm -rf ~/.vscode-server

@ivan-khvostishkov
Copy link
Contributor

As it turns out, the problem occurs because SageMaker Studio has the home directory mounted on EFS and tar cannot change permissions:

root@sagemaker-data-science-ml-m5-large-c6af45d22b9c5a94bb29700daf4d:~/.vscode-server# tar xzvf vscode-cli-f1e16e1e6214d7c44d078b1f0607b2388f29d729.tar.gz 
code
tar: code: Cannot change ownership to uid 1000, gid 1000: Operation not permitted
tar: Exiting with failure status due to previous errors
root@sagemaker-data-science-ml-m5-large-c6af45d22b9c5a94bb29700daf4d:~/.vscode-server# df -h .
Filesystem         Size  Used Avail Use% Mounted on
127.0.0.1:/200060  8.0E   42G  8.0E   1% /root

@alon1samuel Thank you for testing to the solution:

microsoft/vscode-remote-release#9792 (comment)

I also tried setting "Remote.SSH: Use Exec server" to false and it works. I think we can close this issue for now, since I'm adding this recommendation to the documentation.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants