Gateway Not Connecting
Symptoms
- Gateway shows Disconnected status in the console
- No data flowing from devices assigned to this gateway
Common Causes
Check Network Connectivity
Ensure the gateway machine can reach the Central Server:
# From the gateway machine
ping <central-server-ip>
curl http://<central-server-ip>:8080/healthVerify NATS Connection
The gateway connects to the Central Server via NATS. Check if NATS is reachable:
# Default NATS port is 4222
telnet <central-server-ip> 4222Check Configuration
Verify Proxus-config.toml on the gateway (see Configuration Reference):
[Nats]
Url = "nats://<central-server-ip>:4222"Review Gateway Logs
Check the gateway service logs:
# Docker deployment
docker logs proxus-edge-gateway
# Systemd deployment
journalctl -u proxus-gateway -fGateway Keeps Reconnecting
Symptoms
- Gateway status flickers between Connected and Disconnected
- Log shows:
Cluster shutdown detected! Restarting service!!
Solutions
| Cause | Solution |
|---|---|
| Network instability | Check firewall rules, ensure ports 4222 (NATS) and 1883 (MQTT) are open |
| Memory pressure | Increase container memory limit or reduce device count |
| Central Server restart | Normal behavior during maintenance; gateway will auto-reconnect |
MQTT Broker Issues
Cannot Connect to Internal MQTT Broker
The gateway runs an internal MQTT broker for local device communication.
Internal broker listens on port 1883 (TCP) and 9001 (WebSocket).
Check broker status:
# Verify MQTT port is listening
netstat -an | grep 1883Error: "Max reconnect attempts reached"
This appears in logs as:
Max reconnect attempts reached. Please check the MQTT broker.Solutions:
- Verify the MQTT broker address in device configuration
- Check if another process is using port 1883
- Restart the gateway service
Device Status Shows "Unknown"
Symptoms
- Device tile shows gray/unknown status
- Latest values are empty
Troubleshooting
- Verify Device Assignment: Ensure the device is assigned to an active gateway
- Check Protocol Settings: Confirm IP address, port, and credentials are correct
- Enable Device: Ensure the Active checkbox is enabled in device settings
- Check Profile Tags: Verify at least one tag is defined in the device profile
Devices with Active unchecked will not poll for data. This is by design for batch import scenarios.
See Also
- Connect Your First Gateway - Initial gateway setup
- MQTT Broker Configuration - Internal broker settings
- Edge Architecture - How gateways work
- Data Flow Problems - If gateway connects but data is missing