5
[Solved] - Hosting Instance - Login issues
(poptalk.scrubbles.tech)
submitted
2 years ago* (last edited 2 years ago)
by
scrubbles@poptalk.scrubbles.tech
to
c/lemmy_support@lemmy.ml
Hello, I'm having issues with my instance. Everything is working fine, except when I try to log in in these few instances:
- Using a password manager (I have to clear out and type in my username, some sort of validation logic?)
- Mobile Web, haven't been able to log in at all here. Again I paste in my password
- Jerboa, haven't been able to log in once here.
Each time I get a nice HTTP WARN message in my logs that doesn't give me much info except for "password incorrect" - but I use the same password on desktop.
lemmy-lemmy-1 | 2023-06-05T18:46:41.807868Z WARN Error encountered while processing the incoming HTTP request: lemmy_server::root_span_builder: password_incorrect: password_incorrect
lemmy-lemmy-1 | 0: lemmy_api::local_user::login::perform
lemmy-lemmy-1 | with self=Login { username_or_email: Sensitive, password: Sensitive }
lemmy-lemmy-1 | at crates/api/src/local_user/login.rs:17
lemmy-lemmy-1 | 1: lemmy_server::root_span_builder::HTTP request
lemmy-lemmy-1 | with http.method=POST http.scheme="http" http.host=poptalk.scrubbles.tech http.target=/api/v3/user/login otel.kind="server" request_id=d4af82df-c108-4f70-93e6-aec712735499 http.status_code=400 otel.status_code="OK"
lemmy-lemmy-1 | at src/root_span_builder.rs:16
lemmy-lemmy-1 | LemmyError { message: Some("password_incorrect"), inner: password_incorrect, context: "SpanTrace" }
lemmy-lemmy-1 | 2023-06-05T18:46:41.807905Z INFO actix_web::middleware::logger: 172.31.0.6 "POST /api/v3/user/login HTTP/1.1" 400 30 "-" "okhttp/5.0.0-alpha.11" 0.281977
Any ideas what may be causing this?
Edit: As @PirateSaysAye@sh.itjust.works says, login will fail if you have too long of a password. I was using a 64 character random password, I brought it down to a shorter password and everything started working perfectly
Well, your password is incorrect.
Is this for the admin user?
Did you updated the
lemmy.hjson
file with the admin user you want to use?I did this and also created a new user and didn't have any issue logging in.
It is my admin user, hjson matches
admin_username: "scrubbles"
I hate to give up my user....Oh the password in there has changed though to a new password, is it comparing the json stored password instead of the new one I set? I thought it'd be more secure that way
I think the admin_username, admin_password stuff in lemmy.hjson is only for the initial setup. It's not needed after that. I don't have those entries in my lemmy.hjson.
That's good to know, I may just remove that block completely from my config