deployer: [RuntimeException] Without exception message

Q A
Issue Type Bug
Deployer Version 3.2.1
Local Machine OS Ubuntu 14.04
Remote Machine OS Debian 7

I’m trying implement new deploy in my project but i’m stuck. when i run my deploy command

dep deploy:update_code beta -vvv

then i have this exception

`➤ Executing task deploy:update_code ↳ on [main]

cd /var/www/beta.domain.pl && which git < /usr/bin/git < cd /var/www/beta.domain.pl && git version < git version 1.7.10.4 < cd /var/www/beta.domain.pl && find /var/www/beta.domain.pl/releases -maxdepth 1 -mindepth 1 -type d cd /var/www/beta.domain.pl && readlink /var/www/beta.domain.pl/release

[RuntimeException]

Exception trace: () at phar:///usr/local/bin/dep/src/Server/Remote/PhpSecLib.php:114 Deployer\Server\Remote\PhpSecLib->run() at phar:///usr/local/bin/dep/src/functions.php:296 run() at phar:///usr/local/bin/dep/recipe/common.php:146 {closure}() at n/a:n/a call_user_func() at phar:///usr/local/bin/dep/src/Server/Environment.php:101 Deployer\Server\Environment->get() at phar:///usr/local/bin/dep/src/Server/Environment.php:175 Deployer\Server\Environment->parseCallback() at n/a:n/a preg_replace_callback() at phar:///usr/local/bin/dep/src/Server/Environment.php:161 Deployer\Server\Environment->parse() at phar:///usr/local/bin/dep/src/functions.php:285 run() at phar:///usr/local/bin/dep/recipe/common.php:206 {closure}() at n/a:n/a call_user_func() at phar:///usr/local/bin/dep/src/Task/Task.php:79 Deployer\Task\Task->run() at phar:///usr/local/bin/dep/src/Executor/SeriesExecutor.php:43 Deployer\Executor\SeriesExecutor->run() at phar:///usr/local/bin/dep/src/Console/TaskCommand.php:82 Deployer\Console\TaskCommand->execute() at phar:///usr/local/bin/dep/vendor/symfony/console/Command/Command.php:256 Symfony\Component\Console\Command\Command->run() at phar:///usr/local/bin/dep/vendor/symfony/console/Application.php:791 Symfony\Component\Console\Application->doRunCommand() at phar:///usr/local/bin/dep/vendor/symfony/console/Application.php:186 Symfony\Component\Console\Application->doRun() at phar:///usr/local/bin/dep/vendor/symfony/console/Application.php:117 Symfony\Component\Console\Application->run() at phar:///usr/local/bin/dep/src/Deployer.php:101 Deployer\Deployer->run() at phar:///usr/local/bin/dep/bin/dep:63 require() at /usr/local/bin/dep:4

deploy:update_code [-p|–parallel] ` this is my deploy.php file

`<?php require ‘recipe/common.php’;

server(‘main’, ‘beta.domain.pl’, 22) ->user(‘user’) ->password(‘password’) ->stage(‘beta’) ->env(‘deploy_path’, ‘/var/www/beta.domain.pl’);

set(‘repository’, ‘https://bbuser@bitbucket.org/bbuser/beta.domain.pl.git’); set(‘keep_releases’, 2);`

Any idea what’s causing this error?

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 2
  • Comments: 21 (8 by maintainers)

Most upvoted comments

I see your issue is problem of command

cd /var/www/beta.domain.pl && readlink /var/www/beta.domain.pl/release

Please run this command in your server (remote machine)