NOAUTH: NOAUTH Authentication required
Redis의미
Redis가 인증을 요구하지만 클라이언트가 인증 전에 명령을 실행하려 했다. 먼저 AUTH로 로그인해야 한다.
원인
서버에 requirepass/ACL 비밀번호가 설정됨, 클라이언트가 AUTH 명령을 보내지 않음, 연결 문자열에 비밀번호 누락, 또는 재연결 후 AUTH를 반복하지 않음.
해결 방법
명령 실행 전에 인증한다: AUTH password(ACL 사용 시 AUTH app_user password). 클라이언트/연결 문자열에 비밀번호를 추가한다. 커넥션 풀을 사용한다면 모든 새 연결에서 AUTH가 수행되는지 확인한다. 비밀번호는 안전하게 보관한다(환경 변수/secrets manager).
같은 데이터베이스의 다른 항목
- WRONGTYPEWRONGTYPE Operation against a key holding the wrong kind of value
- OOMOOM command not allowed when used memory > 'maxmemory'
- WRONGPASSWRONGPASS invalid username-password pair or user is disabled
- READONLYREADONLY You can't write against a read only replica
- MASTERDOWNMASTERDOWN Link with MASTER is down and replica-serve-stale-data is set to 'no'
- CLUSTERDOWNCLUSTERDOWN The cluster is down / Hash slot not served