Docs / Reference
Troubleshooting
Common problems when installing and integrating.
| Symptom | Cause and fix |
|---|---|
First sign-in on a new database returns 401 | The development administrator is created by the first protected call. Run curl <api-base>/v1/auth/me once, then sign in. In production use rai-gateway admin create |
Compose says to set POSTGRES_PASSWORD | Create .env from the example file |
Password rejected after changing POSTGRES_PASSWORD | PostgreSQL applies it only when the volume is created. Change it inside the database as well |
| API exits in production | Insecure settings are refused. Read docker compose logs rai-gateway |
RESOURCE_OUT_OF_SCOPE for a registered tool | Declare the tool on the agent version and check the identity is bound to that version |
| Every action requires approval | The tool is consequential, or the version is HIGH or CRITICAL risk |
| A rule never matches | Check parameter_path, value_type, and for MCP tools the server scoping |
| Approved action is held again | Parameters changed, the approval expired, or it was already used |
SDK session already ended | Use a new external_session_id for each turn |
| Webhooks and alerts never arrive | Start the runtime events worker |
| Example tools cannot be reached | From Docker use host.docker.internal. On Linux also set the bind address |
ERR_PACKAGE_PATH_NOT_EXPORTED | Load the TypeScript SDK with require or createRequire |
| AI features say not configured | Set RAI_AI_PROVIDER, RAI_AI_MODEL and a credential, then restart |
Report problems at github.com/ztechnium/raicentral/issues. Report security issues privately, as described in the repository's SECURITY.md.