Unable to log into Control Panel

For the last few days, I’ve had issues with logging into the Control Panel.
Every time I try, I get the following error:
‘ascii’ codec can’t decode byte 0xa3 in position 27: ordinal not in range(128).
The only thing I’ve changed is my Router but it was working after the change.
Ideas on fixing this will be appreciated.

See if sudo journalctl -u mailinabox gives you a clue.

Thanks for replying.
WARNING in daemon: Mail-in-a-Box Management Daemon: Failed login attempt from ip 192.168.1.1 - timestamp 1784622268.9244769
Jul 21 09:24:28 box.leshosting.uk gunicorn[1776]: Mail-in-a-Box Management Daemon: Failed login attempt from ip 192.168.1.1 - timestamp 1784622268.9244769
lines 315-352/352 (END)

Not sure why it says logging in from ip 192.168.1.1 when i’m trying from 192.168.1.20
Possibly a setting in the router that i’ve missed?

With this

you mean the admin login at box./admin, right? How is the error displayed? Same as an incorrect login?

Correct/box/admin
The error box for incorrect login shows “Login Failed” “Incorrect email address or password.”
journal - Fatal: reverse password verification check failed: Password mismatch.
The error box for correct login shows “Login Failed” “‘ascii’ codec can’t decode byte 0xa3 in position 27: ordinal not in range(128)”
journal “WARNING in daemon: Mail-in-a-Box Management Daemon: Failed login attempt from ip 192.168.1.1”

Do you have any funny characters (like £) in your password? I think it might fail on decoding that

1 Like

You just hit the nail on the head. My passwords usually contain special characters but on this occasion, it did include the £.
Many thanks for solving this for me.

I think this might be identified as a bug. How did you set the password?

As I couldn’t get into the cp I set it via roundcube

So the password you couldn’t login with was set using Roundcube?

I’m sure it was but what’s strange is that I had used it before set in the control panel, so it could be a roundcube issue. I also set the new password with about 10 special characters that worked. The new one hasn’t got the £ in it.

Created a github issue

3 Likes