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

See original GitHub issue

Is there an existing issue for this?

  • 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?

  • I cannot reproduce this in VS Code.
  • I cannot reproduce this in GitHub Codespaces.

Are you accessing code-server over HTTPS?

  • I am using HTTPS.

Notes

No response

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
alvin0530commented, Aug 24, 2022

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

0reactions
jsjoeiocommented, Aug 24, 2022

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Bug]: Hashed passwords not being read correctly · Issue #5127
I just noticed that this bug is being reported under coder/code-server. I was actually running linuxserver/code-server but the documentation for ...
Read more >
Why i can't login to code-server on my Debian VM?
config/code-server/config.yaml i copy the password and put into the textbox, but when i try to login, it say's me: "Incorrect password". I ...
Read more >
FAQ - code-server v4.8.0 docs - Coder
The default config defines the following behavior: Listen on the loopback IP port 8080; Enable password authorization; Do not use TLS.
Read more >
Manage access tokens - Docker Documentation
Docker Hub lets you create personal access tokens as alternatives to your password. You can use tokens to access Hub images from the...
Read more >
Home Assistant Community Add-on: Visual Studio Code
File access possible; The HomeAssistant VS Code Helper cannot connect to HASS and does show e.g. auto completion. Error is always: Error ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found