【待反馈】数据库管理下的redis库功能异常
为了能快速了解并处理您的问题,请提供以下基础信息:面板、插件版本:(稳定版) v10.0.2-LTS系统版本:Ubuntu 24.04.4 LTS
问题描述:在docker里面安装redis,然后在数据库里面添加redis,再删除的时候就会报错。添加完界面默认显示的是0
相关截图(日志、错误):
出错了,面板运行时发生错误!面板运行时发生错误: list indices must be integers or slices, not str
REQUEST_DATE: 2026-03-24 08:32:05VERSION: Ubuntu 24.04.4 LTS (Noble Numbat) x86_64(Py3.7.16) - 10.0.2 REMOTE_ADDR: 10.10.10.200 REQUEST_URI: POST /database/redis/get_list?REQUEST_FORM: {'data': '{"sid":2}'}USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36Traceback (most recent call last):File "/www/server/panel/class/databaseModel/redisModel.py", line 193, in get_obj_by_sid db_obj = db_obj.set_host(conn_config['db_host'], conn_config['db_port'], None, conn_config['db_user'], conn_config['db_password'])TypeError: list indices must be integers or slices, not strDuring handling of the above exception, another exception occurred:Traceback (most recent call last):File "/www/server/panel/BTPanel/__init__.py", line 2543, in publicObject res = run_obj.run(toObject, defs, get)File "/www/server/panel/BTPanel/__init__.py", line 2490, in run result = getattr(toObject, get.action)(get)File "/www/server/panel/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 222, in get_list redis_obj = self.get_obj_by_sid(sid).redis_conn(0)File "/www/server/panel/class/databaseModel/redisModel.py", line 195, in get_obj_by_sid raise public.PanelError(e)public.PanelError: 面板运行时发生错误: list indices must be integers or slices, not str 您好,您的redis数据库存在密码吗?在命令行中可以直接调用redis吗?
页:
[1]