Troubleshooting / External Network Cannot Access This System
The system itself is running normally, but external access fails, which is mostly due to network issues.
Specific symptoms include:
- Using
curl -i http://127.0.0.1:8088
on the deployment server returns a302
redirect message:
HTTP | |
---|---|
1 2 3 4 5 6 7 8 9 |
|
- Using
curl http://127.0.0.1:8088/api/v1/do/ping
on the deployment server returns200
normal data:
HTTP | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
|
- Using
curl -i http://{server address}:8088
on other devices results in no response or directly returns a connection refusal.
Such issues are mostly network-related and not related to DataFlux Func itself.
The following content is merely a record of some possible solutions.
1. Incorrect IP / Domain Name Resolution
Try to ping
the server where DataFlux Func is located from another device to confirm if the IP and domain name are correct.
This can be resolved by modifying DNS or editing the /etc/hosts
configuration according to the actual network situation.
2. Incorrect Firewall or Security Configuration
Including but 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 open for deployment:
Bash | |
---|---|
1 |
|
The returned content should be:
Text Only | |
---|---|
1 |
|
{open port} default is 8088
Check and modify the network environment to allow external access to the server port.
3. Conflict Between Local Network and Automatically Created Ingress Subnet
You can use the following command to check:
Bash | |
---|---|
1 |
|
Check if the IPAM
/ Config
/ Subnet
value matches the local network:
JavaScript | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
|
If there is a conflict, you can modify it as follows:
- Stop DataFlux Func
- Delete the existing network:
sudo docker network rm ingress
- Rebuild 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: Customizing Docker Ingress Network Configuration
4. Missing Kernel Forwarding Configuration
This issue has been found in CentOS systems, but it is rarely encountered in most cases.
You can confirm the forwarding configuration as follows:
Bash | |
---|---|
1 |
|
- If the above command returns
1
, forwarding is already enabled. - Otherwise, you can enable forwarding with the following command:
Bash | |
---|---|
1 |
|