easy-deploy-bundle
easy-deploy-bundle copied to clipboard
Could not open input file: bin/console
I'm running into this error and I can't find a proper solution :
[[email protected]] Executing command: (export SYMFONY_ENV=prod; cd /home/goldsr/public_html/project/releases/20171229190937 && composer install --ignore-platform-reqs --no-dev --prefer-dist --no-interaction --quiet)
| err ::
| err ::
| err :: [RuntimeException]
| err :: An error occurred when executing the "'cache:clear --no-warmup'" command:
| err :: Could not open input file: bin/console
| err ::
| err :: install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--ignore-platform-reqs] [--] [<packages>]...
| err ::
[ERROR] Cancelling the deployment and reverting the changes
A log file with all the error details has been generated in /var/www/html/project/var/logs/deploy_prod.log
Executing beforeCancelingDeploy hook
Nothing to execute
Deleting the last release directory
[[email protected]] Executing command: (export SYMFONY_ENV=prod; cd /home/goldsr/public_html/project/releases/20171229190937 && export _last_release_dirname=$(ls -r1 /home/goldsr/public_html/project/releases | head -n 1) && rm -fr /home/goldsr/public_html/project/releases/$_last_release_dirname)
[Symfony\Component\Process\Exception\ProcessFailedException]
The command "ssh -A [email protected] -p 60504 '(export SYMFONY_ENV=prod; cd /home/goldsr/public_html/project/releases/20171229190937 && composer install --ignor
e-platform-reqs --no-dev --prefer-dist --no-interaction --quiet)'" failed.
Exit Code: 1(General error)
Working directory: /var/www/html/project
Output:
================
Error Output:
================
[RuntimeException]
An error occurred when executing the "'cache:clear --no-warmup'" command:
Could not open input file: bin/console
install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [-v|vv|vvv|--ver
bose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--ignore-platform-reqs] [--] [<packages>]...
Can I set, somewhere, the console path ?
Try using this:
SYMFONY_ENV=prod ./bin/console _ACTION_
Thanks Now it doesn't find the console ?
[[email protected]] Executing command: (export SYMFONY_ENV=prod; cd /home/goldsr/public_html/project/releases/20180104110559 && php /home/goldsr/public_html/project/releases/20180104110559/bin/console assets:install /home/goldsr/public_html/project/releases/20180104110559/web --symlink --no-debug --env=prod)
| out :: Could not open input file: /home/goldsr/public_html/project/releases/20180104110559/bin/console
I managed ! Thank you for your help