日志里间歇出现redisException, read error on connection to

liuqing

问题描述

RedisException: read error on connection to xxxx:6379 in /app/vendor/illuminate/redis/Connections/Connection.php:116
Stack trace:

报错信息

RedisException: read error on connection to xxxx:6379 in /app/vendor/illuminate/redis/Connections/Connection.php

截图报错信息里报错文件相关代码

RedisException: read error on connection to xxxx:6379 in /app/vendor/illuminate/redis/Connections/Connection.php:116
Stack trace:

0 /app/vendor/illuminate/redis/Connections/Connection.php(116): Redis->get()

1 /app/vendor/illuminate/redis/Connections/PhpRedisConnection.php(532): Illuminate\Redis\Connections\Connection->command()

2 /app/vendor/illuminate/redis/Connections/PhpRedisConnection.php(55): Illuminate\Redis\Connections\PhpRedisConnection->command()

3 /app/vendor/workerman/webman-framework/src/support/Redis.php(265): Illuminate\Redis\Connections\PhpRedisConnection->get()

4 /app/vendor/workerman/workerman/Events/Event.php(167): support\Redis::support{closure}()

5 [internal function]: Workerman\Events\Event->timerCallback()

6 /app/vendor/workerman/workerman/Events/Event.php(193): EventBase->loop()

7 /app/vendor/workerman/workerman/Worker.php(1635): Workerman\Events\Event->loop()

8 /app/vendor/workerman/workerman/Worker.php(1426): Workerman\Worker::forkOneWorkerForLinux()

9 /app/vendor/workerman/workerman/Worker.php(1400): Workerman\Worker::forkWorkersForLinux()

10 /app/vendor/workerman/workerman/Worker.php(1785): Workerman\Worker::forkWorkers()

11 /app/vendor/workerman/workerman/Worker.php(1721): Workerman\Worker::monitorWorkersForLinux()

12 /app/vendor/workerman/workerman/Worker.php(562): Workerman\Worker::monitorWorkers()

13 /app/vendor/workerman/webman-framework/src/support/App.php(131): Workerman\Worker::runAll()

14 /app/start.php(4): support\App::run()

15 {main}

worker[webman:722] exit with status 64000

操作系统及workerman/webman等框架组件具体版本

Workerman version:4.1.14 PHP version:8.0.30 Event-Loop:\Workerman\Events\Event
mac下的docker环境 krisss/docker-webman:8.0-cli-alpine

498 1 0
1个回答

walkor 打赏

自建redis?
webman里redis每55秒向redis发一个get请求作为心跳维持redis连接存活,这个错误看起来是发送get请求后redis服务端没有返回数据导致。具体为什么redis服务端没返回要自己查下。

  • liuqing 2024-01-05

    是自建redis. 目前测试环境重启了之后,没复现问题, 请教一下出现这个问题之后,会影响webman的正常使用吗?是否需要关注并解决该问题?

  • liuqing 2024-01-05

    webman的配置里,会尝试重新连接redis几次?会一直等待redis复活吗?

  • walkor 2024-01-05

    55秒一次,一直尝试。
    如果你们系统依赖redis就要排查问题

  • liuqing 2024-01-05

    好的.感谢🙏

×
🔝