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?
Image25 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)
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 ?
no no..
okay lol, I thought your
/
was returning jsonI tried to reach the
buildinfo
path as the coder cli complained.you said it's not resolving to the right IP, so it's very likely that it's a DNS issue
now maybe the CLI isn't using your system DNS or something like that
what if you tried hardcoding coder.example's IP using the hosts file just to see if that does the trick as a workaround
I can try. It points to an ingress.
I'm not really familiar with k8s so maybe I won't be able to help
Well.. that strangely worked...
got a browser and a token.
I guess something with cli resolving issues.
Thank you again!
Marked the thread as unresolved.
Marked the thread as resolved.