当前位置:论坛首页 > Linux面板 > 求助

【待反馈】redis备份报错

发表在 Linux面板2024-11-8 09:31 [复制链接] 1 117

本帖最后由 宝塔用户_unfbvh 于 2024-11-8 09:37 编辑

为了能快速了解并处理您的问题,请提供以下基础信息:
面板、插件版本:9.0.0

系统版本:Ubuntu 22.04.1 LTS (Jammy Jellyfish) x86_64(Py3.7.8)

问题描述:redis备份报错

相关截图(日志、错误):redis.exceptions.TimeoutError: Timeout reading from socket
  1. Traceback (most recent call last):
  2.   File "/www/server/panel/pyenv/lib/python3.7/site-packages/redis/connection.py", line 192, in _read_from_socket
  3.     data = self._sock.recv(socket_read_size)
  4.   File "/www/server/panel/pyenv/lib/python3.7/site-packages/gevent/_socketcommon.py", line 663, in recv
  5.     self._wait(self._read_event)
  6.   File "src/gevent/_hub_primitives.py", line 317, in gevent._gevent_c_hub_primitives.wait_on_socket
  7.   File "src/gevent/_hub_primitives.py", line 322, in gevent._gevent_c_hub_primitives.wait_on_socket
  8.   File "src/gevent/_hub_primitives.py", line 313, in gevent._gevent_c_hub_primitives._primitive_wait
  9.   File "src/gevent/_hub_primitives.py", line 314, in gevent._gevent_c_hub_primitives._primitive_wait
  10.   File "src/gevent/_hub_primitives.py", line 46, in gevent._gevent_c_hub_primitives.WaitOperationsGreenlet.wait
  11.   File "src/gevent/_hub_primitives.py", line 46, in gevent._gevent_c_hub_primitives.WaitOperationsGreenlet.wait
  12.   File "src/gevent/_hub_primitives.py", line 55, in gevent._gevent_c_hub_primitives.WaitOperationsGreenlet.wait
  13.   File "src/gevent/_waiter.py", line 154, in gevent._gevent_c_waiter.Waiter.get
  14.   File "src/gevent/_greenlet_primitives.py", line 61, in gevent._gevent_c_greenlet_primitives.SwitchOutGreenletWithLoop.switch
  15.   File "src/gevent/_greenlet_primitives.py", line 61, in gevent._gevent_c_greenlet_primitives.SwitchOutGreenletWithLoop.switch
  16.   File "src/gevent/_greenlet_primitives.py", line 65, in gevent._gevent_c_greenlet_primitives.SwitchOutGreenletWithLoop.switch
  17.   File "src/gevent/_gevent_c_greenlet_primitives.pxd", line 35, in gevent._gevent_c_greenlet_primitives._greenlet_switch
  18. socket.timeout: timed out

  19. During handling of the above exception, another exception occurred:

  20. Traceback (most recent call last):
  21.   File "/www/server/panel/BTPanel/__init__.py", line 2439, in publicObject
  22.     res = run_obj.run(toObject, defs, get)
  23.   File "/www/server/panel/BTPanel/__init__.py", line 2386, in run
  24.     result = getattr(toObject, get.action)(get)
  25.   File "class/panelDatabaseController.py", line 85, in model
  26.     result = PluginLoader.module_run(module_name,def_name,pdata)
  27.   File "/www/server/panel/class/databaseModel/redisModel.py", line 449, in ToBackup
  28.     redis_obj.redis_conn(db_idx).save()
  29.   File "/www/server/panel/pyenv/lib/python3.7/site-packages/redis/commands/core.py", line 774, in save
  30.     return self.execute_command('SAVE')
  31.   File "/www/server/panel/pyenv/lib/python3.7/site-packages/redis/client.py", line 1076, in execute_command
  32.     lambda error: self._disconnect_raise(conn, error))
  33.   File "/www/server/panel/pyenv/lib/python3.7/site-packages/redis/retry.py", line 35, in call_with_retry
  34.     fail(error)
  35.   File "/www/server/panel/pyenv/lib/python3.7/site-packages/redis/client.py", line 1076, in
  36.     lambda error: self._disconnect_raise(conn, error))
  37.   File "/www/server/panel/pyenv/lib/python3.7/site-packages/redis/client.py", line 1061, in _disconnect_raise
  38.     raise error
  39.   File "/www/server/panel/pyenv/lib/python3.7/site-packages/redis/retry.py", line 32, in call_with_retry
  40.     return do()
  41.   File "/www/server/panel/pyenv/lib/python3.7/site-packages/redis/client.py", line 1075, in
  42.     **options),
  43.   File "/www/server/panel/pyenv/lib/python3.7/site-packages/redis/client.py", line 1051, in _send_command_parse_response
  44.     return self.parse_response(conn, command_name, **options)
  45.   File "/www/server/panel/pyenv/lib/python3.7/site-packages/redis/client.py", line 1084, in parse_response
  46.     response = connection.read_response()
  47.   File "/www/server/panel/pyenv/lib/python3.7/site-packages/redis/connection.py", line 748, in read_response
  48.     response = self._parser.read_response()
  49.   File "/www/server/panel/pyenv/lib/python3.7/site-packages/redis/connection.py", line 318, in read_response
  50.     raw = self._buffer.readline()
  51.   File "/www/server/panel/pyenv/lib/python3.7/site-packages/redis/connection.py", line 250, in readline
  52.     self._read_from_socket()
  53.   File "/www/server/panel/pyenv/lib/python3.7/site-packages/redis/connection.py", line 206, in _read_from_socket
  54.     raise TimeoutError("Timeout reading from socket")
  55. redis.exceptions.TimeoutError: Timeout reading from socket
复制代码
已检查redis已启动,未限制timeout时间,但是备份的时候,还是报上面的错误。



使用道具 举报 只看该作者 回复
发表于 2024-11-9 18:27:11 | 显示全部楼层
是的,我也是这个报错
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急运维服务

响应时间:3分钟

问题处理方式:宝塔专家1对1服务

工作时间:工作日:9:00 - 18:30

宝塔专业团队为您解决服务器疑难问题

立即付费处理

工作时间:09:00至24:00

快速回复 返回顶部 返回列表