Title: JetBrains Gateway 2022.2 RC doesn't work with Coder SSH · Issue #3125 · coder/coder · GitHub
Open Graph Title: JetBrains Gateway 2022.2 RC doesn't work with Coder SSH · Issue #3125 · coder/coder
X Title: JetBrains Gateway 2022.2 RC doesn't work with Coder SSH · Issue #3125 · coder/coder
Description: Problem: On Gateway 2022.2 RC, connecting to Coder over SSH hangs on detecting IDEs. Looking through the logs idea.log it appears that Gateway tests for the presence of an executable utility to find installed IDEs. This utility doesn't e...
Open Graph Description: Problem: On Gateway 2022.2 RC, connecting to Coder over SSH hangs on detecting IDEs. Looking through the logs idea.log it appears that Gateway tests for the presence of an executable utility to fin...
X Description: Problem: On Gateway 2022.2 RC, connecting to Coder over SSH hangs on detecting IDEs. Looking through the logs idea.log it appears that Gateway tests for the presence of an executable utility to fin...
Opengraph URL: https://github.com/coder/coder/issues/3125
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"JetBrains Gateway 2022.2 RC doesn't work with Coder SSH","articleBody":"Problem:\r\n\r\nOn Gateway 2022.2 RC, connecting to Coder over SSH hangs on detecting IDEs. Looking through the logs\r\n\r\n[idea.log](https://github.com/coder/coder/files/9169201/idea.log)\r\n\r\nit appears that Gateway tests for the presence of an executable utility to find installed IDEs. This utility doesn't exist, but Gateway somehow concludes that is does. It then tries to execute this utility and fails.\r\n\r\nTalking with JetBrains, their hypothesis is that our SSH server is not setting command return codes correctly when a PTY is allocated. Notes from Slack below:\r\n\r\n> Any chance something is overriding test shell builtin or unix utility on the host? Or some obscure SSH server setting results in all process exit codes being returned as 0?\r\n> \r\n> \r\n> [Nikolay Kuznetsov](https://app.slack.com/team/U0DL9GFHV)\r\n> [5 hours ago](https://jetbrains.slack.com/archives/C02D5SBFQDC/p1658486725128969?thread_ts=1658444649.351919&cid=C02D5SBFQDC)\r\n> Speaking of, is the SSH server some custom thing that is not OpenSSH?\r\n> \r\n> \r\n> [Spike Curtis](https://app.slack.com/team/U03FEEGB7HV)\r\n> [45 minutes ago](https://jetbrains.slack.com/archives/C02D5SBFQDC/p1658502899833269?thread_ts=1658444649.351919&cid=C02D5SBFQDC)\r\n> It's our custom agent running https://github.com/gliderlabs/ssh\r\n> \r\n> gliderlabs/ssh\r\n> Easy SSH servers in Golang\r\n> Website\r\n> https://godoc.org/github.com/gliderlabs/ssh\r\n> Stars\r\n> 2628\r\n> Added by [GitHub](https://jetbrains.slack.com/services/B01UEG8BS91)\r\n> \r\n> \r\n> [Spike Curtis](https://app.slack.com/team/U03FEEGB7HV)\r\n> [38 minutes ago](https://jetbrains.slack.com/archives/C02D5SBFQDC/p1658503300583469?thread_ts=1658444649.351919&cid=C02D5SBFQDC)\r\n> test seems to be doing the right thing when I execute it through the regular ssh CLI:\r\n> spike@Codebook coder % ssh coder.dogfood test -f /home/coder/.cache/JetBrains/RemoteDev/remote-dev-worker/remote-dev-worker_8be48ed1f7d9d149a663842f0df2735b7433265d1654774596e54ce70af850f2\r\n> spike@Codebook coder % echo $? \r\n> 1\r\n> spike@Codebook coder % ssh coder.dogfood test -f /home/coder/.cache/JetBrains/RemoteDev/remote-dev-worker/remote-dev-worker_7d32e4d2185f31ff477d51c73f533f4a312dfbd63132e75dc59ca2914b3965c4\r\n> spike@Codebook coder % echo $? \r\n> 0\r\n> \r\n> \r\n> [Nikolay Kuznetsov](https://app.slack.com/team/U0DL9GFHV)\r\n> [18 minutes ago](https://jetbrains.slack.com/archives/C02D5SBFQDC/p1658504526900279?thread_ts=1658444649.351919&cid=C02D5SBFQDC)\r\n> Not sure if the repo you linked includes a default handler for \"generic SSH server\" use case. What if you specify -t or -T flags for ssh? Does that affect return value?\r\n> \r\n> \r\n> [Spike Curtis](https://app.slack.com/team/U03FEEGB7HV)\r\n> [13 minutes ago](https://jetbrains.slack.com/archives/C02D5SBFQDC/p1658504808779169?thread_ts=1658444649.351919&cid=C02D5SBFQDC)\r\n> spike@Codebook coder % ssh -T coder.dogfood test -f /home/coder/.cache/JetBrains/RemoteDev/remote-dev-worker/remote-dev-worker_8be48ed1f7d9d149a663842f0df2735b7433265d1654774596e54ce70af850f2\r\n> spike@Codebook coder % echo $?\r\n> 1\r\n> spike@Codebook coder % ssh -t coder.dogfood test -f /home/coder/.cache/JetBrains/RemoteDev/remote-dev-worker/remote-dev-worker_8be48ed1f7d9d149a663842f0df2735b7433265d1654774596e54ce70af850f2\r\n> Connection to coder.dogfood closed.\r\n> spike@Codebook coder % echo $?\r\n> 0\r\n> \r\n> \r\n> [Nikolay Kuznetsov](https://app.slack.com/team/U0DL9GFHV)\r\n> [12 minutes ago](https://jetbrains.slack.com/archives/C02D5SBFQDC/p1658504899869479?thread_ts=1658444649.351919&cid=C02D5SBFQDC)\r\n> Found it I guess. By default Gateway requests a PTY for most commands to allow for SIGHUP-based process termination. Looks like your custom agent fails to properly handle exit codes in such cases.\r\n> \r\n> \r\n> [Spike Curtis](https://app.slack.com/team/U03FEEGB7HV)\r\n> [\u003c 1 minute ago](https://jetbrains.slack.com/archives/C02D5SBFQDC/p1658505602863579?thread_ts=1658444649.351919&cid=C02D5SBFQDC)\r\n> thanks for your help! I'll dig in some more on our side and see if I can sort this out","author":{"url":"https://github.com/spikecurtis","@type":"Person","name":"spikecurtis"},"datePublished":"2022-07-22T16:06:26Z","url":"https://github.com/coder/coder/issues/3125"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:7343ff30-2c93-d3a8-2713-e2475b414f9e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D23A:F7C4C:221587E:2D9F607:6B0193F9 |
| html-safe-nonce | 19399b958401e2c994795d27fbbee02e7e682748f6d2e14ea0edb0b0282ba7aa |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMjNBOkY3QzRDOjIyMTU4N0U6MkQ5RjYwNzo2QjAxOTNGOSIsInZpc2l0b3JfaWQiOiIzODQ4NTg0NzI4MTc3MzgyMzkzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | bb33c93ef0f79b0f0a5704fd9048dd6a697ee3796f14d1e32a04b96d9f72f36f |
| hovercard-subject-tag | issue:1315185721 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/coder/coder/3125/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9ae18fc4a6f4998893c1f8f14732ba9eb68fad42efbb8e31ea585b8ec544110a/coder/coder/issues/3125 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9ae18fc4a6f4998893c1f8f14732ba9eb68fad42efbb8e31ea585b8ec544110a/coder/coder/issues/3125 |
| og:image:alt | Problem: On Gateway 2022.2 RC, connecting to Coder over SSH hangs on detecting IDEs. Looking through the logs idea.log it appears that Gateway tests for the presence of an executable utility to fin... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | spikecurtis |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/coder/coder git https://github.com/coder/coder.git |
| octolytics-dimension-user_id | 95932066 |
| octolytics-dimension-user_login | coder |
| octolytics-dimension-repository_id | 440752086 |
| octolytics-dimension-repository_nwo | coder/coder |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 440752086 |
| octolytics-dimension-repository_network_root_nwo | coder/coder |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width