Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type error: Argument 1 passed to Deployer\Host\Host::sshOptions() must be of the type array, none given for dep ssh #1204

Closed
pragmaton opened this issue May 13, 2017 · 1 comment
Labels

Comments

@pragmaton
Copy link

Q A
Issue Type Bug
Deployer Version Deployer dev-master 225d873
Local Machine OS Linux Ubuntut 17.10
Remote Machine OS centos7

Description

Getting error for php vendor/bin/dep ssh

Steps to reproduce

  1. Install from master by composer
  2. Add host
  3. run php vendor/bin/dep ssh

Content of deploy.php

<?php
namespace Deployer;
require 'recipe/common.php';
host('11.22.33.44')
    ->user('root');

Output log

➜  vidoza2 git:(master) ✗ php vendor/bin/dep ssh -vvv

                                                                                                                                                     
  [Symfony\Component\Debug\Exception\FatalThrowableError]                                                                                            
  Type error: Argument 1 passed to Deployer\Host\Host::sshOptions() must be of the type array, none given, called in /home/anton/projects/vidoza/xv  
  s/vidoza2/vendor/deployer/deployer/src/Console/SshCommand.php on line 84                                                                           
                                                                                                                                                     

Exception trace:
 () at /home/anton/projects/vidoza/xvs/vidoza2/vendor/deployer/deployer/src/Host/Host.php:201
 Deployer\Host\Host->sshOptions() at /home/anton/projects/vidoza/xvs/vidoza2/vendor/deployer/deployer/src/Console/SshCommand.php:84
 Deployer\Console\SshCommand->execute() at /home/anton/projects/vidoza/xvs/vidoza2/vendor/symfony/console/Command/Command.php:264
 Symfony\Component\Console\Command\Command->run() at /home/anton/projects/vidoza/xvs/vidoza2/vendor/symfony/console/Application.php:835
 Symfony\Component\Console\Application->doRunCommand() at /home/anton/projects/vidoza/xvs/vidoza2/vendor/deployer/deployer/src/Console/Application.php:132
 Deployer\Console\Application->doRunCommand() at /home/anton/projects/vidoza/xvs/vidoza2/vendor/symfony/console/Application.php:200
 Symfony\Component\Console\Application->doRun() at /home/anton/projects/vidoza/xvs/vidoza2/vendor/symfony/console/Application.php:124
 Symfony\Component\Console\Application->run() at /home/anton/projects/vidoza/xvs/vidoza2/vendor/deployer/deployer/src/Deployer.php:315
 Deployer\Deployer::run() at /home/anton/projects/vidoza/xvs/vidoza2/vendor/deployer/deployer/bin/dep:111

ssh [<hostname>]
@antonmedv antonmedv added the bug label May 13, 2017
@antonmedv
Copy link
Member

Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants