please help ,
/www/server/panel/class/password.py:141: SyntaxWarning: invalid escape sequence '\s'
rec2 = '\n#?PubkeyAuthentication\s\w+'
/www/server/panel/class/password.py:154: SyntaxWarning: invalid escape sequence '\s'
rec = '\n#?RSAAuthentication\s\w+'
/www/server/panel/class/password.py:155: SyntaxWarning: invalid escape sequence '\s'
pubkey = '\n#?PubkeyAuthentication\s\w+'
/www/server/panel/class/password.py:156: SyntaxWarning: invalid escape sequence '\s'
ssh_password = '\nPasswordAuthentication\s\w+'
/www/server/panel/class/password.py:186: SyntaxWarning: invalid escape sequence '\s'
ssh_password = '\n#?PasswordAuthentication\s\w+'
/www/server/panel/class/database.py:421: SyntaxWarning: invalid escape sequence '['
conf = re.sub('[mysqld]', '[mysqld]\nskip_ssl', conf)
/www/server/panel/class/database.py:432: SyntaxWarning: invalid escape sequence '['
conf = re.sub('[mysqld]', '[mysqld]' + ssl_original_path, conf)
/www/server/panel/class/database.py:795: SyntaxWarning: invalid escape sequence '\w'
rep = "^[\w@.\?-_\>\<~!#\$\%^\&*()]+$"
/www/server/panel/class/database.py:867: SyntaxWarning: invalid escape sequence '\w'
rep = "^[\w@.\?-_\>\<~!#\$\%^\&*()]+$"
/www/server/panel/class/database.py:1255: SyntaxWarning: invalid escape sequence '\w'
if not re.match("^[\w+.-]+$", value[0]): continue
/www/server/panel/class/database.py:1320: SyntaxWarning: invalid escape sequence '\s'
rep = "datadir\s=\s(.+)\n"
/www/server/panel/class/database.py:1322: SyntaxWarning: invalid escape sequence '\s'
rep = "port\s=\s([0-9]+)\s\n"
/www/server/panel/class/database.py:1341: SyntaxWarning: invalid escape sequence '\c'
public.ExecShell('\cp -arf ' + mysqlInfo['datadir'] + '/ ' + get.datadir + '/')
/www/server/panel/class/database.py:1432: SyntaxWarning: invalid escape sequence '\s'
if re.search("\n#\sskip-log-bin", mysql_cnf):
/www/server/panel/class/database.py:1433: SyntaxWarning: invalid escape sequence '\s'
mysql_cnf = re.sub("\n#\sskip-log-bin", "\nskip-log-bin", mysql_cnf)
/www/server/panel/class/database.py:1435: SyntaxWarning: invalid escape sequence '\s'
mysql_cnf = re.sub("\n#\slog-bin", "\nskip-log-bin\n#log-bin", mysql_cnf)
/www/server/panel/class/database.py:1438: SyntaxWarning: invalid escape sequence '\s'
if re.search("\n#\slog-bin", mysql_cnf):
/www/server/panel/class/database.py:1439: SyntaxWarning: invalid escape sequence '\s'
mysql_cnf = re.sub("\n#\slog-bin", "\nlog-bin", mysql_cnf)
/www/server/panel/class/database.py:1443: SyntaxWarning: invalid escape sequence '\s'
if re.search("\n#\sbinlog_format", mysql_cnf):
/www/server/panel/class/log_analysis.py:24: SyntaxWarning: invalid escape sequence '('
log_analysis_data = '''help(){
/www/server/panel/class/ajax.py:797: SyntaxWarning: invalid escape sequence '\s'
rep = "disable_functions\s=\s{0,1}(.)\n"
/www/server/panel/class/ajax.py:803: SyntaxWarning: invalid escape sequence '\s'
rep = "upload_max_filesize\s=\s([0-9]+)(M|m|K|k)"
/www/server/panel/class/ajax.py:809: SyntaxWarning: invalid escape sequence '\s'
rep = u"\n;\scgi.fix_pathinfo\s=\s([0-9]+)\s\n"
/www/server/panel/class/ajax.py:1051: SyntaxWarning: invalid escape sequence '.'
ssl_conf = """server
/www/server/panel/class/ajax.py:1098: SyntaxWarning: invalid escape sequence '.'
ssl_conf = '''Listen 887
/www/server/panel/class/ajax.py:1341: SyntaxWarning: invalid escape sequence '\d'
result['port'] = int(re.search('PORT=(\d+)',conf).groups()[0])
/www/server/panel/class/ajax.py:1342: SyntaxWarning: invalid escape sequence '\d'
result['maxconn'] = int(re.search('MAXCONN=(\d+)',conf).groups()[0])
/www/server/panel/class/ajax.py:1343: SyntaxWarning: invalid escape sequence '\d'
result['cachesize'] = int(re.search('CACHESIZE=(\d+)',conf).groups()[0])
/www/server/panel/class/ajax.py:1368: SyntaxWarning: invalid escape sequence '\d'
conf = re.sub('PORT=\d+','PORT='+get.port,conf)
/www/server/panel/class/ajax.py:1369: SyntaxWarning: invalid escape sequence '\d'
conf = re.sub('MAXCONN=\d+','MAXCONN='+get.maxconn,conf)
/www/server/panel/class/ajax.py:1370: SyntaxWarning: invalid escape sequence '\d'
conf = re.sub('CACHESIZE=\d+','CACHESIZE='+get.cachesize,conf)
/www/server/panel/class/ajax.py:1379: SyntaxWarning: invalid escape sequence '\s'
port = re.findall('\n\sport\s+(\d+)',c)[0]
/www/server/panel/class/ajax.py:1380: SyntaxWarning: invalid escape sequence '\s'
password = re.findall('\n\srequirepass\s+(.+)',c)
/www/server/panel/class/files.py:127: SyntaxWarning: invalid escape sequence '\s'
rep = '\sroot\s+(.+);'
/www/server/panel/class/files.py:135: SyntaxWarning: invalid escape sequence '\s'
rep = '\sDocumentRoot\s"(.+)"\s*\n'
/www/server/panel/class/files.py:2606: SyntaxWarning: invalid escape sequence '\w'
if not re.match('\w+$',pdata['password']):
/www/server/panel/class/files.py:2633: SyntaxWarning: invalid escape sequence '\w'
if not re.match('\w+$',pdata['password']) and pdata['password']:
[2024-07-14 08:28:44][DEBUG] - checkWebConfig--result🙁'', 'nginx: the configuration file /www/server/nginx/conf/nginx.conf syntax is ok\nnginx: configuration file /www/server/nginx/conf/nginx.conf test is successful\n')
[2024-07-14 08:28:44][DEBUG] - nginx
[2024-07-14 08:28:44][DEBUG] - checkWebConfig--result1🙁'', 'nginx: the configuration file /www/server/nginx/conf/nginx.conf syntax is ok\nnginx: configuration file /www/server/nginx/conf/nginx.conf test is successful\n')
[2024-07-14 08:28:44][DEBUG] - nginx----5
[2024-07-14 08:33:12][DEBUG] - checkWebConfig--result🙁'', 'nginx: the configuration file /www/server/nginx/conf/nginx.conf syntax is ok\nnginx: configuration file /www/server/nginx/conf/nginx.conf test is successful\n')
[2024-07-14 08:33:12][DEBUG] - nginx
[2024-07-14 08:33:12][DEBUG] - checkWebConfig--result1🙁'', 'nginx: the configuration file /www/server/nginx/conf/nginx.conf syntax is ok\nnginx: configuration file /www/server/nginx/conf/nginx.conf test is successful\n')
[2024-07-14 08:33:12][DEBUG] - nginx----5
['5', '15', '0', '113']
['5', '15', '0', '113']
/www/server/panel/class/panelController.py:35: SyntaxWarning: invalid escape sequence '\w'
if not re.match(r"\w+$",args['mod_name']): return public.return_status_code(1000,'调用的模块名称中不能包含\w以外的字符')
/www/server/panel/class/panelController.py:36: SyntaxWarning: invalid escape sequence '\w'
if not re.match(r"\w+$",args['def_name']): return public.return_status_code(1000,'调用的方法名称中不能包含\w以外的字符')
/www/server/panel/class/logsModel/panelModel.py:201: SyntaxWarning: invalid escape sequence '\s'
if username and not re.search('-\s+({})\s+('.format(username),_line):
system after few hours crash , i need to hard restart it , cause even SSH will not work
Update to Version 7.0.6
System: Ubuntu 22.04.4 LTS x86_64(Py3.12.3)