为了能快速了解并处理您的问题,请提供以下基础信息:
相关截图(日志、错误): - 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
复制代码
|
|