Am having some issues getting back to a working state with the dev VM for a project that was built last year with Sage/Trellis/Bedrock.
In summary, since then I upgraded my laptop and pulled the files from the old machine over to the new one. When trying to run up the VM for this project to update plugins/wordpress, I found I couldn’t access the site. The site was originally set up with the domain using a .dev extension locally… so I’ve walked through the instructions on changing to a .test. i.e. these ones: Updating Development from .dev to .test TLD
When running Vagrant provision this happened:
Michaels-MBP-13:trellis michaelmcmahon$ vagrant provision **==> default: Running provisioner: ansible...** Vagrant gathered an unknown Ansible version: and falls back on the compatibility mode '1.8'. Alternatively, the compatibility mode can be specified in your Vagrantfile: https://www.vagrantup.com/docs/provisioning/ansible_common.html#compatibility_mode default: Running ansible-galaxy... Traceback (most recent call last): File "/usr/local/bin/ansible-galaxy", line 43, in <module> import ansible.constants as C ImportError: No module named ansible.constants Ansible failed to complete successfully. Any error output should be visible above. Please fix these errors and try again.
Subsequently I have spent some time trying to figure out what the issue is. I’ve checked the version of Ansible… it’s 2.6.4
Have looked through the error logs on the VM and don’t see any errors.
Current status is that Vagrant Up no longer works. This is what I see…
Michaels-MBP-13:majacmedical.com.au michaelmcmahon$ vagrant up Bringing machine 'default' up with 'virtualbox' provider... **==> default: Box 'base' could not be found. Attempting to find and install...** default: Box Provider: virtualbox default: Box Version: >= 0 **==> default: Box file was not detected as metadata. Adding it directly...** **==> default: Adding box 'base' (v0) for provider: virtualbox** default: Downloading: base An error occurred while downloading the remote file. The error message, if any, is reproduced below. Please fix this error and try again. Couldn't open file /Users/michaelmcmahon/Sites/majacmedical.com.au/base