Docker icon indicating copy to clipboard operation
Docker copied to clipboard

Docker setup fails with cachet:install not defined

Open cdudevops opened this issue 5 years ago • 3 comments

Hello,

Following the steps and using latest version v2.3.18 i receive this:

cachet_1 | [2020-06-03 14:40:36] production.ERROR: Symfony\Component\Console\Exception\CommandNotFoundException: Command "cachet:install" is not defined. cachet_1 | cachet_1 | Did you mean one of these? cachet_1 | app:install cachet_1 | migrate:install cachet_1 | cachet_1 | cachet:metrics cachet_1 | cachet:seed cachet_1 | cache:clear cachet_1 | cache:table in /var/www/html/vendor/symfony/console/Application.php:515 cachet_1 | Stack trace: cachet_1 | #0 /var/www/html/vendor/symfony/console/Application.php(183): Symfony\Component\Console\Application->find('cachet:install') cachet_1 | #1 /var/www/html/vendor/symfony/console/Application.php(117): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) cachet_1 | #2 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(107): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) cachet_1 | #3 /var/www/html/artisan(35): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))

cdudevops avatar Jun 03 '20 14:06 cdudevops

I had the same issue. Edit entrypoint.sh and change php artisan cachet:install --no-interaction on line 207 to php artisan app:install --no-interaction and it should launch successfully.

ryan77627 avatar Jun 04 '20 20:06 ryan77627

Oh also, make sure you set the proper options to APC, (I forget what they were called sorry). and make sure you change the Dockerfile to have FROM nginx:1.14.0-alpine instead of whatever was there before (again, forgot, sorry). This is because the image they pull from by default has php packages that are too new. If you don't change the Dockerfile, you will get a 500 error after the setup.

ryan77627 avatar Jun 04 '20 23:06 ryan77627

I'm seeing the same error, fixed by rebuilding with app:install instead of cachet:install in entrypoint.sh.

bmaximuml avatar Dec 16 '21 16:12 bmaximuml