coder_2.10.2_windows_amd64_installer.exe vs. WSL installation method for code-server? (VS-CODE)
Hey all!
I tried using coder_2.10.2_windows_amd64_installer.exe installation and get the
Error: Invalid Coder SSH authority. Agent not found!
error message. On the web interface, I get a status code 500
error on the Deployment > General
page.
Just to start things off, I would ideally like to have a simple localhost environment that I can pair my PC and laptop together to test out VS-code environment sharing, then move on from there. Is there something I may have glazed over in the guides? Is there a video tutorial that might help me specifically?
I would keep with coder_2.10.2_windows_amd64_installer.exe method, but I would like the most tried and true setup I can use.
All help and feedback is super appreciated!!!
Thanks!69 Replies
<#1236013100348604538>
Category
Help needed
Product
Coder OSS (v2)
Platform
Windows
Logs
Please post any relevant logs/error messages.
How are you running Coder after the installation?
Could you uninstall this and try again with
winget install Coder.Coder
Just to see if installation goes fine.Hey Atif!
So I just installed it but it looks like the env VAR isn't working
I can't use
coder server
in powershell or CMD
And what do you get when you run coder server?
so I could just CD to the coder dir
but env var should just work no?
I CD'd into the dir
.\coder server
and it starts and I can access my 127.0.0.1:3000 URL just like before
still get the status code 500 errorand this error when I try to load the workspace in VS Code
perhaps I'm setting up a workspace/template incorrectly?
did you restart your terminal before running
coder server
?nope
can you open the developer console on that page and screenshot the "Console" tab?
yep one moment
Are there applications out there that could break the coder install?
oh yeah i get the issue
this should really be improved (cc: @Atif)
you should either access your Coder instance via the temporary URL it gave you or run
coder server
with --access-url http://127.0.0.1:3000
or edit /etc/coder/coder.env
if you're running as a serviceI think I get similar problems w the temp url
sec
w temp URL
In VS Code when using Temp URL
same errors
just to reiterate, I did logout of coder on VS code, and tried logging in with both the localhost:3000 and the
try.coder.app
temp URL addressconsole output on temp URL
despite the status code 500 on the
General > Deployment
page
and issues in VS Codeyeah you should try to set an access URL
ouu ok my mistake will try now
w localhost
same error in VS Code
can you screenshot the workspace's page?
I'm on the same network and PC, shouldn't need to worry about externally accessibly at the moment - right?
you don't yeah
oh i meant the actual workspace itself
It's very barren
Shall I start over?
what template did you use ?
None of them really made sense with being hosted on my PC so I tried From Scratch :S
could you send your template over?
also you should probably use the Docker template for a setup like this
main.tf
?yes
oh yeah that can't work
😂
knew it would be something silly like this
you need to run the coder agent's script somewhere
was this somewhere in the guide that I missed?
so in a Docker/k8s container, in a VM, anywhere really
the guide probably doesn't mention that because the template handles it
I see, so I'll wipe my crap template and workspace and try Docker/k8s container
First pass had some errors will try again here
Tried with K8s first now ger this error with Docker
need docker on my PC I presume with this type of error
Okay I think I'm up and running now
yup!
Okay so
I'm in the workspace
things look clean now
you should definitely run Coder on a separate server if you can
Any free options that you know of?
I might just use my laptop unless there's some sort of free cloud tier that's available for just simple testing
not really
though if you run Coder you have to develop in the workspaces
the workspaces won't have access to your files
unless you configure them to mount some folders I guess you could do that
what's the best way to give my laptop access to my coder server hosted on my PC?
is windows firewall port forwarding 3000 good enough?
or is there something else I should consider/need to do?
no, you will need to open ports on your internet router too
even if it's on the same network???
oh i thought external
just same network for now 🙂
remote later!
yeah should be enough
also you might wanna use port 80 instead of 3000
it's not accessible currently without windows firewall which I thought was strange
that way no need for the port in the URL
humor me
is it TCP or UDP?
TCP
HTTP is TCP
how are you trying to access it from your laptop ?
also for external access you could use Tailscale instead of opening ports
i gotta go but i'll take a look at this thread later :-)
yeah I'm unable to access the ip:port right now 😦
all good though! I appreciate your help!
getting close 🙂
Probably we should add a note in start template that it can't be used as is and is only given for refrence purposes.
Or just state that it's like making a VM with no specs attached as-is yes
it needs a agent/engine for it to run etc
\\wsl.localhost\docker-desktop
is where I should see my home directory for my coder server isn't it?
I'm not seeing it
nvm found it 🙂
\\wsl.localhost\docker-desktop-data\data\docker\volumes\coder-blah-home\_data
@Atif any tips for quickly accessing my coder workspace from my PC to my Laptop on the same local network? Should it normally just work??
oopsie nvm :>
Have it on my laptop now. This is working super nice @Phorcys 😄
Docker kind of slaughters my RAM usage. Is there a less intense approach?What are your system specs? And how many workspaces are you running?
Also what are you building/running inside the workspaces?
Honestly on my laptop it kind of makes sense, but my main PC runs a Ryzen 7 5700X + 16DDR4 and VM was on SSD. My memory was tapping out at about 4GB of usage, but I think it makes sense, since it is running basically a VM, with a file server + web server (I think?) for the code sync between my 1 workspace
My single workspace was being used for VS-code file sharing between my main pc and laptop. I tried out code-server on the web later and it's a nice feature. My laptop uses about 100% usage, where as my PC was only getting tapped out by memory. CPU and SSD usage was just fine.
I just had a feeling I guess that there might be a more optimized approach as I probably will use the VSCode remote webUI minimally, and primarily just adding the workspace into VS-code standalone app on both my machines so I can use the same files and see live changes upon CTRL+S
If I made my access-url http://10.x.x.x:3000 like my actual host local IP instead of 127.0.0.1:3000, would that normally help with LAN machines connect in?
I've hosted other local apps on my network just fine without having to mess with firewalls and such before, so I'm just unsure what's going on
yes