Troubleshooting
Solutions for common issues with the Satellite Agent — enrollment, connectivity, data collection and updates. Always start with agent-doctor.sh when troubleshooting.
:::info [First stop]
Always start with agent-doctor.sh — the script checks all relevant areas automatically and outputs a colour-coded PASS/WARN/FAIL overview.
:::
agent-doctor.sh
The repository contains an integrated diagnostics script (scripts/agent-doctor.sh).
It automatically checks all relevant aspects and outputs a colour-coded
PASS / WARN / FAIL / INFO summary.
# If the repo is available locally:
sudo bash /path/to/repo/scripts/agent-doctor.sh
# On an installed system (macOS):
sudo bash /usr/local/imvee-satellite/scripts/agent-doctor.shChecks performed:
| Area | What is checked |
|---|---|
| Base | Installation directory, binary, wrapper script |
| Environment | agent.env present, IMVEE_INDEX set, legacy variables |
| Service | systemd/launchd registered, service state |
| Queue | queue.jsonl present, size (warning above 5 MB) |
| Process | Agent process running |
| Connectivity | OpenSearch URL resolvable, HTTP status, latency |
| Cluster Health | OpenSearch /_cluster/health (if credentials present) |
Exit codes: 0 = OK · 1 = Warnings · 2 = Errors
Log Paths & Service Names
| Platform | Service Name | Log access |
|---|---|---|
| Linux (systemd) | imvee-satellite | sudo journalctl -u imvee-satellite -f |
| macOS (launchd) | com.imvee.satellite | sudo tail -f /var/log/imvee-satellite.log |
Linux:
# Live logs
sudo journalctl -u imvee-satellite -f
# Last 100 lines
sudo journalctl -u imvee-satellite -n 100 --no-pagermacOS:
# Stdout log
sudo tail -f /var/log/imvee-satellite.log
# Stderr log
sudo tail -f /var/log/imvee-satellite-error.logInstallation paths:
| Path | Content |
|---|---|
/usr/local/imvee-satellite/ | Installation directory (binary, config, scripts) |
/usr/local/imvee-satellite/satellite.env | Configuration file (0600) |
/usr/local/imvee-satellite/queue/ | Queue directory (Linux install.sh) |
/usr/local/var/imvee-satellite/queue.jsonl | Shell commands queue (macOS) |
/usr/local/var/imvee-satellite/agent.id | Agent ID (macOS) |
/var/log/imvee-satellite.log | stdout log (macOS) |
/var/log/imvee-satellite-error.log | stderr log (macOS) |
Common Issues
Agent does not register
Symptom: Agent does not appear in SOCSuite, no agent.id file present.
Possible causes & solutions:
| Cause | Solution |
|---|---|
| Enrollment token invalid or expired | Create a new token in SOCSuite under Orbit → Agents → New Agent |
| Backend unreachable | Check firewall rules (socsuite.dev.imvee.de:443) |
Wrong API_URL value | Check environment variable API_URL |
| TLS error | Check certificate on the backend; in development set IMVEE_OPENSEARCH_INSECURE_SKIP_VERIFY=true |
# Connectivity test
curl -v https://socsuite.dev.imvee.de/api/v1/healthHeartbeat failures
Symptom: Agent does not report regularly, status in SOCSuite switches to offline.
Background: The agent uses a staged backoff (10s → 30s → 1m → 2m → 5m → 10m). After 6 consecutive failures it attempts re-registration.
Diagnostics:
# Service status (Linux)
sudo systemctl status imvee-satellite
# Watch logs
sudo journalctl -u imvee-satellite -f
# macOS service status
sudo launchctl print system/com.imvee.satellite
# Connectivity test
curl -v https://socsuite.dev.imvee.de/api/v1/healthQueue fills up
Symptom: /var/lib/imvee-satellite/queue.jsonl grows uncontrolled,
events do not reach OpenSearch.
Possible causes & solutions:
| Cause | Solution |
|---|---|
| OpenSearch unreachable | Check OPENSEARCH_URL and firewall (siem.dev.imvee.de:443) |
| TLS error against OpenSearch | Check certificate; optionally IMVEE_OPENSEARCH_INSECURE_SKIP_VERIFY=true (development only) |
| Circuit breaker open | See Circuit Breaker section |
| Disk full | Check free space on /var/lib/imvee-satellite/ |
# Check queue size
ls -lh /var/lib/imvee-satellite/queue.jsonl
wc -l /var/lib/imvee-satellite/queue.jsonlWebSocket connection drops
Symptom: Missions are not received, live commands do not arrive.
Diagnostics:
# Is the WebSocket endpoint reachable?
curl -v --include \
--no-buffer \
-H "Connection: Upgrade" \
-H "Upgrade: websocket" \
https://socsuite.dev.imvee.de/ws/agents/<AGENT_ID>Note: The websocketLoop() reconnects automatically on connection drops.
Short interruptions are therefore non-critical. For persistent issues check backend
reachability and the certificate for socsuite.dev.imvee.de.
Agent lockout (401 — invalid API key)
Symptom: The agent journal shows ERROR: AGENT LOCKOUT - … consecutive credential rejections (401/403), the status server reports auth.status: "locked_out", and the
event queue grows. Note: heartbeats may keep running — the WebSocket session
established before the key rotation survives (stale auth) and makes the agent look
healthy.
Background: The backend rejects the agent's API key — the typical cause is a lost key rotation push (multi-replica, see Self-Update). The agent cannot self-heal: a reissue request with the invalid key fails as well (401).
Recovery (manual, DEV-176 runbook):
- Rotation re-run (preferred): Trigger the API key rotation in the backend again
and make sure the WS push reaches the agent (
API Key rotated successfullyin the journal). - Re-enrollment: If no valid key is available anymore: remove
agent.idandagent.keyfrom/var/lib/imvee-satellite/, setIMVEE_API_KEYinagent.envand restart the service.
Diagnostics:
# Auth state of the running agent
curl -s http://127.0.0.1:8888/status | jq .auth
# Journal: lockout signature
sudo journalctl -u imvee-satellite | rg "AGENT LOCKOUT|rejected agent credentials"
# Diagnostics bundle (includes status.json with the auth block)
sudo /usr/local/imvee-satellite/imvee-satellite/imvee-satellite diagnosticsCircuit Breaker
The Satellite Agent uses a Circuit Breaker (sony/gobreaker, under internal/breaker/)
for outbound connections to OpenSearch and the backend.
States
CLOSED → Normal operation, requests pass through
│
│ (too many failures)
▼
OPEN → Requests rejected immediately (no network overhead)
│
│ (after timeout)
▼
HALF-OPEN → Test request is sent
├── Success → back to CLOSED
└── Failure → back to OPENWhen does the circuit breaker activate?
The circuit breaker opens when a configured number of consecutive failures occur on OpenSearch or backend calls.
Reset
The circuit breaker closes automatically after the configured timeout (Half-Open state). A manual reset is done by restarting the agent service:
sudo systemctl restart imvee-satelliteQuick Reference: Diagnostic Commands
# === Linux ===
# Service status
sudo systemctl status imvee-satellite
# Live logs
sudo journalctl -u imvee-satellite -f
# Check agent ID
cat /usr/local/var/imvee-satellite/agent.id # macOS
# or:
cat /usr/local/imvee-satellite/agent.id # Linux (depending on install)
# Queue status
ls -lh /usr/local/var/imvee-satellite/queue.jsonl
wc -l /usr/local/var/imvee-satellite/queue.jsonl
# === macOS ===
# Service status
sudo launchctl print system/com.imvee.satellite
# Logs
sudo tail -f /var/log/imvee-satellite.log
# === Connectivity (cross-platform) ===
curl -v https://socsuite.dev.imvee.de/api/v1/health
curl -v https://siem.dev.imvee.de
# === Automated health check ===
sudo bash /usr/local/imvee-satellite/scripts/agent-doctor.shSee Also
- Requirements — Check platform and network prerequisites
- Configuration — Environment variables and token priority
- Circuit Breaker — Behaviour on connection issues
- Installation — Reinstallation and updates