jeanp413 / open-remote-ssh

VSCode Remote Development: Open any folder on a remote machine using SSH.
MIT License
279 stars 38 forks source link

Unable to open remote window: Error server token file not found #157

Open hoopahmadness opened 2 months ago

hoopahmadness commented 2 months ago

Local client:

Remote Server

For the last year or two I've been successfully accessing vscodium on the remote. However, about a month ago I had some issues on my desktop and had to do a repair install, reinstalling VSCodium but keeping all my old config. Everything works except accessing my remote. I get this terminal output when I attempt to open a remote window:

Server script already installed in /Users/steve.hooper/.vscodium-server/bin/7d98c6de73fb939f1eb4b8a500c569b858b2d297/bin/codium-server
Server script is already running /Users/steve.hooper/.vscodium-server/bin/7d98c6de73fb939f1eb4b8a500c569b858b2d297/bin/codium-server
Error server token file not found /Users/steve.hooper/.vscodium-server/.7d98c6de73fb939f1eb4b8a500c569b858b2d297.token
76b072647b23853575ada1d2: start
exitCode==1==
listeningOn====
connectionToken====
logFile==/Users/steve.hooper/.vscodium-server/.7d98c6de73fb939f1eb4b8a500c569b858b2d297.log==
osReleaseId==unknown==
arch==x86_64==
platform==darwin==
tmpDir==/tmp==
76b072647b23853575ada1d2: end

[Error  - 13:15:57.496] Error resolving authority
Error: Couldn't install vscode server on remote server, install script returned non-zero exit status
    at t.installCodeServer (/home/steve/.vscode-oss/extensions/jeanp413.open-remote-ssh-0.0.45-universal/out/extension.js:1:441144)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async /home/steve/.vscode-oss/extensions/jeanp413.open-remote-ssh-0.0.45-universal/out/extension.js:1:404941

I've searched these errors online and seen various places telling me to try removing/moving .vscodium-server/ on the remote. I've also seen https://github.com/jeanp413/open-remote-ssh/issues/148 where apparently upgrading to the newest version of codium helped. Neither have helped me. Is there something I'm missing? Why can't I create a server token file?

fooryo commented 1 month ago

My problem was (and still is !) that the ssh start script was not able to find the executable $HOME/.vscode-server/bin/<somehash>/bin/code-server on the target machine, but a codium-server was already present so i created a code-server link that points to codium-server

Both my machines are Arch derivatives. Both my machines have installed (from the aur)