The external service is unavailable, but everything is running on the server. How do you check?
sobes.tech AI
Answer from AI
If the external service is unavailable but it is running on the server, I check step by step:
-
Process and logs check: Make sure the process is actually running (
ps,systemctl status), and look at logs for errors. -
Local access check: Try to connect to the service from the server itself (for example,
curl localhost:portortelnet localhost port). If accessible locally — the service is working. -
Network rules check: Check firewall settings (
iptables,firewalld,ufw) and security groups (if in cloud), the port might be blocked. -
Network interface check: Ensure the service listens on the correct interface (for example, 0.0.0.0, not just localhost).
netstat -tulnporss -tulnpwill show on which addresses the service is listening. -
Routing and DNS check: Verify that IP and DNS are correctly configured, and requests reach the server.
-
Proxy and load balancer check: If there is nginx, haproxy, or other proxies, check their configuration and logs.
Thus, a sequential check from the service to the network will help identify the problem.