为了能快速了解并处理您的问题,请提供以下基础信息:
8.2.0
win server 2012
添加站点报错
REQUEST_DATE: 2024-10-31 18:37:44
PAN_VERSION: 8.2.0
OS_VERSION: Windows Server 2012 R2 Standard (build 9600) x64 (Py3.8.6)
REMOTE_ADDR: 171.126.231.245
REQUEST_URI: POST /site?action=AddSite
REQUEST_FORM: {'webname': '{"domain":"111.53.121.107","domainlist":[],"count":0}', 'port': '80', 'ps': '111.53.121.107', 'path': 'E:/wwwroot/111.53.121.107', 'type_id': '0', 'version': '54', 'type': 'PHP', 'ftp': 'false', 'sql': 'MySQL', 'datauser': '111_53_121_107', 'datapassword': 'ZCw5zP3dXtLwdrpW', 'codeing': 'utf8'}
USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.6261.95 Safari/537.36
Traceback (most recent call last):
File "E:\BtSoft\panel\BTPanel\__init__.py", line 1591, in publicObject
return run_exec().run(toObject, defs, get)
File "E:\BtSoft\panel\BTPanel\__init__.py", line 1830, in run
result = resobj(get)
File "E:\BtSoft\panel/class\panelSite.py", line 216, in AddSite
result = self.nginxAdd(siteObj)
File "E:\BtSoft\panel/class\panelSite.py", line 728, in nginxAdd
self.SetPHPVersion(get)
File "E:\BtSoft\panel/class\panelSite.py", line 2136, in SetPHPVersion
public.serviceReload();
File "E:\BtSoft\panel/class\public.py", line 701, in serviceReload
return ServiceReload(siteName)
File "E:\BtSoft\panel/class\public.py", line 662, in ServiceReload
ser = psutil.win_service_get(webserver)
File "C:\Program Files\python\lib\site-packages\psutil\__init__.py", line 2339, in win_service_get
return _psplatform.win_service_get(name)
File "C:\Program Files\python\lib\site-packages\psutil\_pswindows.py", line 475, in win_service_get
service._display_name = service._query_config()['display_name']
File "C:\Program Files\python\lib\site-packages\psutil\_pswindows.py", line 507, in _query_config
cext.winservice_query_config(self._name)
FileNotFoundError: [WinError 2] 系统找不到指定的文件。: '(originated from QueryServiceConfigW)'
|
|