| title | Agent Troubleshooting Guide |
|---|---|
| description | Common issues and solutions for MoeNet Agent |
Agent fails to start or exits immediately.
journalctl -u moenet-agent -n 501. Invalid configuration
./moenet-agent -validate2. Missing permissions
# BIRD socket
ls -la /run/bird/bird.ctl
chmod 660 /run/bird/bird.ctl
chown root:bird /run/bird/bird.ctl
# WireGuard
ls -la /etc/wireguard/private.key
chmod 600 /etc/wireguard/private.key3. Port already in use
ss -tulnp | grep 24368[ERROR] Failed to fetch sessions: connection refused
curl -H "Authorization: Bearer $TOKEN" https://api.moenet.work/health1. Network connectivity
ping api.moenet.work
curl -v https://api.moenet.work/health2. Invalid token
Check controlPlane.token in config.
3. Firewall blocking
iptables -L -n | grep 443Sessions exist in Control Plane but not configured on node.
# Trigger manual sync
curl http://localhost:24368/sync
# Check agent logs
journalctl -u moenet-agent | grep -i sync1. Circuit breaker open
[WARN] Circuit breaker open, skipping sync
Wait 30 seconds for circuit to reset.
2. BIRD configuration error
birdc configure checkTunnel created but no connectivity.
# Interface exists?
ip link show | grep wg_
# Peer configured?
wg show
# Handshake happening?
wg show wg_42424210801. Wrong endpoint
# Check peer endpoint
wg show wg_4242421080 | grep endpoint2. Firewall blocking UDP
iptables -L -n | grep 240003. MTU issues
ping -M do -s 1400 fe80::1%wg_4242421080WireGuard up, but BGP not establishing.
birdc show protocols | grep 4242421080
birdc show protocol all dn42_42424210801. Wrong neighbor address
birdc show protocol all dn42_4242421080 | grep Neighbor2. Missing route to neighbor
ip -6 route get fe80::13. Configuration syntax error
birdc configure check
cat /etc/bird/peers/dn42_4242421080.confAgent consuming excessive memory.
ps aux | grep moenet-agent
cat /proc/$(pgrep moenet-agent)/status | grep VmRSS1. Too many sessions Normal: ~5MB per 100 sessions
2. Memory leak Restart agent and monitor:
systemctl restart moenet-agent
watch -n 60 'ps aux | grep moenet-agent'curl http://localhost:24368/status | jqbirdc show status
birdc show protocols
birdc show route countwg show
wg show all dump# CPU/Memory
top -p $(pgrep moenet-agent)
# Open files
lsof -p $(pgrep moenet-agent) | wc -l
# Network connections
ss -np | grep moenet-agent| Component | Location |
|---|---|
| Agent | journalctl -u moenet-agent |
| BIRD | /var/log/bird.log |
| System | /var/log/syslog |
- Check logs:
journalctl -u moenet-agent -n 100 - Enable debug: Set
"logLevel": "debug"in config - Contact: Telegram @heicha