deployer: Application stops at Git clone
Q | A |
---|---|
Issue Type | Bug |
Deployer Version | 4.2.1 |
Local Machine OS | Windows (Running on Ubuntu 16 Laravel Homestead) |
Remote Machine OS | Ubuntu 14.04 Linux |
Description
Upon using dep deploy, the program freezes at ‘SSH multiplexing initialization’. I have tested the connection to Bitbucket on the remote server and it is successful without an issue. The issue occurs when run off the local server; it simply freezes. There is no log to indicate that anything else is happening but it has simply stopped there. The SSH key on the remote server (for GIT) has a password. I am new to this application and wanted to use it for deployment, but this issue is stopping me at this stage 😦 Would appreciate any help!
If you’re reporting a bug, please include following information
Steps to reproduce
Run dep deploy
Content of deploy.php
<?php
namespace Deployer;
require 'recipe/laravel.php';
// Configuration
set('ssh_type', 'native');
set('ssh_multiplexing', true);
set('repository', 'git@bitbucket.org:oliverkucharzewski/ddd.git');
add('shared_files', []);
add('shared_dirs', ['www']);
//add('writable_dirs', []);
// Servers
server('production', 'some.server.com')
->user('root')
->identityFile('~/.ssh/bitbucket.pub', '~/.ssh/bitbucket', 'passwordhere')
->set('deploy_path', '/var/www/api_server')
->pty(true);
// Tasks
desc('Restart PHP-FPM service');
task('php-fpm:restart', function () {
// The user must have rights for restart service
// /etc/sudoers: username ALL=NOPASSWD:/bin/systemctl restart php-fpm.service
run('sudo systemctl restart php-fpm.service');
});
after('deploy:symlink', 'php-fpm:restart');
// [Optional] if deploy fails automatically unlock.
after('deploy:failed', 'deploy:unlock');
// Migrate database before symlink new release.
before('deploy:symlink', 'artisan:migrate');
Output log
= vagrant@homestead:/Code/api_server$ sudo dep deploy ✔ Executing task deploy:prepare ✔ Executing task deploy:lock ✔ Executing task deploy:release ➤ Executing task deploy:update_code ^C vagrant@homestead:/Code/api_server$ sudo dep deploy:unlock ✔ Executing task deploy:unlock vagrant@homestead:/Code/api_server$ sudo dep deploy -vvv ➤ Executing task deploy:prepare [production] > echo $0 SSH multiplexing initialization [production] < bash [production] > if [ ! -d /var/www/api_server ]; then mkdir -p /var/www/api_server; fi SSH multiplexing initialization [production] > if [ ! -L /var/www/api_server/current ] && [ -d /var/www/api_server/current ]; then echo true; fi SSH multiplexing initialization [production] > cd /var/www/api_server && if [ ! -d .dep ]; then mkdir .dep; fi SSH multiplexing initialization [production] > cd /var/www/api_server && if [ ! -d releases ]; then mkdir releases; fi SSH multiplexing initialization [production] > cd /var/www/api_server && if [ ! -d shared ]; then mkdir shared; fi SSH multiplexing initialization • done on [production] ✔ Ok [3s 42ms] ➤ Executing task deploy:lock [production] > if [ -f /var/www/api_server/.dep/deploy.lock ]; then echo ‘true’; fi SSH multiplexing initialization [production] > touch /var/www/api_server/.dep/deploy.lock SSH multiplexing initialization • done on [production] ✔ Ok [1s 69ms] ➤ Executing task deploy:release [production] > cd /var/www/api_server && (if [ -h release ]; then echo ‘true’; fi) SSH multiplexing initialization [production] < true [production] > cd /var/www/api_server && (rm -rf “$(readlink release)”) SSH multiplexing initialization [production] > cd /var/www/api_server && (rm release) SSH multiplexing initialization [production] > cd /var/www/api_server && ([ -d releases ] && [ “$(ls -A releases)” ] && echo “true” || echo “false”) SSH multiplexing initialization [production] < false [production] > cd /var/www/api_server && (if [ -d /var/www/api_server/releases/1 ]; then echo ‘true’; fi) SSH multiplexing initialization [production] > cd /var/www/api_server && (date +“%Y%m%d%H%M%S”) SSH multiplexing initialization [production] < 20170307081504 [production] > cd /var/www/api_server && (echo ‘20170307081504,1’ >> .dep/releases) SSH multiplexing initialization [production] > cd /var/www/api_server && (mkdir /var/www/api_server/releases/1) SSH multiplexing initialization [production] > cd /var/www/api_server && (if [[ “$(man ln)” =~ “–relative” ]]; then echo “true”; fi) SSH multiplexing initialization [production] < true [production] > cd /var/www/api_server && (ln -nfs --relative /var/www/api_server/releases/1 /var/www/api_server/release) SSH multiplexing initialization • done on [production] ✔ Ok [5s 277ms] ➤ Executing task deploy:update_code [production] > which git SSH multiplexing initialization [production] < /usr/bin/git [production] > /usr/bin/git version SSH multiplexing initialization [production] < git version 2.7.4 [production] > if [ -h /var/www/api_server/release ]; then echo ‘true’; fi SSH multiplexing initialization [production] < true [production] > readlink /var/www/api_server/release SSH multiplexing initialization [production] < releases/1 [production] > /usr/bin/git clone --recursive -q git@bitbucket.org:oliverkucharzewski/ddd.git /var/www/api_server/releases/1 2>&1 SSH multiplexing initialization
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 19 (11 by maintainers)
Please, try run this: