# WRONGPASS: Password or username rejected

> The connection sent credentials but Redis rejected them: the pair is wrong for that username, or the ACL user has been disabled.

Source: https://sqlly.app/errors/redis/wrongpass
Last updated: 2026-11-30
License: Text and data [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) (credit SQLly, sqlly.app); code and SQL snippets [MIT](https://opensource.org/license/mit). [Details](https://sqlly.app/license).
Note: Quoted error message text belongs to its database vendor.

- Error prefix: `WRONGPASS`
- Category: Connection and auth

Error message:

```text
WRONGPASS invalid username-password pair or user is disabled.
```

## What it means

WRONGPASS arrives when the client did send credentials and the server looked at them and said no. Since Redis 6, authentication is per ACL user: the reply means either the password does not match that user's list, or the user exists but is flagged off.

The usual trap is mixing the two eras. A legacy requirepass password is the password of the user called default, so AUTH s3cret works while AUTH app s3cret fails with WRONGPASS. The other common shape is rotation: the server got the new password, a client still retries the old one, and every reconnect produces this error until its configuration is updated.

## Common causes

- The password is correct for the default user but sent with a named user, or the other way around.
- The ACL user was rotated or disabled with ACL SETUSER and clients still connect as that user with old credentials.
- A stale environment variable or secrets store entry still serves the pre-rotation password.

## How to fix it

1. List the users and their flags before guessing further:

   ```sql
   redis-cli -a s3cret ACL LIST
   redis-cli -a s3cret ACL GETUSER app
   ```
2. Test the exact pair the client uses, username first for named users:

   ```sql
   AUTH app s3cret
   # or, for the legacy default user:
   AUTH s3cret
   ```
3. Re-enable and re-password the user if a rotation disabled it underneath the application:

   ```sql
   ACL SETUSER app on resetkeys >newpass ~app:* +@read +@write
   ```

## Reproduce it safely

```sql
redis-server --port 7301 --save '' &
redis-cli -p 7301 ACL SETUSER app on '>goodpass' '~*' '+ping'
redis-cli -p 7301 --user app --pass badpass PING
# AUTH failed: WRONGPASS invalid username-password pair or user is disabled.
redis-cli -p 7301 --user app --pass goodpass PING
# PONG
```

## How SQLly helps

SQLly's connection dialog reports the server's exact reply when the test fails, so a rejected Redis login is not mistaken for an unreachable host. The username and password fields match Redis 6+ ACL users, including the default-user case.

## Questions

### I only set requirepass, why does WRONGPASS talk about a user?

Since Redis 6 the legacy requirepass password belongs to the default user. AUTH pass logs in as default; AUTH someuser pass fails unless that user exists with that password.

### Does Redis lock the account after failed tries?

No. There is no lockout counter; the client can retry immediately. ACL LOG records the failures, which is how you spot brute forcing.

## Related errors

- [`NOAUTH`](https://sqlly.app/errors/redis/noauth): Authentication required
- [`28P01`](https://sqlly.app/errors/postgresql/28P01): PostgreSQL: password authentication failed
- [`1045`](https://sqlly.app/errors/mysql/1045): MySQL: Access denied for user

The code and message text are from the [Redis documentation and source code](https://redis.io/docs/latest/).
