Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This error is reported when the queue performs for more than 20 minutes #238

Closed
huangli58 opened this issue Nov 3, 2021 · 2 comments
Closed
Labels
help wanted status:to be verified Needs to be reproduced and validated.

Comments

@huangli58
Copy link

Exception 'yii\redis\SocketException' with message 'Failed to read from socket.
Redis command was: ZREM cst-group-dataImportQueue2.reserved 99'

in /mnt/hgfs/www/cst-group-new/vendor/yiisoft/yii2-redis/src/Connection.php:778

Stack trace:
#0 /mnt/hgfs/www/cst-group-new/vendor/yiisoft/yii2-redis/src/Connection.php(763): yii\redis\Connection->parseResponse(Array, '*3\r\n$4\r\nZREM\r\n$...')
#1 /mnt/hgfs/www/cst-group-new/vendor/yiisoft/yii2-redis/src/Connection.php(746): yii\redis\Connection->sendCommandInternal('*3\r\n$4\r\nZREM\r\n$...', Array)
#2 /mnt/hgfs/www/cst-group-new/vendor/yiisoft/yii2-redis/src/Connection.php(683): yii\redis\Connection->executeCommand('ZREM', Array)
#3 /mnt/hgfs/www/cst-group-new/vendor/yiisoft/yii2-queue/src/drivers/redis/Queue.php(180): yii\redis\Connection->__call('zrem', Array)
#4 /mnt/hgfs/www/cst-group-new/vendor/yiisoft/yii2-queue/src/drivers/redis/Queue.php(62): yii\queue\redis\Queue->delete('99')
#5 [internal function]: yii\queue\redis\Queue->yii\queue\redis{closure}(Object(Closure))
#6 /mnt/hgfs/www/cst-group-new/vendor/yiisoft/yii2-queue/src/cli/Queue.php(117): call_user_func(Object(Closure), Object(Closure))
#7 /mnt/hgfs/www/cst-group-new/vendor/yiisoft/yii2-queue/src/drivers/redis/Queue.php(68): yii\queue\cli\Queue->runWorker(Object(Closure))
#8 /mnt/hgfs/www/cst-group-new/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 /mnt/hgfs/www/cst-group-new/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)
#11 /mnt/hgfs/www/cst-group-new/vendor/yiisoft/yii2/base/Controller.php(157): yii\base\InlineAction->runWithParams(Array)
#12 /mnt/hgfs/www/cst-group-new/vendor/yiisoft/yii2/console/Controller.php(164): yii\base\Controller->runAction('listen', Array)
#13 /mnt/hgfs/www/cst-group-new/vendor/yiisoft/yii2/base/Module.php(528): yii\console\Controller->runAction('listen', Array)
#14 /mnt/hgfs/www/cst-group-new/vendor/yiisoft/yii2/console/Application.php(180): yii\base\Module->runAction('data-import-que...', Array)
#15 /mnt/hgfs/www/cst-group-new/vendor/yiisoft/yii2/console/Application.php(147): yii\console\Application->runAction('data-import-que...', Array)
#16 /mnt/hgfs/www/cst-group-new/vendor/yiisoft/yii2/base/Application.php(386): yii\console\Application->handleRequest(Object(yii\console\Request))
#17 /mnt/hgfs/www/cst-group-new/yii(23): yii\base\Application->run()
#18 {main}

@samdark samdark added help wanted status:to be verified Needs to be reproduced and validated. labels Nov 11, 2021
@samdark
Copy link
Member

samdark commented Jan 7, 2022

There could be two reasons for it:

  1. The socket itself "expires". In this case https://github.com/yiisoft/yii2-redis/blob/master/src/Connection.php#L342 may help.
  2. You're out of memory because too many connections occupied at the same time.

@samdark
Copy link
Member

samdark commented Jan 7, 2022

Since there are no further details, we can't fix the problem.

@samdark samdark closed this as completed Jan 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted status:to be verified Needs to be reproduced and validated.
Projects
None yet
Development

No branches or pull requests

2 participants