本帖最后由 宝塔用户_unfbvh 于 2024-11-8 09:37 编辑
为了能快速了解并处理您的问题,请提供以下基础信息:
系统版本:Ubuntu 22.04.1 LTS (Jammy Jellyfish) x86_64(Py3.7.8)
相关截图(日志、错误):redis.exceptions.TimeoutError: Timeout reading from socket - Traceback (most recent call last):
- File "/www/server/panel/pyenv/lib/python3.7/site-packages/redis/connection.py", line 192, in _read_from_socket
- data = self._sock.recv(socket_read_size)
- 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_socket
- File "src/gevent/_hub_primitives.py", line 322, in gevent._gevent_c_hub_primitives.wait_on_socket
- File "src/gevent/_hub_primitives.py", line 313, in gevent._gevent_c_hub_primitives._primitive_wait
- File "src/gevent/_hub_primitives.py", line 314, in gevent._gevent_c_hub_primitives._primitive_wait
- File "src/gevent/_hub_primitives.py", line 46, in gevent._gevent_c_hub_primitives.WaitOperationsGreenlet.wait
- File "src/gevent/_hub_primitives.py", line 46, in gevent._gevent_c_hub_primitives.WaitOperationsGreenlet.wait
- File "src/gevent/_hub_primitives.py", line 55, in gevent._gevent_c_hub_primitives.WaitOperationsGreenlet.wait
- File "src/gevent/_waiter.py", line 154, in gevent._gevent_c_waiter.Waiter.get
- File "src/gevent/_greenlet_primitives.py", line 61, in gevent._gevent_c_greenlet_primitives.SwitchOutGreenletWithLoop.switch
- File "src/gevent/_greenlet_primitives.py", line 61, in gevent._gevent_c_greenlet_primitives.SwitchOutGreenletWithLoop.switch
- File "src/gevent/_greenlet_primitives.py", line 65, in gevent._gevent_c_greenlet_primitives.SwitchOutGreenletWithLoop.switch
- File "src/gevent/_gevent_c_greenlet_primitives.pxd", line 35, in gevent._gevent_c_greenlet_primitives._greenlet_switch
- socket.timeout: timed out
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/www/server/panel/BTPanel/__init__.py", line 2439, in publicObject
- res = run_obj.run(toObject, defs, get)
- File "/www/server/panel/BTPanel/__init__.py", line 2386, in run
- result = getattr(toObject, get.action)(get)
- File "class/panelDatabaseController.py", line 85, in model
- result = PluginLoader.module_run(module_name,def_name,pdata)
- File "/www/server/panel/class/databaseModel/redisModel.py", line 449, in ToBackup
- redis_obj.redis_conn(db_idx).save()
- File "/www/server/panel/pyenv/lib/python3.7/site-packages/redis/commands/core.py", line 774, in save
- return self.execute_command('SAVE')
- File "/www/server/panel/pyenv/lib/python3.7/site-packages/redis/client.py", line 1076, in execute_command
- lambda error: self._disconnect_raise(conn, error))
- File "/www/server/panel/pyenv/lib/python3.7/site-packages/redis/retry.py", line 35, in call_with_retry
- fail(error)
- File "/www/server/panel/pyenv/lib/python3.7/site-packages/redis/client.py", line 1076, in
- lambda error: self._disconnect_raise(conn, error))
- File "/www/server/panel/pyenv/lib/python3.7/site-packages/redis/client.py", line 1061, in _disconnect_raise
- raise error
- File "/www/server/panel/pyenv/lib/python3.7/site-packages/redis/retry.py", line 32, in call_with_retry
- return do()
- File "/www/server/panel/pyenv/lib/python3.7/site-packages/redis/client.py", line 1075, in
- **options),
- File "/www/server/panel/pyenv/lib/python3.7/site-packages/redis/client.py", line 1051, in _send_command_parse_response
- return self.parse_response(conn, command_name, **options)
- File "/www/server/panel/pyenv/lib/python3.7/site-packages/redis/client.py", line 1084, in parse_response
- response = connection.read_response()
- File "/www/server/panel/pyenv/lib/python3.7/site-packages/redis/connection.py", line 748, in read_response
- response = self._parser.read_response()
- File "/www/server/panel/pyenv/lib/python3.7/site-packages/redis/connection.py", line 318, in read_response
- raw = self._buffer.readline()
- File "/www/server/panel/pyenv/lib/python3.7/site-packages/redis/connection.py", line 250, in readline
- self._read_from_socket()
- File "/www/server/panel/pyenv/lib/python3.7/site-packages/redis/connection.py", line 206, in _read_from_socket
- raise TimeoutError("Timeout reading from socket")
- redis.exceptions.TimeoutError: Timeout reading from socket
复制代码 已检查redis已启动,未限制timeout时间,但是备份的时候,还是报上面的错误。
|
|