I'm trying to open an SSH session with a host that previously worked (the host is called 'melville'). Eventually a dialog opens that says "Could not establish connection to "melville". The "Remote- SSH" output pane is displaying the following:
[email protected]
SSH Resolver called for "ssh-remote+melville"
SSH Resolver called for host: melville
Setting up SSH remote "melville"
Using commit id "2737cde4facc8411982862742f5c6cd3dabef323" and quality "insider" for server
Install and start server if needed
> Installation already in progress...
> e8c95ce6-b93c-43b8-a6b3-fb870516379d##24##
"install" terminal command done
Received install output: e8c95ce6-b93c-43b8-a6b3-fb870516379d##24##
Server installation process already in progress - waiting and retrying 1
> Installation already in progress...
> e8c95ce6-b93c-43b8-a6b3-fb870516379d##24##
"install" terminal command done
Received install output: e8c95ce6-b93c-43b8-a6b3-fb870516379d##24##
Server installation process already in progress - waiting and retrying 2
> Installation already in progress...
> e8c95ce6-b93c-43b8-a6b3-fb870516379d##24##
"install" terminal command done
Received install output: e8c95ce6-b93c-43b8-a6b3-fb870516379d##24##
Server installation process already in progress - waiting and retrying 3
...
I solved this by manually deleting $HOME/.vscode-server-insiders from the host. Not sure if you want this issue closed though since I don't know how it got into this corrupted state to begin with.
Actually, once I clicked 'Open folder' after the successful connection, the 'Open folder' dialog has a progress bar under it that never terminates and eventually the window refreshes on its own and the connection fails, bringing me back to the state in my original post.
OK, I think that has something to do with the fact that I have a .profile file in my home directory on the host that changes the $HOME environment variable to a new directory.
Actually, that doesn't seem relevant - even if I get rid of that, this problem persists. It seems maybe related to the home directory being an AFS mount. If I change my home directory to a local directory, everything works fine.
It sounds likely that flock is not working correctly on AFS...
I was able to solve this by killing all vscode processes on the server:
pkill -u ${USER} -f vscode
This is probably the same as issues I've had with NFS. Can you try installing the latest _nightly_ version of the extension and set "remote.SSH.lockfilesInTmp": true?
I'm not personally in a position to test this anymore, but happy for someone else to take up the mantle.
I actually happen to be from the same institute as @malmaud and had the same AFS issue. I can confirm that @roblourens lockfilesInTmp: true does work!!! Thank you so much!!!
Wonderful, thanks for trying it. I will close this as a duplicate of the other NFS locking issues.
Hi, @roblourens . Can you tell me where to set "remote.SSH.lockfilesInTmp": true ? I can't find "remote.SSH.lockfilesInTmp" in vscode settings. Thanks!
Make sure you are using the nightly version of the extension
Thanks for your reply
Most helpful comment
I solved this by manually deleting
$HOME/.vscode-server-insidersfrom the host. Not sure if you want this issue closed though since I don't know how it got into this corrupted state to begin with.