REQUEST_DATE: 2023-02-19 20:49:55
PAN_VERSION: 7.9.8
OS_VERSION: Red Hat Enterprise 9.0 (Plow) aarch64(Py3.7.8)
REMOTE_ADDR: 61.140.199.237
REQUEST_URI: POST /site?action=AddSite
REQUEST_FORM: {'webname_1': 'l-jx.top', 'ps': 'l-jx.top', 'path': '/www/wwwroot/l-jx.top', 'datauser': 'l_jx_top', 'datapassword': 'rzEaMT34yt', 'version': '74', 'port': '80', 'webname': '{"domain":"l-jx.top","domainlist":[],"count":1}', 'ftp': 'false', 'sql': 'true', 'address': 'localhost', 'codeing': 'utf8mb4'}
USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36 Edg/110.0.1587.50
Traceback (most recent call last):
File "class/panelMysql.py", line 26, in __Conn
socket_re = re.search(r"socket\s*=\s*(.+)",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
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/www/server/panel/BTPanel/__init__.py", line 1850, in publicObject
res = run_obj.run(toObject, defs, get)
File "/www/server/panel/BTPanel/__init__.py", line 1797, in run
result = getattr(toObject,get.action)(get)
File "class/panelSite.py", line 651, in AddSite
result = database.database().AddDatabase(get)
File "class/database.py", line 314, in AddDatabase
if self.database_exists_for_mysql(mysql_obj,data_name): return public.returnMsg(False,'指定数据库已在MySQL中存在,请换个名称!')
File "class/database.py", line 344, in database_exists_for_mysql
databases_tmp = self.map_to_list(mysql_obj.query('show databases'))
File "class/panelMysql.py", line 116, in query
if not self.__Conn(): return self.__DB_ERR
File "class/panelMysql.py", line 66, in __Conn
except MySQLdb.Error as e:
UnboundLocalError: local variable 'MySQLdb' referenced before assignment |