deployer: Can't deploy from bitbucket

Q A
Issue Type Question
Deployer Version N/A
Local Machine OS N/A
Remote Machine OS N/A

Description

I’ve setup my project in bitucket.
I’ve also setup my computer ssh key and remote server ssh key in the bitbucket repo.
I can also clone my repo in from remote server.

Output log

But when I run dep deploy I get error: [RuntimeException] Host key verification failed. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. verbose output also is:

➤ Executing task deploy:prepare
↳ on [production]
• done on [production]
✔ Ok [4s 651ms]
➤ Executing task deploy:release
↳ on [production]
• done on [production]
✔ Ok [1s 914ms]
➤ Executing task deploy:update_code
↳ on [production]


  [RuntimeException]
  Host key verification failed.
  fatal: Could not read from remote repository.
  Please make sure you have the correct access rights
  and the repository exists.


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 /home/vagrant/app/deploy/common.php:177
 {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:259
 Symfony\Component\Console\Command\Command->run() at phar:///usr/local/bin/dep/vendor/symfony/console/Application.php:844
 Symfony\Component\Console\Application->doRunCommand() at phar:///usr/local/bin/dep/vendor/symfony/console/Application.php:192
 Symfony\Component\Console\Application->doRun() at phar:///usr/local/bin/dep/vendor/symfony/console/Application.php:123
 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:64
 require() at /usr/local/bin/dep:4

deploy [-p|--parallel]

Content of deploy.php

I don’t figure out what is the problem. My server configuration is:

set('repository', 'git@bitbucket.org:username/projetct.git');
set('keep_releases', 3);
// Configure servers
server('production', 'x.x.x.x')
    ->user('root')
    ->password("password")
    ->env('deploy_path', '/var/www/temp');

I have required laravel.php from deploy.php
and required common.php from laravel.php. I’ve also removed some set commands like shared_dir in common.php because it was changed in laravel.php

Description went too long. sorry about that.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 16 (9 by maintainers)

Most upvoted comments