为了能快速了解并处理您的问题,请提供以下基础信息: 出错了,面板运行时发生错误!TypeError: expected string or bytes-like object
REQUEST_DATE: 2024-04-15 11:40:17 VERSION: Ubuntu 18.04.2 LTS (Bionic Beaver) x86_64(Py3.7.8) - 8.0.5 REMOTE_ADDR: 61.152.127.108 REQUEST_URI: POST /site?action=AddSiteREQUEST_FORM: res = run_obj.run(toObject, defs, get) File "/www/server/panel/BTPanel/__init__.py", line 2262, in run result = getattr(toObject, get.action)(get) File "/www/server/panel/class/panelSite.py", line 764, in AddSite result = database.database().AddDatabase(get) File "class/database.py", line 466, in AddDatabase if self.database_exists_for_mysql(mysql_obj, data_name): return public.returnMsg(False, '指定数据库已在MySQL中存在,请换个名称!') File "class/database.py", line 500, in database_exists_for_mysql databases_tmp = self.map_to_list(mysql_obj.query('show databases')) File "class/db_mysql.py", line 406, in query if not self.__GetConn(): return self.__DB_ERR File "class/db_mysql.py", line 70, in __GetConn socket_re = re.search(r"\nsocket\s*=\s*([^\n]+)", myconf) File "/www/server/panel/pyenv/lib/python3.7/re.py", line 185, in search return _compile(pattern, flags).search(string)TypeError: expected string or bytes-like object- 很抱歉,面板运行时意外发生错误,请尝试按以下顺序尝试解除此错误:
- 修复方案一:在[首页]右上角点击修复面板,并退出面板重新登录。[url=]尝试点击修复[/url]
- 修复方案二:如上述尝试未能解除此错误,请截图此窗口到宝塔论坛发贴寻求帮助, 论坛地址:https://www.bt.cn/bbs
|
|