// Redis error reference

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.

Error prefix
WRONGPASS
카테고리
Connection and auth
오류 메시지
WRONGPASS invalid username-password pair or user is disabled.

의미

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.

일반적인 원인

  • 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.

Find the cause

# Who is this connection, and does the login hold?
redis-cli -u redis://app:[email protected]:6379 ACL WHOAMI
# Inspect the user: flags include on/off and its passwords (hashed):
redis-cli -a s3cret ACL GETUSER app
# What the server would accept:
redis-cli -a s3cret ACL LIST
# Recent auth failures:
redis-cli -a s3cret ACL LOG

해결 방법

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

    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:

    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:

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

Other ways to handle it

Store the pair as one redis:// URL so the username cannot be dropped from configuration. For rotation without downtime, add the new password to the user first, deploy the clients with the new credentials, then remove the old password from the user afterwards.

안전하게 재현하세요

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

질문

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.

관련 오류

More connection and auth errors

코드와 메시지 텍스트의 출처는 다음과 같습니다 Redis documentation and source code. 전체 목록은 Redis error list 또는 모든 데이터베이스 오류 검색.

// 오류는 줄이고, 수정은 빠르게

Work on Redis in SQLly

A native SQL client for macOS, Windows and Linux with schema-aware IntelliSense, guardrails for risky statements and clear error messages, for Redis and the other databases you use.

이 페이지의 텍스트와 데이터: CC BY 4.0, 출처: SQLly (sqlly.app). 코드와 SQL 스니펫: MIT. 라이선스 세부 정보 인용된 오류 메시지 텍스트의 권리는 해당 데이터베이스 공급업체에 있습니다.