Two complementary monitoring services:
/etc/systemd/system/helix-shadow-metrics.servicebash
# Health/status check
curl http://127.0.0.1:9010/status
# Response: { \"server_time_utc\": \"2025-11-11T20:01:57.881672Z\", \"version\": \"1.1.0\", \"uptime_seconds\": 1192, \"dissonance\": { \"value\": 0.12, \"timestamp\": \"2025-11-11T19:42:45Z\", \"source\": \"auto-seed\", \"ip\": \"127.0.0.1\" } }
bash # Check service status sudo systemctl status helix-shadow-metrics.service
# Common issue: Permission denied on /opt/helix/ sudo chown helix:helix /opt/helix/
# Restart service sudo systemctl restart helix-shadow-metrics.service
# Check logs sudo journalctl -u helix-shadow-metrics.service -n 10
SEED_VALUE=0.12 in env.confAUTO_HEAL=0 (disabled)/etc/systemd/system/helix-dissonance.servicebash
# Status check
curl http://127.0.0.1:9011/status
# Submit time data (STRICT SCHEMA REQUIRED)
curl -X POST http://127.0.0.1:9011/time \
-H \"Content-Type: application/json\" \
-d '{\"iso_timestamp\": \"2025-11-11T20:20:00Z\", \"source\": \"test\", \"timezone\": \"UTC\", \"human\": \"experiment_name\"}'
# Retrieve last time entry
curl http://127.0.0.1:9011/last_time
# API Documentation
curl http://127.0.0.1:9011/docs
json { \"iso_timestamp\": \"2025-11-11T20:20:00Z\", // ISO 8601 required \"timezone\": \"UTC\", // Timezone context \"source\": \"experiment_source\", // Data provenance \"human\": \"Experiment description\" // Human-readable ID }
bash # Common issue: Port conflict (uses 9011 to avoid conflict with 9010) sudo systemctl edit helix-dissonance.service # Change port in ExecStart: --port 9011
# Common issue: Truncated ExecStart command # Fix in: /etc/systemd/system/helix-dissonance.service.d/z99-execstart.conf # Ensure line ends with: --workers 1
# Restart service sudo systemctl restart helix-dissonance.service
bash # Check directory permissions sudo ls -la /opt/helix/
# Check if user can access directory
sudo -u helix ls -la /opt/helix/
# Fix permissions if needed sudo chown helix:helix /opt/helix/
bash
# Check what's using port 9010/9011
sudo netstat -tlnp | grep 901 |
| Command |
|---|
| Purpose |
| sudo systemctl status helix-shadow-metrics.service |
| Check production service |
| sudo systemctl status helix-dissonance.service |
| Check research service |
| curlhttp://127.0.0.1:9010/status|
| Test production API |
| `curl `http://127.0.0.1:9011/status |
| Test research API |
| sudo journalctl -u helix-*-service -n 10 |
| Check recent logs |