NOPROTO unsupported protocol version: Unsupported RESP protocol version(不支持的 RESP 协议版本)
Redis含义
客户端请求了服务器不支持的 RESP 协议版本。通常在用 HELLO 命令请求 RESP3(版本 3)而服务器仅支持 RESP2 时返回。
原因
发送了 HELLO 3,但服务器运行的是旧版 Redis(6.0 之前)或不支持 RESP3;客户端库默认请求 RESP3,但服务器版本较旧。属于版本不匹配。
解决方法
将客户端配置为使用 RESP2,或用 HELLO 请求有效版本(HELLO 2)。将服务器升级到支持 RESP3 的版本(Redis 6+)。检查客户端库的协议版本设置;大多数库可以自动回退到 RESP2。确认服务器版本:INFO server(redis_version)。
同一数据库的其他条目
- ERR Client sent AUTH, but no password is setERR AUTH <password> called without any password configured for the default user (Redis 6+) / ERR Client sent AUTH, but no password is set (Redis <6)(调用了 AUTH,但服务器未配置密码)
- ERR DEBUG command not allowedDEBUG command not allowed(不允许使用 DEBUG 命令)
- ERR Can't save in background: fork failedBackground save failed: fork failed(后台保存失败:fork 失败)
- ERR Unknown option or number of arguments for CONFIG SETUnknown option or number of arguments for CONFIG SET (older versions: Unsupported CONFIG parameter)(CONFIG SET 的选项未知或参数数量错误)
- ERR MULTI calls can not be nestedMULTI calls can not be nested(MULTI 调用不能嵌套)
- ERR Lua script attempted to access nonexistent global variableLua script attempted to access a nonexistent global variable(Lua 脚本试图访问不存在的全局变量)
- ERR unknown commandUnknown command(未知命令)