【待反馈】pgsql数据库无法删除数据库, 卸载pgsql后数据库...
为了能快速了解并处理您的问题,请提供以下基础信息:面板、插件版本:9.10 pgsql版本16系统版本:系统:Ubuntu 24
问题描述:菜单栏的pgsql数据库无法删除数据库, 卸载pgsql后数据库还在
相关截图(日志、错误):出错了,面板运行时发生错误!TypeError: unsupported operand type(s) for +=: 'bool' and 'str'
TypeError:+=: 'bool' 和 'str' 不支持操作数类型
REQUEST_DATE: 2024-07-31 11:44:35VERSION: Ubuntu 24.04 LTS (Noble Numbat) x86_64(Py3.7.8) - 9.1.0 REMOTE_ADDR: 192.168.124.198 REQUEST_URI: POST /database/pgsql/DeleteDatabase?REQUEST_FORM: {'data': '{"id":2,"name":"print1"}'}USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36Traceback (most recent call last):File "/www/server/panel/BTPanel/__init__.py", line 2431, in publicObject res = run_obj.run(toObject, defs, get)File "/www/server/panel/BTPanel/__init__.py", line 2378, 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/pgsqlModel.py", line 400, in DeleteDatabase status, err_msg = pgsql_obj.connect()File "/www/server/panel/class/databaseModel/pgsqlModel.py", line 73, in connect self.__CONN_KWARGS["port"] = self.get_config_options("port", int, 5432)File "/www/server/panel/class/databaseModel/pgsqlModel.py", line 181, in get_config_options conf_data += "\n"TypeError: unsupported operand type(s) for +=: 'bool' and 'str'
您好,您这边查看一下文件/www/server/pgsql是否存在,如果存在,重命名一下
页:
[1]