Troubleshooting / Unable to Access This System from the External Network
The system itself is running normally,but it cannot be accessed externally. In most cases,this is caused by network issues.
The specific symptoms are as follows:
- Running
curl -i http://127.0.0.1:8088on the deployment server itself returns302redirect information:
| HTTP | |
|---|---|
1 2 3 4 5 6 7 8 9 | |
- Running
curl http://127.0.0.1:8088/api/v1/do/pingon the deployment server itself returns200with normal data:
| HTTP | |
|---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | |
- Running
curl -i http://{server address}:8088on other devices returns no response or directly returns a connection refusal
Most issues of this type are caused by network problems and are unrelated to DataFlux Func itself.
The following content only records some possible solutions.
1. Incorrect IP / Domain Name Resolution
Try to ping the server where DataFlux Func is located from other devices to confirm whether the IP address and domain name are correct.
This issue can be resolved by modifying the DNS or the /etc/hosts configuration. The specific method depends on the actual network conditions.
1. Incorrect Firewall or Security Configuration
This includes,but is not limited to:
- Incorrect firewall configuration
- Incorrect Alibaba Cloud ECS security group configuration
- Incorrect reverse proxy server or Alibaba Cloud SLB configuration
First,check the ports currently opened for the deployment:
| Bash | |
|---|---|
1 | |
The returned content is:
| Text Only | |
|---|---|
1 | |
{open port} defaults to 8088
Check and modify the network environment to allow external access to the server port.
1. Conflict Between the Local Network and the Automatically Created Ingress Subnet
You can use the following command to check:
| Bash | |
|---|---|
1 | |
Check whether the IPAM.Config.Subnet value is the same as the local network:
| JSON | |
|---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | |
If they overlap,you can modify the configuration as follows:
- Stop DataFlux Func
- Delete the existing network:
sudo docker network rm ingress - Recreate the network:
docker network create --driver overlay --ingress --subnet 10.255.0.0/16 --gateway 10.255.0.1 ingress -
Start DataFlux Func
- Reference document: Custom Docker ingress network configuration
1. Missing Kernel Forwarding Configuration
This issue has been found on CentOS systems,but it has not occurred in most cases.
You can confirm the forwarding configuration as follows:
| Bash | |
|---|---|
1 | |
- If the preceding command returns
1,forwarding is already enabled - Otherwise,you can enable forwarding as follows:
| Bash | |
|---|---|
1 | |