Skip to main content

Connection Issues

Connection Issues

Troubleshooting network and service connection problems.


Service Not Reachable

Check Service Status

# Docker docker ps docker logs <container-name> # Kubernetes kubectl get pods -n observability kubectl logs -n observability <pod-name>

Verify Endpoints

# Phoenix curl http://localhost:6006/health # Jaeger curl http://localhost:16686 # Prometheus curl http://localhost:9090/-/healthy # Agent Tracer curl http://localhost:3007/health

DNS Resolution

Cannot Resolve Hostname

Problem: getaddrinfo ENOTFOUND

Solution:

# Test DNS nslookup gitlab.com # Use IP if DNS fails export GITLAB_URL=http://IP_ADDRESS # Add to /etc/hosts sudo echo "IP_ADDRESS gitlab.com" >> /etc/hosts

Firewall Issues

Port Blocked

Problem: Connection timeout

Solution:

# macOS - Allow port sudo /usr/libexec/ApplicationFirewall/socketfilterfw --add /path/to/app # Linux - Allow port sudo ufw allow 6006/tcp # Check listening ports lsof -i -P | grep LISTEN

SSL/TLS Issues

Certificate Verification Failed

Problem: SSL certificate problem

Solution:

# Temporary bypass (development only) export NODE_TLS_REJECT_UNAUTHORIZED=0 # Add certificate sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain cert.pem

Proxy Issues

Behind Corporate Proxy

Solution:

# Set proxy export HTTP_PROXY=http://proxy.company.com:8080 export HTTPS_PROXY=http://proxy.company.com:8080 export NO_PROXY=localhost,127.0.0.1 # NPM proxy npm config set proxy http://proxy.company.com:8080 npm config set https-proxy http://proxy.company.com:8080