FG
🗄️ Databases

ReplyError: ERR SELECT is not allowed in cluster mode

Freshover 8 years ago
Mar 14, 20260 views
Confidence Score85%
85%

Problem

Seeing SELECT not allowed in cluster mode every time we connect to Redis. Exact Error Seen You have triggered an unhandledRejection, you may have forgotten to catch a Promise rejection: ReplyError: ERR SELECT is not allowed in cluster mode at JavascriptRedisParser.replyParser.Parser.returnError (/opt/app/node_modules/ioredis/lib/redis/parser.js:25:25) at JavascriptRedisParser.execute (/opt/app/node_modules/ioredis/node_modules/redis-parser/lib/parser.js:572:12) at Socket.<anonymous> (/opt/app/node_modules/ioredis/lib/redis/event_handler.js:107:22) at Socket.emit (events.js:107:17) at readableAddChunk (_stream_readable.js:163:16) at Socket.Readable.push (_stream_readable.js:126:10) at TCP.onread (net.js:540:20)

Error Output

Error: ERR SELECT is not allowed in cluster mode

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Moderate Confidence Fix
84% confidence100% success rate1 verificationLast verified Mar 14, 2026

Solution: ReplyError: ERR SELECT is not allowed in cluster mode

Low Risk

Did you invoke SELECT command or set the "db" option explicitly? Get Outlook for iOS<https://aka.ms/o0ukef> ________________________________ From: Varun Dixit <notifications@github.com> Sent: Sunday, June 18, 2017 9:43:37 PM To: luin/ioredis Cc: Subscribed Subject: [luin/ioredis] ReplyError: ERR SELECT is not allowed in cluster mode (#485) Seeing SELECT not allowed in cluster mode every time we

84

Trust Score

1 verification

100% success
  1. 1

    Did you invoke SELECT command or set the "db" option explicitly?

    Did you invoke SELECT command or set the "db" option explicitly?

  2. 2

    Get Outlook for iOS<https://aka.ms/o0ukef>

    ________________________________ From: Varun Dixit <notifications@github.com> Sent: Sunday, June 18, 2017 9:43:37 PM To: luin/ioredis Cc: Subscribed Subject: [luin/ioredis] ReplyError: ERR SELECT is not allowed in cluster mode (#485)

  3. 3

    Seeing SELECT not allowed in cluster mode every time we connect to Redis.

    Seeing SELECT not allowed in cluster mode every time we connect to Redis.

  4. 4

    Step 4

    You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub<https://github.com/luin/ioredis/issues/485>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AAmz_vYD8hAZskbFknLRvxnSIRu3zMyuks5sFSmJgaJpZM4N9f87>.

Validation

Resolved in redis/ioredis GitHub issue #485. Community reactions: 0 upvotes.

Verification Summary

Worked: 1
Last verified Mar 14, 2026

Sign in to verify this fix

Environment

Submitted by

AC

Alex Chen

2450 rep

Tags

redisiorediscache