Older workspace no longer working
I went to fire up an older workspace and I seem to have issues with it.
My first issue was I was installing an older version of Coder for the agent (the version was fixed for some reason).
Now my workspace is running (in k8s), but when VSCode tries to set the remote connection, I get this error:
25 Replies
<#1309440027125612614>
Category
Help needed
Product
Coder OSS (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
I have other workspaces running just fine. So, I decided to look at the Remote-SSH terminal output. The difference where the broken connection happens is here:
The working connection has:
So, I'm guessing that is the cause of the problem, since this value is missing. And that is about as far as I can get with troubleshooting.
Any suggestions to fix this would be greatly appreciated. 🙂
Oh, I also reconfiged SSH with
coder config-ssh
, but that didn't help any.hey @Scott, do you have the full workspace build logs?
yeah, all this command really does is set up your local ssh client's config to be able to connect to Coder workspaces using
ssh coder.<workspace>
I thought VSCode would use that config too, to connect to the workspace. 🤔
Let me get the build logs.
Hmm..is that the right version?
Well, it's the same version running in my running workspaces.
Why it is installing twice, I have no idea.... 🤔
vscode uses a specific config
it's similar to config-ssh but it is still a separate thing
that's weird, it should work okay
Do you know where the VSCode config is saved?
@Phorcys
are you able to ssh into the workspace via
coder ssh
?Hi Ethan. Yes, I can.
It's definitely this error causing the SSH connection to fail:
[12:29:07.291] Failed to parse remote port from server output
it edits your SSH config
Ok. Looks like the config is general to the Coder server. Nothing specific for each workspace. 🤔
So, it's something not being given from the server, when the connection is being made.
The remote port.
Any chance someone from the team that knows more about the SSH inner working can help possibly?
yes
i'll ask internally :-)
Thanks! 🙂
@Scott could you send your template over? (the version used by this specific workspace)
Here is the template.
The workspace is supposed to open next to a Keycloak deployment, to work on html templates for usage within Keycloak.
Looking at the pod, I found this.
Token not getting through as an env variable? 🤔
and you said that
coder ssh
works on that workspace?Yes, without a hitch. 🙂
I've fixed the problem, but don't know the cause. It's the container. I swapped the container for one that was working in another workspace and the connection worked with that other container. Though, I don't know what might be the issue with the old container. I'm going to experiment some more. Maybe I'll figure it out.
that's really weird
please let us know if you find the root cause!
sorry for not answering earlier, i'm not currently home and couldn't find the time to look into it yet
So, I have no idea what can be the issue. This is the container, if you wish to play with it.
docker.io/m8aio/node-18
I've upgraded the container now being used by the workspace to node 20 (and created a new image), which was the base for the other working container too and the workspace is running with the new container perfectly now also. Maybe that was it? I don't know. 🤷🏻♂️
@Phorcys closed the thread.