1: 背景:
今天通过新部署的 Deployer 发布app 的时候,报找不到search head capitain 的错:
Error while deploying apps to target=https://abc.com:8089: No captain found amongst members
2: 查找原因:
后来到这个deployer 的log: /opt/splunk/var/log/splunk/splunkd.log 看到:
12-13-2022 15:59:28.928 -0800 WARN AppsDeployHandler [438 TcpChannelThread] - Error while fetching members from uri=https://abc.com:8089 Non-200 status_code=401: Unauthorized
12-13-2022 16:00:59.655 -0800 WARN AppsDeployHandler [438 TcpChannelThread] - Error while deploying apps to target=https://abc.com:8089: No captain found amongst members
We can see first the AppsDeployer tried to fetch the member list and failed with "code=401: Unauthorized" and then it reported the error "No captain