Laravel recipe - Task "cleanup" not found (Deployer 6 to 7 update) #4045
Replies: 1 comment
-
[remote.machine] run cat ~/public_html/mysite/.dep/deploy.lock
[remote.machine] laradock
[remote.machine] Deployer\Exception\GracefulShutdownException in lock.php on line 13:
[remote.machine]
[remote.machine] Deploy locked by laradock.
[remote.machine] Execute "deploy:unlock" task to unlock.
[remote.machine]
[remote.machine] #0 [internal function]: Deployer\Importer\Importer::Deployer\{closure}()
[remote.machine] #1 phar:///usr/local/bin/dep/src/Task/Task.php(92): call_user_func()
[remote.machine] #2 phar:///usr/local/bin/dep/src/Executor/Worker.php(40): Deployer\Task\Task->run()
[remote.machine] #3 phar:///usr/local/bin/dep/src/Command/WorkerCommand.php(55): Deployer\Executor\Worker->execute()
[remote.machine] #4 phar:///usr/local/bin/dep/vendor/symfony/console/Command/Command.php(292): Deployer\Command\WorkerCommand->execute()
[remote.machine] #5 phar:///usr/local/bin/dep/vendor/symfony/console/Application.php(1038): Symfony\Component\Console\Command\Command->run()
[remote.machine] #6 phar:///usr/local/bin/dep/vendor/symfony/console/Application.php(301): Symfony\Component\Console\Application->doRunCommand()
[remote.machine] #7 phar:///usr/local/bin/dep/vendor/symfony/console/Application.php(171): Symfony\Component\Console\Application->doRun()
[remote.machine] #8 phar:///usr/local/bin/dep/src/Deployer.php(319): Symfony\Component\Console\Application->run()
[remote.machine] #9 phar:///usr/local/bin/dep/bin/dep(99): Deployer\Deployer::run()
[remote.machine] #10 /usr/local/bin/dep(4): require('...')
[remote.machine] #11 {main}
done deploy:lock 1s 85ms
ERROR: Task deploy:lock failed! I tried @antonmedv Can u help? UPDATE....This thing made me crazy. [remote.machine] run cd ~/public_html/mysite && (if [ -d releases/36 ]; then echo +true; fi)
[remote.machine] Deployer\Exception\Exception in release.php on line 111:
[remote.machine]
[remote.machine] Release name "35" already exists.
[remote.machine] Release name can be overridden via:
[remote.machine] dep deploy -o release_name=36
[remote.machine]
[remote.machine] #0 [internal function]: Deployer\Importer\Importer::Deployer\{closure}()
[remote.machine] #1 phar:///usr/local/bin/dep/src/Task/Task.php(92): call_user_func()
[remote.machine] #2 phar:///usr/local/bin/dep/src/Executor/Worker.php(40): Deployer\Task\Task->run()
[remote.machine] #3 phar:///usr/local/bin/dep/src/Command/WorkerCommand.php(55): Deployer\Executor\Worker->execute()
[remote.machine] #4 phar:///usr/local/bin/dep/vendor/symfony/console/Command/Command.php(292): Deployer\Command\WorkerCommand->execute()
[remote.machine] #5 phar:///usr/local/bin/dep/vendor/symfony/console/Application.php(1038): Symfony\Component\Console\Command\Command->run()
[remote.machine] #6 phar:///usr/local/bin/dep/vendor/symfony/console/Application.php(301): Symfony\Component\Console\Application->doRunCommand()
[remote.machine] #7 phar:///usr/local/bin/dep/vendor/symfony/console/Application.php(171): Symfony\Component\Console\Application->doRun()
[remote.machine] #8 phar:///usr/local/bin/dep/src/Deployer.php(319): Symfony\Component\Console\Application->run()
[remote.machine] #9 phar:///usr/local/bin/dep/bin/dep(99): Deployer\Deployer::run()
[remote.machine] #10 /usr/local/bin/dep(4): require('...')
[remote.machine] #11 {main}
done deploy:release 2s 698ms
ERROR: Task deploy:release failed!
task deploy:failed No matter what release number I put - it always writes that there is already one.... 😢 UPDATE 2 Got it working by adding 2 lines from laravel recipe: set('shared_dirs', ['storage']);
set('shared_files', ['.env']); disabling Now my list of commands: task('deploy', [
'deploy:info',
'deploy:prepare',
'deploy:update_code',
'upload:env',
'deploy:shared',
'deploy:vendors',
'artisan:storage:link',
'artisan:view:clear',
'artisan:config:cache',
'artisan:optimize',
'deploy:symlink',
'deploy:unlock',
'deploy:cleanup',
]); For me it looks like some of commands executed 2 times, because included in Deployer 7 by default. |
Beta Was this translation helpful? Give feedback.
-
I'm usind laradock with Laravel recipe, deployer 7.5.8 (previously was 6)
My
deploy.php
:Deployer installed globally.
Now when I try to deploy I see this error:
with
-vvv
debug:How to fix?
require 'recipe/deploy/cleanup.php;
doesn't help...Everything was working fine before the update.
Beta Was this translation helpful? Give feedback.
All reactions