Logs & Troubleshooting
Diagnose a running installation from container logs and health endpoints. This guide follows version 3.1.7 (03acdf712c).
For startup from source, see Local Setup. For background workers, see Background Services.
Health checks
curl --fail http://localhost:3300/health
curl --fail http://localhost:4000/health
curl --fail http://localhost:4000/graphql \
-H 'Content-Type: application/json' \
--data '{"query":"query Health { __typename }"}'
Core API and gateway should return ok. The GraphQL query must return data.__typename === "Query". Gateway ok alone does not prove Apollo Router composition finished; inspect the gateway logs for service registration and supergraph compose errors.
Where to look
docker compose psanddocker compose logs core-api gateway core-ui logs-service redisfor service status.- Gateway logs for
retryGetProxyTargets, missingerxes-service-<name>Redis keys, unreachable<address>/graphql, and Router download failures. - Plugin API logs for
startPlugin, Mongo/Redis connection errors, and permission or tenant (subdomain) failures. - Browser Network panel and console for
/get-frontend-plugins,remoteEntry.js, and GraphQLerrorsarrays. HTTP 200 with a GraphQLerrorsarray is not success.
Common causes
- MongoDB/Redis unreachable: match
MONGO_URL,REDIS_HOST,REDIS_PORT, and Docker networking. From containers, use service names; from the host dev setup, use127.0.0.1. - Gateway waits for a plugin: check
ENABLED_PLUGINSspelling (no spaces, no_apisuffix), that the API container is running, and that its registered address is reachable. - Plugin UI missing: confirm the plugin image or remote is deployed and that production
remoteEntry.jsURLs underplugins.erxes.io(or your asset host) are reachable. See Deployment. - Widget connects to localhost: the widget build baked
REACT_APP_API_URL; rebuild with the public gateway URL. See Messenger Installation. - Out of memory in development: run fewer plugins or raise
NODE_OPTIONS=--max-old-space-size=4096per Node process.
Source references
Was this helpful?