Login always fails #525

Closed
opened 2025-11-07 06:40:05 -06:00 by GiteaMirror · 7 comments
Owner

Originally created by @pete1450 on GitHub (Dec 13, 2019).

Subject of the issue

Fresh install build from source with mysql and I can register accounts and they get into my db. When attempting to log in on the web frontend I always get an error that my username or password is incorrect. I've tried this many times with different emails/passwords. Unsure how to debug going forward.

Your environment

  • Bitwarden_rs version: 1.13.0
    build from source
  • Install method:
  • Clients used: web
  • Reverse proxy and version: nginx 1.10.3
  • Version of mysql/postgresql: mysql
  • Other relevant information:

Steps to reproduce

Started with the recommended systemd setup. Enter an email/name/password then attempt to log in with it

Expected behaviour

Should be logged in

Actual behaviour

Incorrect email or password error

Relevant logs

[2019-12-12 23:55:03][request][INFO] POST /api/accounts/prelogin
[2019-12-12 23:55:03][response][INFO] POST /api/accounts/prelogin (prelogin) => 200 OK
[2019-12-12 23:55:03][request][INFO] POST /identity/connect/token
[2019-12-12 23:55:03][error][ERROR] Username or password is incorrect. Try again. IP: 192.168.1.205. Username: .
[2019-12-12 23:55:03][response][INFO] POST /identity/connect/token (login) => 400 Bad Request

Originally created by @pete1450 on GitHub (Dec 13, 2019). ### Subject of the issue Fresh install build from source with mysql and I can register accounts and they get into my db. When attempting to log in on the web frontend I always get an error that my username or password is incorrect. I've tried this many times with different emails/passwords. Unsure how to debug going forward. ### Your environment * Bitwarden_rs version: 1.13.0 build from source * Install method: * Clients used: web * Reverse proxy and version: nginx 1.10.3 * Version of mysql/postgresql: mysql * Other relevant information: ### Steps to reproduce Started with the recommended systemd setup. Enter an email/name/password then attempt to log in with it ### Expected behaviour Should be logged in ### Actual behaviour Incorrect email or password error ### Relevant logs [2019-12-12 23:55:03][request][INFO] POST /api/accounts/prelogin [2019-12-12 23:55:03][response][INFO] POST /api/accounts/prelogin (prelogin) => 200 OK [2019-12-12 23:55:03][request][INFO] POST /identity/connect/token [2019-12-12 23:55:03][error][ERROR] Username or password is incorrect. Try again. IP: 192.168.1.205. Username: <myemail>. [2019-12-12 23:55:03][response][INFO] POST /identity/connect/token (login) => 400 Bad Request
Author
Owner

@BlackDex commented on GitHub (Dec 13, 2019):

Have you tried to create a new/second account and see if you can login with that?
Also, if you login to the /admin page, do you see the username you want to use listed there?

@BlackDex commented on GitHub (Dec 13, 2019): Have you tried to create a new/second account and see if you can login with that? Also, if you login to the /admin page, do you see the username you want to use listed there?
Author
Owner

@pete1450 commented on GitHub (Dec 13, 2019):

I have created a couple different ones and I am receiving the welcome email for them. As to your second question that is a little odd; the admin page show that there is some user but no information about it. There is an icon and it says they are invited but that is all. Also when trying to delete the user from that page it always tells me I have the wrong email in the confirmation.

@pete1450 commented on GitHub (Dec 13, 2019): I have created a couple different ones and I am receiving the welcome email for them. As to your second question that is a little odd; the admin page show that there is some user but no information about it. There is an icon and it says they are invited but that is all. Also when trying to delete the user from that page it always tells me I have the wrong email in the confirmation.
Author
Owner

@BlackDex commented on GitHub (Dec 13, 2019):

May i ask which mysql database you use?
Is that MariaDB?

@BlackDex commented on GitHub (Dec 13, 2019): May i ask which mysql database you use? Is that MariaDB?
Author
Owner

@BlackDex commented on GitHub (Dec 13, 2019):

Well, i just did a test build with only mariadb 10.3 libraries installed and bitwaren_rs is linked to libmariadb.so.3 in my case, instead of libmysqlclient.so.20 when using the vanila-mysql.
But both versions seem to work just fine, not issues using it.

Could you try the mysql docker build just to rule out build issues?

@BlackDex commented on GitHub (Dec 13, 2019): Well, i just did a test build with only mariadb 10.3 libraries installed and bitwaren_rs is linked to libmariadb.so.3 in my case, instead of libmysqlclient.so.20 when using the vanila-mysql. But both versions seem to work just fine, not issues using it. Could you try the mysql docker build just to rule out build issues?
Author
Owner

@pete1450 commented on GitHub (Dec 13, 2019):

Good idea. I used it pointing to my mysql db and it added a user and let me log in. That seems to point to a build issue. What's odd to me is even the self built version is able to create the tables and add a user to them.

@pete1450 commented on GitHub (Dec 13, 2019): Good idea. I used it pointing to my mysql db and it added a user and let me log in. That seems to point to a build issue. What's odd to me is even the self built version is able to create the tables and add a user to them.
Author
Owner

@BlackDex commented on GitHub (Dec 19, 2019):

Then, try to put the log_level to debug or trace even, see if that shows something specific.

@BlackDex commented on GitHub (Dec 19, 2019): Then, try to put the log_level to debug or trace even, see if that shows something specific.
Author
Owner

@dani-garcia commented on GitHub (May 13, 2020):

Closed due to inactivity.

@dani-garcia commented on GitHub (May 13, 2020): Closed due to inactivity.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vaultwarden#525