Skip to content
This repository was archived by the owner on Aug 25, 2020. It is now read-only.
This repository was archived by the owner on Aug 25, 2020. It is now read-only.

Errors not nicely handled in AJAX #172

@asgrim

Description

@asgrim

Got this response:

<br />
<b>Warning</b>:  ssh2_auth_pubkey_file(): Authentication failed for system using public key: Username/PublicKey combination invalid in <b>/home/godeploy-new/module/Deploy/src/Connection/SshConnection.php</b> on line <b>57</b><br />
{"deployment":{"id":688,"user_id":2,"project_id":15,"date_added":"2015-03-02 15:33:33","previous_revision":"1f9fa1b3f7c9662f3941664226a946826945898b","revision":"2451fc82a0295f1b77705ab1cb0c10cddc284a40","resolved_revision":"2451fc82a0295f1b77705ab1cb0c10cddc284a40","comment":"Initial deployment","status":"FAILED"},"textContent":"Commence deployment: 2015-03-02 15:33:53\n\n\nDeploy to target: XXX\n=========================\n\nException: Unable to auth using pubkey"}<br />
<b>Warning</b>:  ssh2_exec(): Connection not authenticated in <b>/home/godeploy-new/module/Deploy/src/Connection/SshConnection.php</b> on line <b>66</b><br />
<br />
<b>Fatal error</b>:  Uncaught exception 'Exception' with message 'Unable to execute command: exit' in /home/godeploy-new/module/Deploy/src/Connection/SshConnection.php:69
Stack trace:
#0 /home/godeploy-new/module/Deploy/src/Connection/SshConnection.php(137): Deploy\Connection\SshConnection-&gt;execute('exit')
#1 /home/godeploy-new/module/Deploy/src/Connection/SshConnection.php(144): Deploy\Connection\SshConnection-&gt;disconnect()
#2 [internal function]: Deploy\Connection\SshConnection-&gt;__destruct()
#3 {main}
  thrown in <b>/home/godeploy-new/module/Deploy/src/Connection/SshConnection.php</b> on line <b>69</b><br />

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions