I installed trellis and trying to setup a local development setup.
Am using a virtual box from my windows machine and inside the Virtual box am using an Ubuntu -16.04 LTS.
On this Ubuntu am trying to setup my WordPress websites. There are issues with Vagrant up command and it doesn’t do an ssh. May be the issue with using virtual machine within a virtual box. Here are the series of errors -
vagrant up
ringing machine ‘default’ up with ‘virtualbox’ provider…
==> default: Checking if box ‘bento/ubuntu-16.04’ is up to date…
==> default: [vagrant-hostmanager:guests] Updating hosts file on active guest virtual machines…
==> default: [vagrant-hostmanager:host] Updating hosts file on your workstation (password may be required)…
==> default: Machine already provisioned. Run vagrant provision
or use the --provision
==> default: flag to force provisioning. Provisioners marked to run always will still run.
==> default: Machine ‘default’ has a post vagrant up
message. This is a message
==> default: from the creator of the Vagrantfile, and not from Vagrant itself:
==> default:
==> default: Your Trellis Vagrant box is ready to use!
==> default: * Composer and WP-CLI commands need to be run on the virtual machine
==> default: for any post-provision modifications.
==> default: * You can SSH into the machine with vagrant ssh
.
==> default: * Then navigate to your WordPress sites at /srv/www
==> default: or to your Trellis files at /home/vagrant/trellis
.
========================================
vagrant ssh
ssh_exchange_identification: read: Connection reset by peer
vagrant provision
==> default: Running provisioner: ansible…
default: Running ansible-galaxy…
- composer (1.5.0) is already installed, skipping.
- ntp (1.3.0) is already installed, skipping.
- logrotate (e7a498d) is already installed, skipping.
- swapfile (0.4) is already installed, skipping.
- geerlingguy.daemonize (1.1.1) is already installed, skipping.
- mailhog (2.1.0) is already installed, skipping.
default: Running ansible-playbook…
PLAY [WordPress Server: Install LEMP Stack with PHP 7.1 and MariaDB MySQL] *****
TASK [Gathering Facts] *********************************************************
System info:
Ansible 2.3.1.0; Vagrant 1.9.5; Linux
Trellis at “Option to install WP-CLI packages”
SSH Error: data could not be sent to remote host “127.0.0.1”. Make sure this
host can be reached over ssh
fatal: [default]: UNREACHABLE! => {“changed”: false, “unreachable”: true}
to retry, use: --limit @/sites/kollabio.com/trellis/dev.retry
PLAY RECAP *********************************************************************
default : ok=0 changed=0 unreachable=1 failed=0
Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.
==================================================
ansible-playbook dev.yml -i .vagrant/provisioners/ansible/inventory/vagrant_ansible_inventory
PLAY [WordPress Server: Install LEMP Stack with PHP 7.1 and MariaDB MySQL] ***********************************************************
TASK [Gathering Facts] ***************************************************************************************************************
System info:
Ansible 2.3.1.0; Linux
Trellis at “Option to install WP-CLI packages”
SSH Error: data could not be sent to remote host “127.0.0.1”. Make sure this
host can be reached over ssh
fatal: [default]: UNREACHABLE! => {“changed”: false, “unreachable”: true}
to retry, use: --limit @/sites/kollabio.com/trellis/dev.retry
PLAY RECAP ***************************************************************************************************************************
default : ok=0 changed=0 unreachable=1 failed=0 Preformatted text
My hosts file looks like this :
127.0.0.1 localhost
127.0.1.1 rushmith-VirtualBox
The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
vagrant-hostmanager-end
vagrant-hostmanager-start id: f84bb24c-1353-4f57-ac87-40ba356cacfd
192.168.50.5 hostname.dev
192.168.50.5 www.hostname.dev
vagrant-hostmanager-end
Why am I not able to contact my localhost, can anyone help me here ?