Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Login always fails #766

Closed
pete1450 opened this issue Dec 13, 2019 · 7 comments
Closed

Login always fails #766

pete1450 opened this issue Dec 13, 2019 · 7 comments

Comments

@pete1450
Copy link

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

@BlackDex
Copy link
Collaborator

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?

@pete1450
Copy link
Author

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.

@BlackDex
Copy link
Collaborator

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

@BlackDex
Copy link
Collaborator

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?

@pete1450
Copy link
Author

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.

@BlackDex
Copy link
Collaborator

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

@dani-garcia
Copy link
Owner

Closed due to inactivity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants