beetboxvm / beetbox

Pre-provisioned L*MP stack
http://beetbox.rtfd.org
92 stars 19 forks source link

vagrant provision fails #273

Closed SamStamport closed 8 years ago

SamStamport commented 8 years ago

I am following the instructions at http://beetbox.readthedocs.io/en/latest/ - Drupal Quickstart. I modified config.yml instead of using Drush, etc.

Vagrant provision fails with these messages at the end. How do I fix this?

My site is Drupal Version 7. Is this causing the problem?

"You are about to DROP all tables in your 'beetbox' database. Do you want to co ntinue? (y/n): y", "stdout_lines": ["You are about to DROP all tables in your 'b eetbox' database. Do you want to continue? (y/n): y"], "warnings": []} ==> beetbox: to retry, use: --limit @/beetbox/provisioning/ansible/playbook-pro vision.retry ==> beetbox: ==> beetbox: PLAY RECAP ****


==> beetbox: localhost : ok=[ 0;32m158 changed=1 unreachable=0 [0 ;31mfailed=1
vagrant : The SSH command responded with a non-zero exit status. Vagrant At line:1 char:1

assumes that this means the command failed. The output for this command should be in the log above. Please read the output to determine what went wrong.

thom8 commented 8 years ago

@ColumbiaBlooms are you using this for an existing site?

If so you'll want to remove -- drupal_install_site: yes (default is no) and then import the database after the VM has been provisioned.

SamStamport commented 8 years ago

Yes. I'm using my local, dev site.

Thanks for your prompt reply. I'll give it a try.

thom8 commented 8 years ago

No worries, it does look like there's an issue with drush si & D7

vagrant@drupal-7-x-dev:/var/beetbox$ drush si
You are about to DROP all tables in your 'beetbox' database. Do you want to continue? (y/n): y
Starting Drupal installation. This takes a while. Consider using the --notify global option.                                                                                                                                                                         [ok]
sh: 1: /usr/sbin/ssmtp: not found
WD mail: Error sending e-mail (from admin@example.com to admin@example.com).                                                                                                                                                                                         [error]
Installation complete.  User name: admin  User password: F8jC4yrbDs                                                                                                                                                                                                  [ok]
Unable to send e-mail. Contact the site administrator if the problem persists.                                                                                                                                                                                       [error]

This relates the the Drupal project role - https://github.com/beetboxvm/ansible-role-beetbox-drupal so will close this and open a new issue against that project.