ERR redis module_error ai_generated true

ERR unknown command

ID: redis/json-module-missing

Also available as: JSON · Markdown
88%Fix Rate
86%Confidence
3Evidence
2023-01-01First Seen

Version Compatibility

VersionStatusIntroducedDeprecatedNotes
7 active

Root Cause

RedisJSON module not loaded. JSON commands require the RedisJSON module.

generic

Workarounds

  1. 90% success Install Redis Stack which includes RedisJSON
    docker run -p 6379:6379 redis/redis-stack-server:latest
  2. 85% success Load RedisJSON module manually
    redis-server --loadmodule /path/to/rejson.so

Dead Ends

Common approaches that don't work:

  1. Use string SET/GET and parse JSON in application 60% fail

    Loses atomic JSON path operations and increases network overhead.

  2. Install redis-json via apt/yum package manager 75% fail

    RedisJSON is not in default OS repos; needs Redis Stack or manual module install.