Troubleshooting¶
Agent won't start¶
Check service status¶
Common causes¶
| Symptom | Cause | Fix |
|---|---|---|
permission denied |
Not running as root / missing capabilities | Check systemd unit has CAP_NET_ADMIN |
config not found |
Missing config file | Create /etc/segla/config.yaml |
connection refused |
Can't reach backend | Check api_addr and network connectivity |
Agent is running but not connecting¶
Test connectivity¶
Check agent registration¶
If agent_id is empty, the agent hasn't registered yet. Check logs for errors:
WireGuard interface not coming up¶
Check WireGuard is available¶
Check interface status¶
Check desired state¶
Verify that a private network is assigned with phase: ACTIVE.
Peers not connecting¶
Verify UDP port is open¶
Check firewall¶
Ensure UDP port 51821 is open for inbound traffic.
Check peer handshake¶
If latest handshake is missing for a peer, the peer may be unreachable. Verify:
- Peer's endpoint is correct and reachable
- Peer's firewall allows UDP 51821
- Both peers have each other's public keys
Reset agent state¶
Danger
This will remove all local state including WireGuard keys. The agent will re-register and regenerate keys on the next cycle.
Enable debug logging¶
Edit /etc/segla/config.yaml:
Then restart: