使用redis队列,无法直接执行成功

fsc123

问题描述

消费次数会持续增加,等到最后会执行成功,但期间日志里面会有以下记录数据,是哪里配置问题吗

报错信息

[2025-01-14 12:26:36] plugin.webman.redis-queue.default.INFO: ErrorException: fwrite(): Write of 207846 bytes failed with errno=5 Input/output error in /www/wwwroot/order.ydk1.cn/webman/vendor/symfony/var-dumper/Dumper/AbstractDumper.php:171
Stack trace:
#0 [internal function]: {closure}()
#1 /www/wwwroot/order.ydk1.cn/webman/vendor/symfony/var-dumper/Dumper/AbstractDumper.php(171): fwrite()
#2 /www/wwwroot/order.ydk1.cn/webman/vendor/symfony/var-dumper/Dumper/AbstractDumper.php(161): Symfony\Component\VarDumper\Dumper\AbstractDumper->echoLine()
#3 /www/wwwroot/order.ydk1.cn/webman/vendor/symfony/var-dumper/Dumper/CliDumper.php(556): Symfony\Component\VarDumper\Dumper\AbstractDumper->dumpLine()
#4 /www/wwwroot/order.ydk1.cn/webman/vendor/symfony/var-dumper/Dumper/CliDumper.php(313): Symfony\Component\VarDumper\Dumper\CliDumper->dumpLine()
#5 /www/wwwroot/order.ydk1.cn/webman/vendor/symfony/var-dumper/Cloner/Data.php(350): Symfony\Component\VarDumper\Dumper\CliDumper->enterHash()
#6 /www/wwwroot/order.ydk1.cn/webman/vendor/symfony/var-dumper/Cloner/Data.php(275): Symfony\Component\VarDumper\Cloner\Data->dumpItem()
#7 /www/wwwroot/order.ydk1.cn/webman/vendor/symfony/var-dumper/Dumper/AbstractDumper.php(132): Symfony\Component\VarDumper\Cloner\Data->dump()
#8 /www/wwwroot/order.ydk1.cn/webman/vendor/symfony/var-dumper/Dumper/ContextualizedDumper.php(41): Symfony\Component\VarDumper\Dumper\AbstractDumper->dump()
#9 /www/wwwroot/order.ydk1.cn/webman/vendor/symfony/var-dumper/VarDumper.php(91): Symfony\Component\VarDumper\Dumper\ContextualizedDumper->dump()
#10 /www/wwwroot/order.ydk1.cn/webman/vendor/symfony/var-dumper/VarDumper.php(46): Symfony\Component\VarDumper\VarDumper::Symfony\Component\VarDumper\{closure}()
#11 /www/wwwroot/order.ydk1.cn/webman/vendor/symfony/var-dumper/Resources/functions/dump.php(20): Symfony\Component\VarDumper\VarDumper::dump()
#12 /www/wwwroot/order.ydk1.cn/webman/app/queue/redis/OrderNotify.php(18): dump()
#13 /www/wwwroot/order.ydk1.cn/webman/vendor/workerman/redis-queue/src/Client.php(243): app\queue\redis\OrderNotify->consume()
#14 /www/wwwroot/order.ydk1.cn/webman/vendor/workerman/redis/src/Client.php(421): Workerman\RedisQueue\Client->Workerman\RedisQueue\{closure}()
#15 /www/wwwroot/order.ydk1.cn/webman/vendor/workerman/workerman/Connection/TcpConnection.php(653): Workerman\Redis\Client->Workerman\Redis\{closure}()
#16 /www/wwwroot/order.ydk1.cn/webman/vendor/workerman/workerman/Events/Select.php(311): Workerman\Connection\TcpConnection->baseRead()
#17 /www/wwwroot/order.ydk1.cn/webman/vendor/workerman/workerman/Worker.php(1719): Workerman\Events\Select->loop()
#18 /www/wwwroot/order.ydk1.cn/webman/vendor/workerman/workerman/Worker.php(1510): Workerman\Worker::forkOneWorkerForLinux()
#19 /www/wwwroot/order.ydk1.cn/webman/vendor/workerman/workerman/Worker.php(1484): Workerman\Worker::forkWorkersForLinux()
#20 /www/wwwroot/order.ydk1.cn/webman/vendor/workerman/workerman/Worker.php(561): Workerman\Worker::forkWorkers()
#21 /www/wwwroot/order.ydk1.cn/webman/vendor/workerman/webman-framework/src/support/App.php(152): Workerman\Worker::runAll()
#22 /www/wwwroot/order.ydk1.cn/webman/start.php(5): support\App::run()
#23 {main} [] []
80 2 0
2个回答

fsc123

所有的目录文件都给了777权限

  • latin 1天前

    看调用栈,app/queue/redis/OrderNotify.php(18): dump()
    这个dump函数引起的,删除就好了。可能是 symfony/var-dumper 哪里有问题

  • fsc123 1天前

    现在都没有/www/wwwroot/order.ydk1.cn/webman/vendor/symfony/var-dumper都删掉了,服务也重启了,还是会有这个报错😂

fsc123

php start.php start调试运行的时候会遇到这问题,加上-d运行之后,就不会有这个问题了

  • 暂无评论
×
🔝