Troubleshooting
Start with verify, using ids from your network config:
sudo constellation-agent status
sudo constellation-agent verify --ground-station-id GS-001 --ground-antenna-id GS-001-ANT-1 --satellite-id SAT-9
verify output | Where it broke |
|---|---|
dial unix /run/constellation-agent/telemetry.sock: connect: no such file or directory | The agent isn't running. |
record was written locally but proof … was not read back | The ids, or delivery. Check the ids are in your network config, then the logs. |
READY: telemetry proof … was read back | Nowhere: the agent works. Look at your publisher. |
Permission denied, or no such file
The publisher isn't in the constellation group, or started before it was added. Either error can appear.
id -nG constellation-publisher | grep -w constellation
sudo usermod -aG constellation constellation-publisher
sudo systemctl restart constellation-publisher
If the group is right, check the agent is running (status) and that you read the path from /etc/constellation/socket.env. If /run/constellation-agent is missing after a reboot:
sudo systemd-tmpfiles --create /usr/lib/tmpfiles.d/constellation-agent.conf
sudo systemctl restart telegraf
Records are rejected
sudo constellation-agent logs 500 | grep -e rejected -e dropping -e failed
| Log line | Fix |
|---|---|
needs ground_station_id, ground_antenna_id and satellite_id tags | Add the missing id tag. |
not_in_network_config, after the id field it names, such as satellite_id | Use an id from your network config, with the antenna under its own station. |
unknown_field, after the field it names | Use a field from the list. |
wrong_type, after the field it names | Send the field's listed type (4820i for an integer, true for a boolean). |
FailedPrecondition (gRPC), 409 (HTTP) | Upload a network config for the account. |
Unauthenticated / PermissionDenied (gRPC), 401 / 403 (HTTP) | Replace the key, or give it telemetry:write. |
Parse errors
A malformed line is dropped by the agent; your write still succeeds. Turn on debug to see what arrives:
sudo constellation-agent debug on && sudo constellation-agent logs -f
Common mistakes:
link,ground_station_id=GS-001,ground_antenna_id=A1,satellite_id=SAT-9elevation_deg=22.8 # no space before fields
link,ground_station_id=GS-001,ground_antenna_id=A1,satellite_id=SAT-9 track_mode=program # unquoted string
link,ground_station_id=GS-001,ground_antenna_id=A1,satellite_id=SAT-9 carrier_locked=1 # 1 is a float, not a boolean
link,ground_station_id=GS-001,ground_antenna_id=A1,satellite_id=SAT-9 # no fields
constellation-agent emit ... --print shows a correctly encoded line to compare against.
Wrong timestamps
Timestamps are nanoseconds: 19 digits today. Seconds or milliseconds read as 1970, and the platform rejects a record stamped before 2000 or more than 5 minutes ahead of its clock (implausible_timestamp). If the device clock is unreliable, leave the timestamp off and the agent uses arrival time.
Data arrives late or slowly
During an outage the agent buffers and then catches up, so records arrive in a burst. Normal latency is about half a flush interval plus 0.3 s.
du -sh /var/lib/constellation/buffer # growing means delivery is failing
If the buffer grows without an outage, you've hit the disk buffer's limit of roughly 290 records/s. Reinstall with CONSTELLATION_BUFFER_STRATEGY=memory, keep one connection open, and write several lines per write.
systemd warns about ImportCredential
Unknown key name 'ImportCredential' means the host's systemd is older than Telegraf's own unit file. The agent doesn't use that key; if status and verify pass, ignore it and upgrade systemd before production.
Asking for help
Send the output of status, verify, and sudo constellation-agent logs 300, plus the exact line you're sending (from emit --print or debug mode).
Next: Protocol reference.