Skip to content

Always running after a deploy, when ssh to server failed! #32

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

Merged
merged 3 commits into from
May 23, 2015

Conversation

iflamed
Copy link
Contributor

@iflamed iflamed commented May 22, 2015

This may be is not best way. Because it can't get the real response from the server. Like below.

Permission denied (publickey).

$output .= $this->logError($output_line);
} else {
$output .= $this->logSuccess($output_line);
}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PHPCS: Whitespace found at end of line

@iflamed
Copy link
Contributor Author

iflamed commented May 22, 2015

I have fixed the phpcs problem. But the ci is still failed. Why?

@REBELinBLUE
Copy link
Owner

I'll merge this in later today, out of interest what SSH server are you using?

I still have not managed to recreate this problem, I've tried with a vagrant VM but thought vagrant might be doing something funny so I spun up a new linode and still can't get it to happen (setting .ssh to 600 it does fail to connect but I get the deploy correctly being marked as failed)

Don't worry about the CI issue, that is me, PHPCS is still complaining about the complexity of DeployProject.php and I have not got round to refactoring it

@iflamed
Copy link
Contributor Author

iflamed commented May 23, 2015

All code is running on cent os 7.0 . The target deploy server is the same machine.
But in different user. Php-fpm is running by user apache. The queue is listened by user liubing. And the deployed user is www.
Below is php version.

[liubing@develop ~]$ php -v
PHP 5.6.9 (cli) (built: May 15 2015 09:31:38) 
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies

@REBELinBLUE REBELinBLUE merged commit f4cb0b3 into REBELinBLUE:master May 23, 2015
@maveius maveius mentioned this pull request Nov 15, 2015
@REBELinBLUE REBELinBLUE changed the title Fix the #31 issue for ssh connction failed when deploy Always running after a deploy, when ssh to server failed! Jan 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants