coder / code-server

VS Code in the browser
https://coder.com
MIT License
66.93k stars 5.48k forks source link

[Bug]: I cannot login to code-server, I copied the password on config.yaml but not work. Incorrect password #5484

Closed alvin0530 closed 3 weeks ago

alvin0530 commented 1 year ago

Is there an existing issue for this?

OS/Web Information

Steps to Reproduce

  1. type in my domain
  2. login page
  3. enter password on config.yaml file and show Incorrect password

Expected

Login successfully

Actual

Incorrect password

Logs

trace child:1902 got message {"message":{"type":"handshake","args":{"bind-addr":"127.0.0.1:8080","auth":"password","password":"XXXXXXXX","config":"/root/.config/code-server/config.yaml","verbose":true,"user-data-dir":"/root/.local/share/code-server","extensions-dir":"/root/.local/share/code-server/extensions","log":"trace","host":"127.0.0.1","port":8080,"proxy-domain":[],"_":[],"usingEnvPassword":false,"usingEnvHashedPassword":false}}}

Screenshot/Video

No response

Does this issue happen in VS Code or GitHub Codespaces?

Are you accessing code-server over HTTPS?

Notes

No response

jsjoeio commented 1 year ago

How are you starting code-server?

alvin0530 commented 1 year ago

I follow the instruction below

curl -fOL https://github.com/coder/code-server/releases/download/v4.6.0/code-server_4.6.0_amd64.deb sudo dpkg -i code-server_4.6.0_amd64.deb sudo systemctl enable --now code-server@$USER

https://coder.com/docs/code-server/latest/guide#using-lets-encrypt-with-nginx

I'd just update code-server to 4.6.0 and restart it.

But it doesn't work.

jsjoeio commented 1 year ago

Can you share the contents of config.yaml? (make sure to redact the password)

alvin0530 commented 1 year ago

bind-addr: 127.0.0.1:8080 auth: password password: password cert: false

jsjoeio commented 1 year ago

Thanks! Hmm...if you access directly (no nginx) does it work as expected?

code-asher commented 3 weeks ago

Closing as stale but feel free to comment if you come back to this.