【已回复】宝塔升级至13.1.0严重报错
为了能快速了解并处理您的问题,请提供以下基础信息:面板、插件版本:13.1.0系统版本:debian11
问题描述:宝塔升级至13.1.0严重报错
相关截图(日志、错误):Traceback (most recent call last):
File "/www/server/panel/class/database.py", line 32, in database
_DB_BACKUP_DIR = os.path.join(public.M("config").where("id=?", (1,)).getField("backup_path"), "database")
File "<frozen posixpath>", line 77, in join
TypeError: expected str, bytes or os.PathLike object, not list
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/www/server/panel/class/db.py", line 420, in add
result = self.__DB_CONN.execute(sql,self.__to_tuple(param))
sqlite3.DatabaseError: file is not a database
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/www/server/panel/BTPanel/__init__.py", line 2588, in publicObject
res = run_obj.run(toObject, defs, get)
File "/www/server/panel/BTPanel/__init__.py", line 2534, in run
result = getattr(toObject, get.action)(get)
File "/www/server/panel/class/panelController.py", line 81, in model
result = PluginLoader.module_run(module_name,def_name,pdata)
File "/www/server/panel/class/panelModel/publicModel.py", line 112, in get_public_config
data = _config_obj.get_config(args)
File "/www/server/panel/class/config.py", line 2064, in get_config
from password import password
File "/www/server/panel/class/password.py", line 20, in <module>
import public,data,database,config
File "/www/server/panel/class/database.py", line 29, in <module>
class database(datatool.datatools):
...<4550 lines>...
return public.returnMsg(False, "初始化失败: {}".format(str(e)))
File "/www/server/panel/class/database.py", line 42, in database
print(public.M("config").insert(pdata))
~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^
File "/www/server/panel/class/db.py", line 434, in insert
return self.add(keys,param)
~~~~~~~~^^^^^^^^^^^^
File "/www/server/panel/class/db.py", line 427, in add
raise public.PanelError("数据库插入出错:" + "error: " + str(ex))
public.PanelError: 面板运行时发生错误: 数据库插入出错:error: file is not a database
现在宝塔无法正常运行了 您可以尝试执行bt 16修复宝塔,如无效
可通过官方微信客服进行在线咨询。
操作方式:复制下方链接,在微信中打开: https://docs.bt.cn/wechat-service
进入后即可在线与客服沟通。
宝塔用户_kysqxz 发表于 2026-9-19 16:26
现在宝塔无法正常运行了
辛苦您联系一下客服这边安排专业技术人员给您排障
页:
[1]