【已完成】网站不能打开报错
为了能快速了解并处理您的问题,请提供以下基础信息:面板、插件版本:最新版本7.9.0系统版本:win2012
问题描述:网站不能打开
相关截图(日志、错误):
REQUEST_DATE: 2023-11-24 22:40:29
PAN_VERSION: 7.9.0
OS_VERSION: Windows Server 2012 R2 Datacenter (build 9600) x64 (Py3.8.6)
REMOTE_ADDR: 183.95.244.211
REQUEST_URI: POST /site?action=GetIndex
REQUEST_FORM: {'id': '2'}
USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36
Traceback (most recent call last):
File "D:\BtSoft\panel\BTPanel\__init__.py", line 1581, in publicObject
return run_exec().run(toObject, defs, get)
File "D:\BtSoft\panel\BTPanel\__init__.py", line 1813, in run
result = eval(fun)
File "", line 1, in
File "D:\BtSoft\panel/class\panelSite.py", line 2126, in GetIndex
info = self.get_site_info(Name)
File "D:\BtSoft\panel/class\panelSite.py", line 2739, in get_site_info
binds = re.search('\s?server_name\s(.+);', conf).groups()
AttributeError: 'NoneType' object has no attribute 'groups'
可以尝试先修复一下面板,然后再尝试前面的操作看是否可行;
如果不行,可能是面板依赖的python环境损坏了,先停止宝塔面板,然后将下面这个目录删掉
C:\Program Files\python
然后下载这个包覆盖安装一下看看是否能解决,覆盖安装不影响原来数据与正在运行的网站。
http://download.bt.cn/win/panel/BtSoft.zip
页:
[1]