FAQ
Agent connection failed "Invalid agent secret"
Make sure the Agent's AGENT_SECRET (or --secret flag) matches the value configured in the server's .env file.
Server startup failed "SECURITY CONFIGURATION ERROR"
In production mode, the JWT secret must be changed from default:
ini
JWT_SECRET=your-random-string-at-least-32-charsGenerate one with: openssl rand -base64 32
502 Bad Gateway after Docker deployment
- Check if the container is running:
docker compose logs webchat - Reload Nginx DNS cache:
docker exec nginx nginx -s reload
SQLite read-only error (SQLITE_READONLY)
Ensure data directory permissions are correct:
bash
sudo chown -R root:root ./dataCannot login after TOTP setup
TOTP codes have a time window (default ±30 seconds). Make sure the server and your phone clocks are in sync.