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
Getting "command opensshremotes/opensshremotesexplorer.[COMMAND]' not found #621
Comments
Also reproduced on: For me, it occurs when the remote machine is no longer accessible |
Using archlinux, I have the same issue:
|
@jonstelly There was a similar issue opened, #579, and the user said
I don't know what that means but does that mean anything to you? |
I had to go look, but it doesn't look like nscd is installed by default on Ubuntu (not 19.04 at least). From tracking down what code I could, I'm guessing the remoting extension references: which calls: this libuv function (pull request) to try and get some user info. This is happening on the client (not on the remote host) but this method from libuv won't return anything for my user since my user account is an active directory login using sssd which doesn't have a corresponding local/passwd account. I can't see the remoting extension code, but it seems like to support non-local logins on Linux, the extensions will need to catch this error and provide some fallback implementation. The data returned is pretty basic stuff:
and I wouldn't be surprised if the username is the only thing the extension is interested in, so finding a fallback should be straight forward (I hope! I really want to be able to use this remoting feature from my underpowered laptop). Let me know if there's any other diagnostic information I can help collect. |
Thanks for the details, I was expecting this was a Node issue (and the other issue was expressed as a native crash!) but in the Node docs I see
So we should handle that on our end. |
Do you not have a home dir? Where is your user |
Home is Just to validate my assumption I wrote a couple quick tests and it seems my assumption is incorrect. The node os.userInfo() method returns data, so does libuv's uv_os_get_passwd. Maybe the Testing libuvRequires main.c
Command:
Testing Nodenodetest.js
Command:
|
Thanks for trying that. It does look like if you don't have an entry in |
I'm also getting this issue (Linux, Solus), is there any short term fix available? |
I fixed this to fall back on $HOME, if that is set in your environment, then it should work in monday's nightly build of remote-ssh. |
The nightly build fixes my issue, thanks, @roblourens! |
Ubuntu 19.04 and VS Code installed via Snap, happens on two machines:
Steps to Reproduce:
>remote-ssh: *
command 'opensshremotes.*' not found
I've tried disabling all other extensions and restarting VS Code, still get the same errors. Looking in the developer tools window I see an interesting error (below). I'm logging on via active directory integration roughly following this guide and from some googling it looks like this error seems to happen because there is no user entry in
/etc/passwd
.Is there anything I can do to either help collect more data, or some sort of work-around I could try besides logging in as a local user instead of an AD/sssd one?
Does this issue occur when you try this locally?: Yes
Does this issue occur when you try this locally and all extensions are disabled?: Yes
The text was updated successfully, but these errors were encountered: