code-server icon indicating copy to clipboard operation
code-server copied to clipboard

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

Open alvin0530 opened this issue 3 years ago • 5 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

OS/Web Information

  • Web Browser: Chrome
  • Local OS: Windows 11
  • Remote OS: Ubuntu 20.04
  • Remote Architecture:
  • code-server --version: 4.5.1
  • Nginx set up domain

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?

  • [X] I cannot reproduce this in VS Code.
  • [X] I cannot reproduce this in GitHub Codespaces.

Are you accessing code-server over HTTPS?

  • [X] I am using HTTPS.

Notes

No response

alvin0530 avatar Aug 21 '22 03:08 alvin0530

How are you starting code-server?

jsjoeio avatar Aug 22 '22 16:08 jsjoeio

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.

alvin0530 avatar Aug 23 '22 00:08 alvin0530

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

jsjoeio avatar Aug 23 '22 15:08 jsjoeio

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

alvin0530 avatar Aug 24 '22 06:08 alvin0530

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

jsjoeio avatar Aug 24 '22 17:08 jsjoeio

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

code-asher avatar Jul 12 '24 23:07 code-asher