Port 9200 Cannot Be Reached
Symptom
If a VPN or VPC peering connection is used to access the CSS cluster, no result is returned when the curl command is used to connect to an Elasticsearch cluster.
For example, if you run the following command to connect to the cluster, no result is returned:
curl -s 'http://< node private access address >:9200'
Possible Causes
If a VPN or VPC peering connection is used to access CSS, that means that the client and CSS are not in the same VPC. Therefore, the subnet of the CSS cluster must be in a different network segment from that of the VPC.
For example, consider a CSS cluster that uses the VPC vpc-8e28 with a CIDR block of 192.168.0.0/16. The subnet subnet-4a81 under this VPC is selected, and the CIDR block of subnet-4a81 is the same as that of vpc-8e28, both being 192.168.0.0/16. In this case, if a VPN private line or a VPC peering connection is used to access the CSS cluster, there will be no gateway route corresponding to the VPC under this subnet. This affects the configuration of the default route for the CSS service, ultimately causing the port 9200 access failure.
Procedure
If port 9200 cannot be reached but the CSS cluster is available, perform the following steps to rectify the issue:
- Log in to the CSS management console.
- In the navigation pane on the left, expand Clusters. Select a cluster type based on the target cluster. The cluster list is displayed.
- In the cluster list, click the name of the target cluster. The cluster information page is displayed.
- Click the Overview tab.
- In the Network Information area, check the VPC and Current Subnet used by the cluster.
- Click the VPC name to go to the VPC details page. Check the CIDR block of the VPC and subnet.
If the VPC and the subnet are on the same CIDR block, when a VPN private line or a VPC peering connection is used, access to port 9200 will fail.
- If the preceding error occurs, create another cluster and this time select a subnet that is different from the VPC subnet. If the subnet does not exist, create another subnet on the VPC management console.
After a new CSS cluster is created, migrate the data of the old cluster to the new cluster, and then use the VPN or VPC peering connection to access the cluster.
If you require a VPN connection or VPC peering connection to access the CSS cluster, ensure that the VPC and subnet of the newly created CSS are in different network segments.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot