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

Could not find an open VS Code IPC socket. (path /run/user/{UID} does not exist) #15

Open
badaz opened this issue Nov 30, 2022 · 1 comment

Comments

@badaz
Copy link

badaz commented Nov 30, 2022

Hi! Thanks for this repo, it is exactly what I was looking for. Unfortunately it does not work for me as I'm getting this error:

Could not find an open VS Code IPC socket.

Please make sure to connect to this machine with a standard VS Code remote SSH session before using this tool.

I tried killing all instances of vscode server linked to my user on the remote then launched vscode-server again by connecting to remote inside local vscode again, to no avail.

I checked what the script is doing and it seems like the path /run/user/{UID} does not exist on my remote system. I don't know enough of Linux to know more, do you?

Distrib is Debian 10 (buster), Linux kernel 4.19.0-6-amd64

There's only one directory under /run/user on the remote machine, it is named "0" and is not accessible for non root user.
echo $UID for my user returns 1006

Thanks again

@badaz badaz changed the title Could not find an open VS Code IPC socket. Could not find an open VS Code IPC socket. (path /run/user/{UID} does not exist) Nov 30, 2022
@badaz
Copy link
Author

badaz commented Nov 30, 2022

Ok I found out that the socket-ipc files were located in /tmp. Problem is : files for all server users are mixed there, therefore changing the path in the script is not enough, we also have to filter them by connected user

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

No branches or pull requests

1 participant