code-connect icon indicating copy to clipboard operation
code-connect copied to clipboard

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

Open badaz opened this issue 3 years ago • 1 comments

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 avatar Nov 30 '22 08:11 badaz

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

badaz avatar Nov 30 '22 09:11 badaz