It’s okay to execute the ssh command alone, but with this "bash -s; printf '[exit_code:%s]' $?;" execution it will time out #2272
Unanswered
kayw-geek
asked this question in
Help needed
Replies: 1 comment
-
So what is command is timeouted? Also try to download v7 and run it on. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
When the problem occurs and cloning into, there is no response
I run the command "ssh -A -p 28301 -i C:\Users\1R.ssh\deployerkey [email protected]" alone without problems,
But there is "ssh -A -p 28301 -i C:\Users\1R.ssh\deployerkey [email protected] "bash -s; printf '[exit_code:%s]' $?;"
" no response when running this command
My config :
Run output:
✈︎ Deploying dev_test on 67.230.191.105
• done on [67.230.191.105]
➤ Executing task deploy:prepare
[67.230.191.105] > echo $0
[67.230.191.105] < bash
[67.230.191.105] > if [ ! -d /var/www/chasing ]; then mkdir -p /var/www/chasing; fi
[67.230.191.105] > if [ ! -L /var/www/chasing/current ] && [ -d /var/www/chasing/current ]; then echo 'true'; fi
[67.230.191.105] > cd /var/www/chasing && if [ ! -d .dep ]; then mkdir .dep; fi
[67.230.191.105] > cd /var/www/chasing && if [ ! -d releases ]; then mkdir releases; fi
[67.230.191.105] > cd /var/www/chasing && if [ ! -d shared ]; then mkdir shared; fi
• done on [67.230.191.105]
✔ Ok [14s 701ms]
➤ Executing task deploy:lock
[67.230.191.105] > if [ -f /var/www/chasing/.dep/deploy.lock ]; then echo 'true'; fi
[67.230.191.105] > touch /var/www/chasing/.dep/deploy.lock
• done on [67.230.191.105]
✔ Ok [4s 833ms]
➤ Executing task deploy:release
[67.230.191.105] > cd /var/www/chasing && (if [ -h release ]; then echo 'true'; fi)
[67.230.191.105] < true
[67.230.191.105] > cd /var/www/chasing && (rm -rf "$(readlink release)")
[67.230.191.105] > cd /var/www/chasing && (rm release)
[67.230.191.105] > cd /var/www/chasing && (if [ -d releases ] && [ "$(ls -A releases)" ]; then echo 'true'; fi)
[67.230.191.105] > cd /var/www/chasing && (if [ -d /var/www/chasing/releases/1 ]; then echo 'true'; fi)
[67.230.191.105] > cd /var/www/chasing && (date +"%Y%m%d%H%M%S")
[67.230.191.105] < 20201106115418
[67.230.191.105] > cd /var/www/chasing && (echo '20201106115418,1' >> .dep/releases)
[67.230.191.105] > cd /var/www/chasing && (mkdir /var/www/chasing/releases/1)
[67.230.191.105] > cd /var/www/chasing && (if [[ $(man ln 2>&1 || ln -h 2>&1 || ln --help 2>&1) =~ '--relative' ]]; then echo 'true'; fi)
[67.230.191.105] < true
[67.230.191.105] > cd /var/www/chasing && (ln -nfs --relative /var/www/chasing/releases/1 /var/www/chasing/release)
• done on [67.230.191.105]
✔ Ok [27s 385ms]
➤ Executing task deploy:update_code
[67.230.191.105] > command -v "git" || which "git" || type -p "git"
[67.230.191.105] < /usr/local/bin/git
[67.230.191.105] > /usr/local/bin/git version
[67.230.191.105] < git version 2.4.0
[67.230.191.105] > cd /var/www/chasing && (if [ -h /var/www/chasing/release ]; then echo 'true'; fi)
[67.230.191.105] < true
[67.230.191.105] > cd /var/www/chasing && (readlink /var/www/chasing/release)
[67.230.191.105] < releases/1
[67.230.191.105] > cd /var/www/chasing && (/usr/local/bin/git clone -b "dev_test" --recursive ssh://[email protected]:2200/ci-website/chasing.git /var/www/chasing/releases/1 2>&1)
[67.230.191.105] < Cloning into '/var/www/chasing/releases/1'...
➤ Executing task deploy:failed
• done on [67.230.191.105]
✔ Ok [1ms]
➤ Executing task deploy:unlock
[67.230.191.105] > rm -f /var/www/chasing/.dep/deploy.lock
• done on [67.230.191.105]
✔ Ok [3s 435ms]
In Process.php line 1237:
[Symfony\Component\Process\Exception\ProcessTimedOutException]
The process "ssh -A -p 28391 -i C:\Users\1R.ssh\deployerkey [email protected] "bash -s; printf '[exit_code:%s]' $?;"" exceeded the timeout of 100 seconds.
Exception trace:
() at C:\Users\1R\AppData\Roaming\Composer\vendor\symfony\process\Process.php:1237
Symfony\Component\Process\Process->checkTimeout() at C:\Users\1R\AppData\Roaming\Composer\vendor\symfony\process\Process.php:416
Symfony\Component\Process\Process->wait() at C:\Users\1R\AppData\Roaming\Composer\vendor\symfony\process\Process.php:235
Symfony\Component\Process\Process->run() at C:\Users\1R\AppData\Roaming\Composer\vendor\deployer\deployer\src\Ssh\Client.php:97
Deployer\Ssh\Client->run() at C:\Users\1R\AppData\Roaming\Composer\vendor\deployer\deployer\src\functions.php:304
Deployer\run() at C:\Users\1R\AppData\Roaming\Composer\vendor\deployer\deployer\recipe\deploy\update_code.php:96
Deployer\Deployer::Deployer{closure}() at n/a:n/a
call_user_func() at C:\Users\1R\AppData\Roaming\Composer\vendor\deployer\deployer\src\Task\Task.php:105
Deployer\Task\Task->run() at C:\Users\1R\AppData\Roaming\Composer\vendor\deployer\deployer\src\Executor\SeriesExecutor.php:60
Deployer\Executor\SeriesExecutor->run() at C:\Users\1R\AppData\Roaming\Composer\vendor\deployer\deployer\src\Console\TaskCommand.php:144
Deployer\Console\TaskCommand->execute() at C:\Users\1R\AppData\Roaming\Composer\vendor\symfony\console\Command\Command.php:255
Symfony\Component\Console\Command\Command->run() at C:\Users\1R\AppData\Roaming\Composer\vendor\symfony\console\Application.php:921
Symfony\Component\Console\Application->doRunCommand() at C:\Users\1R\AppData\Roaming\Composer\vendor\deployer\deployer\src\Console\Application.php:133
Deployer\Console\Application->doRunCommand() at C:\Users\1R\AppData\Roaming\Composer\vendor\symfony\console\Application.php:273
Symfony\Component\Console\Application->doRun() at C:\Users\1R\AppData\Roaming\Composer\vendor\symfony\console\Application.php:149
Symfony\Component\Console\Application->run() at C:\Users\1R\AppData\Roaming\Composer\vendor\deployer\deployer\src\Deployer.php:326
Deployer\Deployer::run() at C:\Users\1R\AppData\Roaming\Composer\vendor\deployer\deployer\bin\dep:137
deploy [-p|--parallel] [-l|--limit LIMIT] [--no-hooks] [--log LOG] [--roles ROLES] [--hosts HOSTS] [-o|--option OPTION] [--] []
To reproduce
when execute command "dep deploy test"
Expected behavior
deploy success
Environment
Beta Was this translation helpful? Give feedback.
All reactions