Skip to main content

Troubleshooting

Common issues and their solutions.

Backend Returns 502

  1. Check backend logs: docker logs monetra-backend --tail 30
  2. Verify container is running: docker ps | grep backend
  3. Common cause: failed Prisma migration — check _prisma_migrations table
  4. Solution: Redeploy backend via Dokploy

Prisma Migration Fails / Backend Won't Start

Check migration status:

docker exec <db-container> psql -U monetra -d monetra \
-c "SELECT migration_name, finished_at, rolled_back_at
FROM _prisma_migrations ORDER BY started_at DESC LIMIT 5;"

Mark a failed migration as applied:

docker exec <db-container> psql -U monetra -d monetra \
-c "UPDATE _prisma_migrations
SET finished_at=NOW(), rolled_back_at=NULL, logs=NULL, applied_steps_count=1
WHERE migration_name='MIGRATION_NAME';"

Fix checksum mismatch (after manual SQL changes):

docker exec <db-container> psql -U monetra -d monetra \
-c "UPDATE _prisma_migrations
SET checksum='CORRECT_HASH'
WHERE migration_name='MIGRATION_NAME';"

Traefik Routes to Wrong Service

  • Check Dokploy UI > Compose project > affected service > Domains tab
  • Remove incorrect domain entries
  • Note: Traefik v3 no longer supports Cookie() matcher — use traefik.enable=false for conflicting services

SSL Certificate Issues

SymptomCauseSolution
"TRAEFIK DEFAULT CERT" in browserTraefik has no cert for the domainAdd domain in Dokploy with HTTPS enabled, or use Cloudflare Proxy
"NET::ERR_CERT_AUTHORITY_INVALID"Self-signed cert visible to browserEnable Cloudflare Proxy (orange cloud) + SSL mode "Full"
Mixed content warningsHTTP assets loaded on HTTPS pageEnsure all asset URLs use relative paths or HTTPS

Connector Store Issues

IssueSolution
/api/connectors returns 401You need admin role — check your JWT token
Connector not showing after installRefresh the page; check browser console for errors
Webhook URL not workingVerify the connector is enabled (not just installed)
"CORS error" on status pageEnsure /api/health has CORS headers (Access-Control-Allow-Origin: *)

Google Workspace "Not Connected"

  • Error must return HTTP 400 (not 401) — code GOOGLE_NOT_CONNECTED
  • HTTP 401 would trigger the Axios interceptor and logout the user
  • If Google OAuth fails: check that the redirect URI in Google Cloud Console matches exactly

Rate Limiting

If you receive 429 Too Many Requests:

EndpointLimitReset
Login10 req / 15 minPer email address
Register5 req / 60 minPer IP
General API300 req / 60 minPer IP
Webhooks30 req / 60 minPer IP

Check the X-RateLimit-Reset header for the Unix timestamp when the limit resets.

Account Lockout

After too many failed login attempts:

AttemptsLock Duration
55 minutes
1010 minutes
1515 minutes
20+60 minutes

Wait for the lockout to expire, or reset via database if urgent.