【已解答】redis.exceptions.TimeoutError: Timeout reading from socket
为了能快速了解并处理您的问题,请提供以下基础信息:面板、插件版本:8.1.0系统版本:LINUX
问题描述:redis备份出错
相关截图(日志、错误):出错了,面板运行时发生错误!redis.exceptions.TimeoutError: Timeout reading from socket
REQUEST_DATE: 2025-03-20 11:36:48VERSION: CentOS7.6.1810 x86_64(Py3.7.9) - 8.1.0 REMOTE_ADDR: 117.36.119.136 REQUEST_URI: POST /database/redis/ToBackup?REQUEST_FORM: {}USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36Traceback (most recent call last):File "/www/server/panel/pyenv/lib/python3.7/site-packages/redis/connection.py", line 198, in _read_from_socket data = recv(self._sock, socket_read_size)File "/www/server/panel/pyenv/lib/python3.7/site-packages/redis/_compat.py", line 72, in recv return sock.recv(*args, **kwargs)File "/www/server/panel/pyenv/lib/python3.7/site-packages/gevent/_socketcommon.py", line 663, in recv self._wait(self._read_event)File "src/gevent/_hub_primitives.py", line 317, in gevent._gevent_c_hub_primitives.wait_on_socketFile "src/gevent/_hub_primitives.py", line 322, in gevent._gevent_c_hub_primitives.wait_on_socketFile "src/gevent/_hub_primitives.py", line 313, in gevent._gevent_c_hub_primitives._primitive_waitFile "src/gevent/_hub_primitives.py", line 314, in gevent._gevent_c_hub_primitives._primitive_waitFile "src/gevent/_hub_primitives.py", line 46, in gevent._gevent_c_hub_primitives.WaitOperationsGreenlet.waitFile "src/gevent/_hub_primitives.py", line 46, in gevent._gevent_c_hub_primitives.WaitOperationsGreenlet.waitFile "src/gevent/_hub_primitives.py", line 55, in gevent._gevent_c_hub_primitives.WaitOperationsGreenlet.waitFile "src/gevent/_waiter.py", line 154, in gevent._gevent_c_waiter.Waiter.getFile "src/gevent/_greenlet_primitives.py", line 61, in gevent._gevent_c_greenlet_primitives.SwitchOutGreenletWithLoop.switchFile "src/gevent/_greenlet_primitives.py", line 61, in gevent._gevent_c_greenlet_primitives.SwitchOutGreenletWithLoop.switchFile "src/gevent/_greenlet_primitives.py", line 65, in gevent._gevent_c_greenlet_primitives.SwitchOutGreenletWithLoop.switchFile "src/gevent/_gevent_c_greenlet_primitives.pxd", line 35, in gevent._gevent_c_greenlet_primitives._greenlet_switch
这个是截图 有人知道吗 上面提示是连接超时
可以检查一下redis启动是否正常,端口是否放行
另外8.1.0已经是比较旧的版本的了,最好升级到最新的9.5.0(操作前可以做好快照)
页:
[1]