C
Coder.com•2y ago
Hannsr

Jetbrains Gateway connection

Hey everyone, trying to setup Gateway to connect to a workspace for further testing, but I'm not sure if I'm missing something here. According to the docs I have to enter the Host like on the coder server itself (e.g. coder.workspace-name) but that hostname won't be resolved since Gateway is not running on the same machine as coder itself. Do I have to run a SSH Tunnel to the server running coder or what am I missing here? Thanks!
28 Replies
Phorcys
Phorcys•2y ago
you have to run coder config-ssh before
Hannsr
Hannsr•2y ago
I did, but gateway is still on a different machine so won't find coder.workspace Maybe for added context: Our Coder Server is running on a Hetzner Cloud Server.
Phorcys
Phorcys•2y ago
i don't really get it gateway is running on a non-coder machine ?
Hannsr
Hannsr•2y ago
Yes.
Phorcys
Phorcys•2y ago
then what if you install the coder CLI on that machine i don't get it isn't jetbrains gateway just a client ?
Hannsr
Hannsr•2y ago
Oh so I install coder CLI on the local system, run coder loginand it should work then
Phorcys
Phorcys•2y ago
yup
Hannsr
Hannsr•2y ago
ah alright, so that's my missing step then. Let's see if that does the trick. Mh... there doesn't seem to be a native Apple M1 Coder cli?
Phorcys
Phorcys•2y ago
?
No description
Phorcys
Phorcys•2y ago
maybe that's it ? I'm unsure as I've never used M1 before the CLI is in coder/coder btw
Hannsr
Hannsr•2y ago
aaah, I was at coder/coder-cli
Phorcys
Phorcys•2y ago
yeah, I've done that mistake first time I used coder, see #feedback for what I've just posted
Hannsr
Hannsr•2y ago
that looks like to be the full server though?
Phorcys
Phorcys•2y ago
server and CLI are in the same binary I don't really understand that decision but that's how they architectured it
Hannsr
Hannsr•2y ago
ah alright so I simply extract the binary and should be fine. I'M also very new to mac.. ^^ Ok had to run the install script - docs could be clearer here you have to run it locally for mac/linux just like on the server itself - and it seems to work. Although Gateway is now stuck at "connecting" and I get The workspace agent lost connection!when running ssh coder.workspacename via cli. I could login and everything, just not ssh into a workspace
Phorcys
Phorcys•2y ago
i defo agree on the docs, it's been a recurring issue where people don't really understand what to do with the CLI problem can you run coder ssh workspacename -v and show me the output ?
Hannsr
Hannsr•2y ago
No description
Phorcys
Phorcys•2y ago
does the terminal work from the web on that same machine ?
Hannsr
Hannsr•2y ago
mhh.. nope. I get status Runningbut it looks like this. Looks like it didn't properly came back when I rebooted the server to add more RAM earlier.
No description
Phorcys
Phorcys•2y ago
hah.. makes more sense now
Hannsr
Hannsr•2y ago
Just restarted the workspace and it seems to work
Phorcys
Phorcys•2y ago
yay yeah it has a not so good time picking up orphans
Hannsr
Hannsr•2y ago
Gateway now also connects and seems to work fine. sweet. Thanks!
Phorcys
Phorcys•2y ago
great! bla bla bla /resolve you know the rest lol
Hannsr
Hannsr•2y ago
Haha yeah ^^
Phorcys
Phorcys•2y ago
cool to confirm that gateway works now there was an issue with ssh proxycommand before
Hannsr
Hannsr•2y ago
Perfect. I don't know how to use it, but the devs will 😉 So thanks again
Codercord
Codercord•2y ago
Marked the thread as resolved.
Want results from more Discord servers?
Add your server