-
Notifications
You must be signed in to change notification settings - Fork 15
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
Failed to retrieve IDEs: nodename nor servname provided,or not known #534
Comments
Same issue on windows and linux |
Same here, same versions Meanwhile, downgrading the plugin to 2.17.0 fixes the issue: https://github.com/coder/jetbrains-coder/releases/tag/v2.17.0 |
Hmm yeah #521 does seem the most likely culprit. Is this from the "connect" button on the front page of the plugin, or is it from the recent connections page by clicking the Coder entry on the sidebar? If it is the recent connections page, my guess is we broke existing connections by replacing the old cc @bcpeinhardt Thank you for the bug report! |
Tried:
In all cases plugin does not modify .ssh/config v2.18.1 is the same Gateway v2024.3.3 |
Hmm interesting thank you for the update, that might be a different bug then what I was mentioning, or is in addition to that bug. Would you be able to gather the logs and post them or send them to me? Or, if you can scan them for any additional errors or anything that looks off, particularly from |
This is from my attempts with v2.18.0. I could collect full logs tomorrow, is there any option to get more logs from plugin? |
Gateway has a "collect logs" button that will gather up all the logs (the cog icon in the lower left). The plugin logs everything to the But I think we are good on logs, based on the above it seems that it does not write to the SSH file because it thinks there are no workspaces. Which does make sense, with wildcards we do not need to waste time fetching the workspaces and it seems we use an empty set: https://github.com/coder/jetbrains-coder/pull/521/files#diff-4853bc9588279b804a87818f27e8dec76045b44c0df6d10df0d5ab75515f4018R115 But, that means there is a bug when there is no existing config and the workspaces are empty, the plugin aborts early because it thinks there is nothing to do. This is valid for the non-wildcard case, but not the wildcard case, where workspaces are always empty. cc @bcpeinhardt |
Heeeeyyyy I want to add some info since it's the same here - with coder plugin version 2.18.1 in JetBrains Gateway, in Windows als well as new installations in Pop!_OS as well as Ubuntu. In your .ssh/config the plugin created entries like so before: Linux # --- START CODER JETBRAINS coder.mydomain.com
Host coder-jetbrains--myworkspace.main--coder.mydomain.com
ProxyCommand /home/linuxuser/.local/share/coder-gateway/coder.mydomain.com/coder-linux-amd64 --global-config /home/linuxuser/.local/share/coder-gateway/coder.mydomain.com/config --url https://coder.mydomain.com ssh --stdio --usage-app=jetbrains coderuser/myworkspace.main
ConnectTimeout 0
StrictHostKeyChecking no
UserKnownHostsFile /dev/null
LogLevel ERROR
SetEnv CODER_SSH_SESSION_TYPE=JetBrains
Host coder-jetbrains--myworkspace.main--coder.mydomain.com--bg
ProxyCommand /home/linuxuser/.local/share/coder-gateway/coder.mydomain.com/coder-linux-amd64 --global-config /home/linuxuser/.local/share/coder-gateway/coder.mydomain.com/config --url https://coder.mydomain.com ssh --stdio --usage-app=disable coderuser/myworkspace.main
ConnectTimeout 0
StrictHostKeyChecking no
UserKnownHostsFile /dev/null
LogLevel ERROR
SetEnv CODER_SSH_SESSION_TYPE=JetBrains
# --- END CODER JETBRAINS coder.mydomain.com which are being For me the error was, that the ssh host ("nodename or servername") could not be found: But for a workaround this can be re-added, as an example, like so: Linux Host coder-jetbrains-coder.*
ProxyCommand /home/linuxuser/.local/share/coder-gateway/coder.mydomain.com/coder-linux-amd64 --global-config /home/linuxuser/.local/share/coder-gateway/coder.mydomain.com/config --url https://coder.mydomain.com ssh --stdio --usage-app=jetbrains coderuser/myworkspace.main
ConnectTimeout 0
StrictHostKeyChecking no
UserKnownHostsFile /dev/null
LogLevel ERROR
SetEnv CODER_SSH_SESSION_TYPE=JetBrains Windows Host coder-jetbrains-coder.*
ProxyCommand C:\Users\WINDOWSUSER\AppData\Local\coder-gateway\coder.mydomain.com/coder-windows-amd64 --global-config C:\Users\WINDOWSUSER\AppData\Local\coder-gateway\coder.mydomain.com/config --url https://coder.mydomain.com ssh --stdio --usage-app=jetbrains coderuser/myworkspace.main
ConnectTimeout 0
StrictHostKeyChecking no
UserKnownHostsFile /dev/null
LogLevel ERROR
SetEnv CODER_SSH_SESSION_TYPE=JetBrains Note me leaving out any Please keep in mind that the coder plugin will not be able to remove this entry for you in the future, once this has been fixed! I am using this opportunity to a) contribute to this project as can be seen above as well as b) thank you, @code-asher and everyone alse in the process of creating this awesome thing right here!!1 |
Since coder 2.19.0, ssh config seems to not be created in .ssh/config, this lead to Failed to retrieve IDEs: nodename nor servname provided,or not known and it's now impossible to use coder.
If i run coder-ssh with cli, coder config is added in .ssh/config, jetbrains plugin doesn't add anything
Maybe it's due to this ? #531
Coder : v2.19.0
Coder Jetbrains Plugins : v2.18.0
MacOs
The text was updated successfully, but these errors were encountered: