在 腾讯云的云数据库 Redis 的主从版(CKV) 中报错:Redis error ERR unknown command BRPOP or not support now Redis command was BRPOP 的分析解决

1、报错:yii/db/Exception: Redis error: ERR unknown command “BRPOP” or not support now
Redis command was: BRPOP

yii/db/Exception: Redis error: ERR unknown command "BRPOP" or not support now
Redis command was: BRPOP cpa:queue:source:callback.waiting 3 in /sobey/www/channel-pub-api/vendor/yiisoft/yii2-redis/src/Connection.php:736
Stack trace:
#0 /sobey/www/channel-pub-api/vendor/yiisoft/yii2-redis/src/Connection.php(713): yii/redis/Connection->parseResponse('BRPOP cpa:queue...')
#1 /sobey/www/channel-pub-api/vendor/yiisoft/yii2-redis/src/Connection.php(697): yii/redis/Connection->sendCommandInternal('*3/r/n$5/r/nBRPOP/r/n...', Array)
#2 /sobey/www/channel-pub-api/vendor/yiisoft/yii2-redis/src/Connection.php(630): yii/redis/Connection->executeCommand('BRPOP', Array)
#3 /sobey/www/channel-pub-api/vendor/yiisoft/yii2-queue/src/drivers/redis/Queue.php(144): yii/redis/Connection->__call('brpop', Array)
#4 /sobey/www/channel-pub-api/vendor/yiisoft/yii2-queue/src/drivers/redis/Queue.php(59): yii/queue/redis/Queue->reserve(3)
#5 [internal function]: yii/queue/redis/Queue->yii/queue/redis/{closure}(Object(Closure))
#6 /sobey/www/channel-pub-api/vendor/yiisoft/yii2-queue/src/cli/Queue.php(117): call_user_func(Object(Closure), Object(Closure))
#7 /sobey/www/channel-pub-api/vendor/yiisoft/yii2-queue/src/drivers/redis/Queue.php(68): yii/queue/cli/Queue->runWorker(Object(Closure))
#8 /sobey/www/channel-pub-api/vendor/yiisoft/yii2-queue/src/drivers/redis/Command.php(76): yii/queue/redis/Queue->run(true, 3)
#9 [internal function]: yii/queue/redis/Command->actionListen(3)
#10 /sobey/www/channel-pub-api/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)
#11 /sobey/www/channel-pub-api/vendor/yiisoft/yii2/base/Controller.php(157): yii/base/InlineAction->runWithParams(Array)
#12 /sobey/www/channel-pub-api/vendor/yiisoft/yii2/console/Controller.php(148): yii/base/Controller->runAction('listen', Array)
#13 /sobey/www/channel-pub-api/vendor/yiisoft/yii2/base/Module.php(528): yii/console/Controller->runAction('listen', Array)
#14 /sobey/www/channel-pub-api/vendor/yiisoft/yii2/console/Application.php(180): yii/base/Module->runAction('source-callback...', Array)
#15 /sobey/www/channel-pub-api/vendor/yiisoft/yii2/console/Application.php(147): yii/console/Application->runAction('source-callback...', Array)
#16 /sobey/www/channel-pub-api/vendor/yiisoft/yii2/base/Application.php(386): yii/console/Application->handleRequest(Object(yii/console/Request))
#17 /sobey/www/channel-pub-api/yii(23): yii/base/Application->run()
#18 {main}
Additional Information:
Array
(
)

2、CKV 主从版不支持的命令中包含 brpop,如图1

CKV 主从版不支持的命令中包含 brpop

图1

3、决定切换至 云数据库 Redis 的主从版(社区),其支持的命令中包含 brpop,如图2

在 腾讯云的云数据库 Redis 的主从版(CKV) 中报错:Redis error ERR unknown command BRPOP or not support now Redis command was BRPOP 的分析解决

图2

 

原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/251080.html

(0)
上一篇 2022年5月2日
下一篇 2022年5月2日

相关推荐

发表回复

登录后才能评论