I am receiving an error when cache warmup is executed, I don't know where to start to fix the issue.
It is runing in a cPanel with multiPHP and the account is configured to use php7. Also I had to add this line in my configuration file to use php7 with composer, as composer was being executed with php56, but with this is being executed with php7.
00:25 symfony:cache:warmup
01 php /home/golf/app/releases/20180113191649/bin/console cache:warmup --no-debug
01 stdin: is not a tty
01
01 // Warming up the cache for the prod environment with debug
01 // false
01
(Backtrace restricted to imported tasks)
cap aborted!
SSHKit::Runner::ExecuteError: Exception while executing as golf@******: php exit status: 255
php stdout: // Warming up the cache for the prod environment with debug
// false
php stderr: stdin: is not a tty
SSHKit::Command::Failed: php exit status: 255
php stdout: // Warming up the cache for the prod environment with debug
// false
php stderr: stdin: is not a tty
Tasks: TOP => symfony:cache:warmup
(See full trace by running task with --trace)
The deploy has failed with an error: Exception while executing as golf@******: php exit status: 255
php stdout: // Warming up the cache for the prod environment with debug
// false
php stderr: stdin: is not a tty
** DEPLOY FAILED
** Refer to log/capistrano.log for details. Here are the last 20 lines:
DEBUG [3679e5f5] Finished in 0.307 seconds with exit status 0 (successful).
INFO [a5880414] Running /usr/bin/env chmod -R 0777 /home/golf/app/uploads /home/golf/app/releases/20180113191649/var /home/golf/app/shared/web/media/cache as golf@******
DEBUG [a5880414] Command: ( export SYMFONY_ENV="prod" ; /usr/bin/env chmod -R 0777 /home/golf/app/uploads /home/golf/app/releases/20180113191649/var /home/golf/app/shared/web/media/cache )
DEBUG [a5880414] stdin: is not a tty
INFO [a5880414] Finished in 0.291 seconds with exit status 0 (successful).
DEBUG [93ed0055] Running if test ! -d /home/golf/app/releases/20180113191649; then echo "Directory does not exist '/home/golf/app/releases/20180113191649'" 1>&2; false; fi as golf@******
DEBUG [93ed0055] Command: if test ! -d /home/golf/app/releases/20180113191649; then echo "Directory does not exist '/home/golf/app/releases/20180113191649'" 1>&2; false; fi
DEBUG [93ed0055] stdin: is not a tty
DEBUG [93ed0055] Finished in 0.406 seconds with exit status 0 (successful).
INFO [21d8f732] Running php -ea_php 70 /opt/cpanel/composer/bin/composer install --no-dev --prefer-dist --no-interaction --quiet --optimize-autoloader as golf@******
DEBUG [21d8f732] Command: cd /home/golf/app/releases/20180113191649 && ( export SYMFONY_ENV="prod" ; php -ea_php 70 /opt/cpanel/composer/bin/composer install --no-dev --prefer-dist --no-interaction --quiet --optimize-autoloader )
DEBUG [21d8f732] stdin: is not a tty
INFO [21d8f732] Finished in 8.839 seconds with exit status 0 (successful).
INFO [2eb78c8a] Running /usr/bin/env php /home/golf/app/releases/20180113191649/bin/console cache:warmup --no-debug as golf@******
DEBUG [2eb78c8a] Command: ( export SYMFONY_ENV="prod" ; /usr/bin/env php /home/golf/app/releases/20180113191649/bin/console cache:warmup --no-debug )
DEBUG [2eb78c8a] stdin: is not a tty
DEBUG [2eb78c8a]
DEBUG [2eb78c8a] // Warming up the cache for the prod environment with debug
// false
DEBUG [2eb78c8a]
If I SSH into the server and run the command it runs correctly:
# ( export SYMFONY_ENV="prod" ; /usr/bin/env php /home/golf/app/releases/20180113191649/bin/console cache:warmup --no-debug )
// Warming up the cache for the prod environment with debug false
[OK] Cache for the "prod" environment (debug=false) was successfully warmed.
Hello,
I am receiving an error when cache warmup is executed, I don't know where to start to fix the issue.
It is runing in a cPanel with multiPHP and the account is configured to use php7. Also I had to add this line in my configuration file to use php7 with composer, as composer was being executed with php56, but with this is being executed with php7.
Trace:
If I SSH into the server and run the command it runs correctly:
Thank you.