宝塔618特惠活动,企业版999元/年,宝塔SSL证书买1送1!限时抢购!查看活动
当前位置:论坛首页 > Linux面板 > 求助

【待反馈】安全里面设置端口设置完,重新点开报错

发表在 Linux面板2024-5-23 09:58 [复制链接] 1 1917

面板、插件版本:

8.1.0
系统版本:

系统:CentOS 8.5.2111 x86_64(Py3.7.9)
问题描述:

安全里面设置端口设置完,重新点开报错sqlite3.DatabaseError: file is not a database,
相关截图(日志、错误):

Traceback (most recent call last):  File "class/db.py", line 312, 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/class/safeModel/firewallModel.py", line 58, in __init__    Sqlite()  File "/www/server/panel/class/safeModel/firewallModel.py", line 3494, in __init__    self.create_table()  File "/www/server/panel/class/safeModel/firewallModel.py", line 3524, in create_table    ('80', '网站默认端口', '0000-00-00 00:00:00', 'tcp', 'accept')  File "class/db.py", line 319, 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 "/www/server/panel/BTPanel/__init__.py", line 2422, in publicObject    res = run_obj.run(toObject, defs, get)  File "/www/server/panel/BTPanel/__init__.py", line 2369, in run    result = getattr(toObject, get.action)(get)  File "/www/server/panel/class/panelSafeController.py", line 75, in model    result = PluginLoader.module_run(module_name,def_name,pdata)SystemError:  returned a result with an error set
参考这个后还是依旧报错:https://www.bt.cn/bbs/forum.php?mod=viewthread&tid=130649&highlight=file%2Bis%2Bnot%2Ba%2Bdatabase
mv /www/server/panel/data/db /www/backup/db_backupaaa
bt 1


下载 (1).png
使用道具 举报 只看该作者 回复
发表于 2024-5-23 10:38:59 | 显示全部楼层
您好,您在ssh终端执行(非面板)执行bt 16修复一下
然后再看问题是否得到解决

如果上方方式没有解决的话删除下方文件后重启面板
/www/server/panel/data/db/firewall.db
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

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

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

紧急运维服务

响应时间:3分钟

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

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

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

点击联系技术免费分析

工作时间:09:00至18:30

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