# NOAUTH: Authentication required

> The server requires a password and the connection has not authenticated yet, so every command except AUTH, HELLO and QUIT is refused.

Source: https://sqlly.app/errors/redis/noauth
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: `NOAUTH`
- Category: Connection and auth

Error message:

```text
NOAUTH Authentication required.
```

## What it means

NOAUTH means the connection reached Redis but never proved who it is. The server has requirepass set or an ACL setup that demands a login, and until the client sends a successful AUTH (or connects with credentials in the URL), every command except AUTH and QUIT is refused with this exact prefix. HELLO is refused too unless it carries the AUTH option, as in HELLO 3 AUTH default s3cret.

It is almost always a client-side configuration gap: the application has no password configured, the credentials went to one pool but a second app or job runner opened its own unauthenticated connection, or a monitoring tool connects directly. The error appears on the first data command rather than at connect time, because RESP does not require authentication up front.

## Common causes

- The server has requirepass or ACL authentication enabled and the client connected without sending AUTH.
- The credentials are missing from one specific client, such as a job runner or dashboard, while the main application authenticates fine.
- A proxy or connection pooler forwards commands from a client that never authenticates.

## How to fix it

1. Authenticate the connection right after opening it, or put the credentials in the connection string:

   ```sql
   redis-cli -h db.example.com -a s3cret PING
   # or, inside an existing session:
   AUTH s3cret
   ```
2. Check what the server actually requires before guessing at passwords. On the server host:

   ```sql
   redis-cli -a s3cret CONFIG GET requirepass
   redis-cli -a s3cret ACL LIST
   ```
3. Prefer a named ACL user over the legacy global password when you control the server, so each application can be rotated on its own:

   ```sql
   ACL SETUSER app on >s3cret ~app:* +@read +@write
   AUTH app s3cret
   ```

## Reproduce it safely

```sql
redis-server --port 7300 --requirepass s3cret --save '' &
redis-cli -p 7300 PING
# (error) NOAUTH Authentication required.
redis-cli -p 7300 -a s3cret PING
# PONG
```

## How SQLly helps

When a Redis connection fails its test in SQLly, the exact server reply is shown, so NOAUTH reads as an auth problem rather than a network one. AUTH, ACL LIST and the diagnostics above then run from the SQL editor in the same window.

## Questions

### NOAUTH or WRONGPASS: which one means the password was wrong?

NOAUTH means no credentials were sent at all. WRONGPASS means a password or username was sent and the server rejected it.

### Why does my client report NOAUTH only on the first query?

RESP lets a client open a connection and start sending immediately. Redis defers the rejection to the first command that needs auth, so pools that authenticate lazily surface the error on the first real command.

### Can I just turn auth off?

You can clear it with CONFIG SET requirepass "", but the safer fix is keeping auth on and adding the credentials to the client that is missing them.

## Related errors

- [`WRONGPASS`](https://sqlly.app/errors/redis/wrongpass): Password or username rejected
- [`NOPERM`](https://sqlly.app/errors/redis/noperm): The ACL user lacks permission
- [`1045`](https://sqlly.app/errors/mysql/1045): MySQL: Access denied for user
- [`18456`](https://sqlly.app/errors/sql-server/18456): SQL Server: Login failed for user

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