Getting 404 upon coder login
Hi all, I've just installed coder on k8s and wanted to create my first template.
The server is accessible from an https endpoint but when running coder login https://coder-server.example I get a 404 for the token url. (the
internal-auth?show_token=true
path)
Am I missing something obvious here?
Image![No description](https://cdn.answeroverflow.com/1042087130761003038/image.png)
25 Replies
hey, this issue occurs because you are using an outdated CLI, can you post the output of
coder version
?
Installed with brew.
yeah, that's the wrong package, this is the CLI for Coder Classic (v1) but your server is using Coder OSS (v2)
I don't know if brew has a package for it but here's the right CLI :
https://github.com/coder/coder
🤦♂️ Thanks.
I was confused too at first since the repo for the Coder v1 CLI is called
coder-cli
, so this doesn't help
lol
you can mark this post as resolved by using /resolve
when it works for youSo I just install
coder
itself and don't run the server? Or is there a specific cli only installation script?
I mean curl -L https://coder.com/install.sh | sh
?yes for that first question, the architecture of Coder OSS is that the CLI is also the server and vice-versa, which took me a bit of time to understand
yup, that's the one
Cool. Thanks. The docs are not clear enough there..
Thanks for the quick response! I'll give it a try.
I definitely agree, I had the same first-use experience than you :)
Something is off.. :/
Running
Looks fine. Not sure why it resolves to this IP address. My server is on private subnets, custom certificate (CA trusted locally)
(Sorry for masking the real url here)
![No description](https://cdn.answeroverflow.com/1042090721404014672/image.png)
I posted about it in #feedback, feel free to add anything
are you sure this is
curl https://coder.example
's output ?
my server responds with HTML, I'm thinking your reverse-proxy might not be treating the CLI and the browser in the same way.I've copy / pasted the url. It's too long 🙂
hmm..
oh okay, so you're not requesting the root ?