【已解决】访问[堡塔入侵检测]插件,意外发生错误
面板、插件版本:宝塔面板9.5.0、堡塔入侵检测 2.3系统版本:CentOS 8.5.2111 x86_64(Py3.7.9)
问题描述:进入「宝塔入侵检测」插件报错,无法开启入侵检测。已尝试修复面板、修复插件、重新安装插件,问题仍复现。
相关截图(日志、错误):
Traceback (most recent call last):File "class/db.py", line 419, in add result = self.__DB_CONN.execute(sql,self.__to_tuple(param))sqlite3.DatabaseError: file is not a databaseDuring handling of the above exception, another exception occurred:Traceback (most recent call last):File "/www/server/panel/plugin/bt_hids/bt_hids_main.py", line 92, in __init__ self.__sql.table('overview').insert(overview_data)File "class/db.py", line 433, in insert return self.add(keys,param)File "class/db.py", line 426, in add raise public.PanelError("数据库插入出错:" + "error: " + str(ex))public.PanelError: 面板运行时发生错误: 数据库插入出错:error: file is not a databaseThe above exception was the direct cause of the following exception:Traceback (most recent call last):File "class/panelPlugin.py", line 3772, in a return p.exec_fun(get)File "class/pluginAuth.py", line 62, in exec_fun res = PluginLoader.plugin_run(self.__plugin_name,def_name,get_args)SystemError:returned a result with an error set
私信发面板信息看看 阿珂 发表于 2025-4-25 14:08
私信发面板信息看看
您那边是要登录面板进去查看吗?我这边不太方便发。 不方便的话,无法进行排查
可以尝试在ssh终端执行bt 1 重启一下面板再看看(非面板终端) 阿珂 发表于 2025-4-27 15:46
不方便的话,无法进行排查
可以尝试在ssh终端执行bt 1 重启一下面板再看看(非面板终端) ...
我这边已私信面板信息,麻烦您看下。 面板数据库损坏
删掉/www/server/panel/data/bt_hids.db
bt 1 重启面板
重新安装插件 阿珂 发表于 2025-4-28 14:05
面板数据库损坏
删掉/www/server/panel/data/bt_hids.db
bt 1 重启面板
好的,谢谢~
页:
[1]