Troubleshooting
This page collects common setup and runtime problems.
Application instance is already initialized
Annabel keeps a static application instance. In tests or scripts that bootstrap more than one application, reset it first:
Feature tests using InteractsWithApplication can call refreshApplication().
Routes do not update in production
Clear the route cache:
Then rebuild optimized caches:
Routes with closures cannot be cached. Use controller handlers for production routes.
Config changes are ignored
Clear the config cache:
When deploying, rebuild caches after environment and config files are in place.
Cannot write cache, sessions, logs, or generated files
Make sure the PHP process can write to:
storage/bootstrap/cache/- the SQLite database file path, when SQLite is used
Generated runtime files should not be committed.
Database connection fails
Check .env and the selected PDO extension:
For SQLite, create the database file before migrating:
CSRF token mismatch
For HTML forms, include the CSRF field:
For JSON APIs, prefer routes under paths excluded from CSRF verification, such
as api/*, or configure security.csrf.verify_json intentionally.
Rate limiting uses the wrong client IP
Configure trusted proxies:
This lets throttling resolve the real client address behind a proxy.
Queue jobs never run
Check the queue connection and run a worker:
For database queues, publish and run queue migrations:
Redis-backed features fail
Redis cache, queues, sessions, and throttling require a working Redis client. When using the PHP Redis extension, ensure the extension is installed in the PHP runtime and that host, port, password, database, and timeout values are correct.
Mail does not send
Use the log mailer locally:
For SMTP, configure the DSN: