Skip to Content
AgentShield
Operations

Troubleshooting

Diagnose common AgentShield problems, from signature failures and unexpected denies to startup errors, circuits, and event pipeline lag.

Agent requests

Execution

Startup

MessageFix
production mode requires DATABASE_URL to use the agentshield_app role…Connect as agentshield_app
production mode requires https for a non-loopback INTELLIGENCE_URLPut TLS in front of the analyzer, or run it on loopback
production mode requires INTELLIGENCE_TOKENSet a 32+ character token on both gateway and analyzer
http tool: environment variable X is emptySet the credential variable the tools file references
tools config is invalidThe tools file has unknown fields or invalid JSON
GATEWAY_METRICS_ADDR must differ from GATEWAY_HTTP_ADDRUse a separate metrics port, or off
production mode requires tls:// for a non-loopback NATS_URLUse TLS for NATS
production mode requires MINIO_USE_SSL=true…Enable TLS for object storage

Readiness stays 503

ServiceCheck
GatewayDATABASE_URL and REDIS_URL are set and both answer
Control planeDATABASE_URL answers
Event relayPostgreSQL and NATS answer; the outbox's oldest event is under a minute old

Console

Event pipeline

SymptomCheck
OutboxFallingBehind alertRelay logs; NATS reachability and credentials
Backlog metric is -1The relay cannot read the outbox: database connectivity or role
No evidence bundlesMINIO_ENDPOINT and credentials on the relay; bucket exists
Old events never publishedEvents written before migration 0006 are not in the outbox

Local data

New migration files are not applied to an existing Compose volume. Apply them with psql, or reset with docker compose down -v if you can lose local data.

Was this page helpful?

On this page