{"action":"created","issue":{"url":"https://api.github.com/repos/carlalexander/debops-wordpress/issues/171","repository_url":"https://api.github.com/repos/carlalexander/debops-wordpress","labels_url":"https://api.github.com/repos/carlalexander/debops-wordpress/issues/171/labels{/name}","comments_url":"https://api.github.com/repos/carlalexander/debops-wordpress/issues/171/comments","events_url":"https://api.github.com/repos/carlalexander/debops-wordpress/issues/171/events","html_url":"https://github.com/carlalexander/debops-wordpress/issues/171","id":241519637,"number":171,"title":"Numerous issues with install process. SSH on server no longer accessible","user":{"login":"jonathannz","id":667395,"avatar_url":"https://avatars1.githubusercontent.com/u/667395?v=3","gravatar_id":"","url":"https://api.github.com/users/jonathannz","html_url":"https://github.com/jonathannz","followers_url":"https://api.github.com/users/jonathannz/followers","following_url":"https://api.github.com/users/jonathannz/following{/other_user}","gists_url":"https://api.github.com/users/jonathannz/gists{/gist_id}","starred_url":"https://api.github.com/users/jonathannz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonathannz/subscriptions","organizations_url":"https://api.github.com/users/jonathannz/orgs","repos_url":"https://api.github.com/users/jonathannz/repos","events_url":"https://api.github.com/users/jonathannz/events{/privacy}","received_events_url":"https://api.github.com/users/jonathannz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":19,"created_at":"2017-07-09T11:49:42Z","updated_at":"2017-07-10T21:58:00Z","closed_at":null,"body":"I've came across numerous issues in the installation process. I have no idea why, and there is very little in the WIki instructions to indicate what the issues are.\r\n\r\nI found I had to use the following command for a start, otherwise numerous permissions errors were the result.\r\n`sudo debops bootstrap -u jonathan -b --become-method=sudo -K --key-file=~/.ssh/id_rsa`\r\n\r\nAnything else, wouldn't work. If you want more details, let me know.\r\nThe command seemed to complete successfully after that, with this final result:\r\n\r\n`www.domain.nz  : ok=15   changed=8    unreachable=0    failed=0`\r\n\r\nThen I ran the `debops` command:\r\n\r\nIt finished with these errors:\r\n\r\n```\r\nTASK [debops.pki : Check Ansible Controller bash version] **********************************************************************************************************************************************\r\nfatal: [www.domain.nz -> localhost]: FAILED! => {\"changed\": false, \"cmd\": [\"/usr/bin/env\", \"bash\", \"-c\", \"echo $BASH_VERSION\"], \"delta\": \"0:00:00.016270\", \"end\": \"2017-07-09 22:15:00.757165\", \"failed\": true, \"rc\": -6, \"start\": \"2017-07-09 22:15:00.740895\", \"stderr\": \"dyld: Library not loaded: /usr/local/opt/readline/lib/libreadline.6.dylib\\n  Referenced from: /usr/local/bin/bash\\n  Reason: image not found\", \"stderr_lines\": [\"dyld: Library not loaded: /usr/local/opt/readline/lib/libreadline.6.dylib\", \"  Referenced from: /usr/local/bin/bash\", \"  Reason: image not found\"], \"stdout\": \"\", \"stdout_lines\": []}\r\n\r\nNO MORE HOSTS LEFT *************************************************************************************************************************************************************************************\r\n [WARNING]: Could not create retry file '/Users/jonathan/Library/Application Support/debops/debops-playbooks/playbooks/site.retry'.         [Errno 13] Permission denied:\r\nu'/Users/jonathan/Library/Application Support/debops/debops-playbooks/playbooks/site.retry'\r\n```\r\n```\r\nPLAY RECAP *********************************************************************************************************************************************************************************************\r\nwww.domain.nz  : ok=51   changed=20   unreachable=0    failed=1\r\n```\r\n\r\nI then proceeded with the `debops wordpress` command.\r\nFirst attempt, it had this error:\r\n\r\n```\r\nTASK [Gathering Facts] *********************************************************************************************************************************************************************************\r\nfatal: [www.domain.nz]: UNREACHABLE! => {\"changed\": false, \"msg\": \"Failed to connect to the host via ssh: Permission denied (publickey,password).\\r\\n\", \"unreachable\": true}\r\n\tto retry, use: --limit @/Users/jonathan/development/git/debops-wordpress/playbooks/wordpress.retry\r\n\r\nPLAY RECAP *********************************************************************************************************************************************************************************************\r\nwww.domain.nz  : ok=0    changed=0    unreachable=1    failed=0\r\n```\r\nI checked the SSH connection to the server and it was fine. So I tried the command again. This time it worked, but resulted in these errors:\r\n\r\n```\r\nTASK [debops.users : DebOps pre_tasks hook] ************************************************************************************************************************************************************\r\nfatal: [www.domain.nz]: FAILED! => {\"failed\": true, \"msg\": \"lookup plugin (task_src) not found\"}\r\n\r\nRUNNING HANDLER [debops.ferm : Restart ferm] ***********************************************************************************************************************************************************\r\n [WARNING]: Could not create retry file '/Users/jonathan/development/git/debops-wordpress/playbooks/wordpress.retry'.         [Errno 13] Permission denied: u'/Users/jonathan/development/git/debops-\r\nwordpress/playbooks/wordpress.retry'\r\n\r\n\r\nPLAY RECAP *********************************************************************************************************************************************************************************************\r\nwww.domain.nz  : ok=44   changed=25   unreachable=0    failed=1\r\n```\r\n\r\nI see that this last error is in fact mentioned in the Troubleshooting page on the Wiki. So I was going to follow the advice there. But I am now unable to access the server with SSH. Something in the above processes has made SSH access impossible.\r\n\r\nI get this error every time:\r\n`ssh_exchange_identification: read: Connection reset by peer`\r\n\r\nWhen I go to the Reset Password (also for resetting the SSH key) on Azure, I see this warning: `The VM agent is either unavailable, or not installed, which may prevent VMAccess from running.\r\n`\r\n\r\nSo it would appear the VM Agent was wiped out by the debops installation process.\r\nSo, I thought I'd fire up the Bash terminal Azure provides in the Dashboard. But it gives me this error:\r\n\r\n```\r\nYou have no storage mounted\r\nAzure Cloud Shell requires an Azure file share to persist files. Learn more \r\nThis will create a new storage account for you and this will incur a small monthly cost. View pricing\r\n```\r\nThis is after restarting the server.\r\nSo it would appear the debops installation process also screwed the boot process of the VM. Looks like I'll have to kill it, and start from scratch.\r\n\r\nI would like to know what you suggest as a way forward.\r\n\r\nThanks,\r\n\r\nJonathan"},"comment":{"url":"https://api.github.com/repos/carlalexander/debops-wordpress/issues/comments/314261791","html_url":"https://github.com/carlalexander/debops-wordpress/issues/171#issuecomment-314261791","issue_url":"https://api.github.com/repos/carlalexander/debops-wordpress/issues/171","id":314261791,"user":{"login":"jonathannz","id":667395,"avatar_url":"https://avatars1.githubusercontent.com/u/667395?v=3","gravatar_id":"","url":"https://api.github.com/users/jonathannz","html_url":"https://github.com/jonathannz","followers_url":"https://api.github.com/users/jonathannz/followers","following_url":"https://api.github.com/users/jonathannz/following{/other_user}","gists_url":"https://api.github.com/users/jonathannz/gists{/gist_id}","starred_url":"https://api.github.com/users/jonathannz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonathannz/subscriptions","organizations_url":"https://api.github.com/users/jonathannz/orgs","repos_url":"https://api.github.com/users/jonathannz/repos","events_url":"https://api.github.com/users/jonathannz/events{/privacy}","received_events_url":"https://api.github.com/users/jonathannz/received_events","type":"User","site_admin":false},"created_at":"2017-07-10T21:58:00Z","updated_at":"2017-07-10T21:58:00Z","body":"So, create a Debian VM and set it up as the Ansible controller, and then deploy from there to the Ubuntu VM ?"}}
{"actor":{"display_login":"jonathannz"}}