打开AWVS,浏览器显示拒绝访问,以下记录排查过程
-
查看3443端口是否已经被占用
win+R打开任务管理器,netstat -ano
查看端口占用情况,localhost:3443端口没有被占用 -
查看acunetix服务是否已经启动
任务管理器查看supervisor和database两个服务,发现supervisor服务没有启动
尝试启动该服务,再次打开AWVS发现还是无法访问。查看服务发现supervisor服务异常终止了 -
查看日志排查异常
AWVS\log\目录下supervisor.log文件2024-05-10T08:04:52.752+0800 info rendering template {"filename": "D:\\AWVS\\Acunetix\\broker\\nats-server.conf"} 2024-05-10T08:04:52.761+0800 info executing startup sequence 2024-05-10T08:04:52.762+0800 info starting up services 2024-05-10T08:04:52.763+0800 info starting process {"task": "broker", "cmd": "D:\\AWVS\\Acunetix\\broker\\nats-server.exe -c D:\\AWVS\\Acunetix\\broker\\nats-server.conf"} 2024-05-10T08:04:52.780+0800 info process started {"task": "broker", "pid": 8280} 2024-05-10T08:04:52.781+0800 info starting process {"task": "backend", "cmd": "D:\\AWVS\\Acunetix\\24.3.240322155\\opsrv.exe --conf D:\\AWVS\\settings.ini"} 2024-05-10T08:04:52.828+0800 info process started {"task": "backend", "pid": 8292} 2024-05-10T08:04:52.828+0800 info starting process {"task": "integration service", "cmd": "D:\\AWVS\\Acunetix\\24.3.240322155\\integrations\\integrations.exe "} 2024-05-10T08:04:52.875+0800 info process started {"task": "integration service", "pid": 8320} 2024-05-10T08:05:07.961+0800 warn process stopped {"task": "backend"}
服务启动后异常终止了
AWVS\log\目录下backend.log文件2024-05-10 08:05:03,536: WARNING root set_restrictive_acl_on_dir_and_content not implemented 2024-05-10 08:05:03,569: WARNING root set_restrictive_acl_on_dir_and_content not implemented 2024-05-10 08:05:06,465: INFO service.master creating system proxy callback 2024-05-10 08:05:06,471: INFO helpers.application.util Starting app, version: 24.3.240322155 [Windows] (gev:23.9.1) 2024-05-10 08:05:06,477: INFO service.master Database version: 240200 2024-05-10 08:05:06,478: INFO service.master starting backend 2024-05-10 08:05:06,479: INFO service.master getting license 2024-05-10 08:05:06,480: ERROR helpers.licensing Wvs not found at D:\AWVS\Acunetix\24.3.240322155\wvsc.exe 2024-05-10 08:05:06,481: ERROR service.master error reading license Wvs not found 2024-05-10 08:05:06,482: INFO helpers.application.util adjusting ca bundle... 2024-05-10 08:05:06,482: INFO helpers.application.util settings ca value: None 2024-05-10 08:05:06,607: INFO helpers.application.util ca bundle saved to: D:\AWVS\shared\win_ca_certs.pem 2024-05-10 08:05:07,063: INFO root Updating scan and target statistics 2024-05-10 08:05:07,291: INFO service.master creating system updater 2024-05-10 08:05:07,293: ERROR helpers.licensing Wvs not found at D:\AWVS\Acunetix\24.3.240322155\wvsc.exe 2024-05-10 08:05:07,294: ERROR root application failed with Wvs not found Traceback (most recent call last): File "wvs.py", line 895, in <module> File "wvs.py", line 227, in go_master File "helpers\updater\__init__.py", line 396, in first_run File "helpers\licensing\licenses\on_premise.py", line 211, in get_license File "helpers\licensing\__init__.py", line 389, in get_local_license Exception: Wvs not found
日志错误显示Wvs未找到,也就是许可验证文件wvsc.exe丢失,在AWVS\24.3.240322155\目录下(目录名称应该跟安装版本有关)确实没有找到wvsc.exe文件
从安装包中将wvsc.exe文件复制到该目录下,问题解决
遇到问题根据日志排查错误是个好习惯