tongcheng-security-team/NextScan

部署代理节点的问题

Closed this issue · 1 comments

参考部署文档 https://next-scan.ly.com/install/binary/#3

查看容器IP

root@vm10-0-0-187:~/NextScan/ns-proxy_linux_x86_64# docker inspect --format='{{.Name}} - {{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $(docker ps -aq)
/ns-craw-3 - 172.19.0.14
/ns-craw-2 - 172.19.0.13
/ns-craw-1 - 172.19.0.12
/ns-scan-3 - 172.19.0.11
/ns-scan-2 - 172.19.0.10
/ns-scan-1 - 172.19.0.6
/ns-scan - 172.19.0.8
/ns-craw - 172.19.0.9
/ns-admin - 172.19.0.7
/ns-minio-buckets -
/ns-etcd - 172.19.0.4
/ns-mongo - 172.19.0.5
/ns-redis - 172.19.0.2
/ns-minio - 172.19.0.3

启动代理节点

root@vm10-0-0-187:~/NextScan/ns-proxy_linux_x86_64# ./start.sh -gintranet -shttp://172.19.0.7
选项-g的值是intranet
选项-s的值是http://172.19.0.7
应用启动
应用启动成功

查看日志

root@vm10-0-0-187:~/NextScan/ns-proxy_linux_x86_64# cat stdout.log
管理地址: http://172.19.0.7
内外网: intranet
{"level":"warn","ts":"2023-04-25T15:09:54.728+0800","logger":"etcd-client","caller":"v3/retry_interceptor.go:62","msg":"retrying of unary invoker failed","target":"etcd-endpoints://0xc000116540/ns-etcd:2379","attempt":0,"error":"rpc error: code = DeadlineExceeded desc = latest balancer error: last connection error: connection error: desc = \"transport: Error while dialing dial tcp: lookup ns-etcd on 127.0.0.53:53: server misbehaving\""}
2023/04/25 15:09:54 etcd start error:context deadline exceeded

这个 start.sh -gintranet -s管理服务器的IP,具体值得那个IP,ns-admin容器,本地127.0.0.1 还是服务器本身的公网IP?

文档已更新该问题解决方案