Troubleshoot Craft CMS 6 on fortrabbit

Published

Updated

Errors seen with the Craft CMS 6 beta on fortrabbit, and how to fix them.

craft:up fails on an empty database

php artisan craft:up fails with "Base table or view not found" while Craft is not installed. Apps created before the template guarded it run it anyway. Use the post-deploy commands from deployment, then import or install.

Site shows a 503 page

A failed craft:up leaves Laravel's maintenance mode on. Its file sits in storage/framework/down, which deployments don't touch, so it stays after the next deployment. Turn it off over SSH:

ssh {{app-env-id}}@ssh.{{region}}.frbit.app php artisan up
shell

craft:install is cancelled

php artisan craft:install asks to confirm the run with APP_ENV=production and has no --force option. Run it in an interactive SSH session, with ssh -t, and confirm with yes.

Project config validation failed

craft:install stops with "Project config validation failed" when config/craft/project/project.yaml exists but is empty. A failed craft:up can leave such a file. Delete the folder on the environment and run the install again:

rm -rf config/craft/project
shell

Show error details

Craft logs errors to the logs of the environment, with LOG_STACK=stderr from the ENV vars. Set APP_DEBUG=true only on an environment that is not public, and back to false afterwards.

Written by humans and AI in collaboration.

AI use & editorial processEdit on GitHub ↗