I am new to Bedrock.
I am on WIN8.1 (not by choice :()and after hitting one wall after another I am now at the point where I get this error during provisioning, please see below:
==> default: TASK: [wordpress-install | Create .env file] **********************
************
==> default: failed: [vagrant] => (item={'key': 'localdev1.dev', 'value': {'site
_install': True, 'admin_user': 'admin', 'local_path': '../localdev1.dev', 'syste
m_cron': True, 'repo': 'git@github.com:roots/bedrock.git', 'ssl': {'enabled': Fa
lse}, 'multisite': {'enabled': False, 'subdomains': False}, 'site_title': 'local
dev1 Site', 'admin_password': 'admin', 'env': {'db_name': 'localdev1_dev', 'wp_e
nv': 'development', 'db_user': 'localdev1_dbuser', 'db_password': 'localdev1_dbp
assword', 'wp_home': 'http://localdev1.dev', 'wp_siteurl': 'http://localdev1.dev
/wp'}, 'site_hosts': ['localdev1.dev'], 'admin_email': 'admin@localdev1.dev'}})
=> {"failed": true, "item": {"key": "localdev1.dev", "value": {"admin_email": "a
dmin@localdev1.dev", "admin_password": "admin", "admin_user": "admin", "env": {"
db_name": "localdev1_dev", "db_password": "localdev1_dbpassword", "db_user": "lo
caldev1_dbuser", "wp_env": "development", "wp_home": "http://localdev1.dev", "wp
_siteurl": "http://localdev1.dev/wp"}, "local_path": "../localdev1.dev", "multis
ite": {"enabled": false, "subdomains": false}, "repo": "git@github.com:roots/bed
rock.git", "site_hosts": ["localdev1.dev"], "site_install": true, "site_title":
"localdev1 Site", "ssl": {"enabled": false}, "system_cron": true}}}
==> default: msg: Could not replace file: /root/.ansible/tmp/ansible-tmp-1429691
400.4-145743800409621/source to /srv/www/localdev1.dev/current/.env: [Errno 26]
Text file busy
==> default:
==> default: FATAL: all hosts hav
==> default: e already failed -- aborting
==> default:
==> default: PLAY RECAP ********************************************************
************
==> default: to retry, use: --limit @/root/dev.retry
==> default:
==> default: vagrant : ok=68 changed=38 unreachable=0
failed=1
C:\localdev1\bedrock-ansible>
I am unsure if this is related to FATAL: all hosts have already failed
I assume that I don’t HAVE to use HHVM to get around this issue? (Assuming that it is indeed the same issue as in the link above).
Anyway I did try using HHVM and including the workaround referenced in the above link (I also destroyed the machine when switching between HHVM true/false as per Foxaii’s post here Cannot connect to database).
Below is that workaround:
Solution/workaround for directory permissions in Vagrantfile when using HHVM:
Change:
config.bindfs.bind_folder nfs_path(name), remote_site_path(name), u: 'vagrant', g: 'www-data'
to:
config.bindfs.bind_folder nfs_path(name), remote_site_path(name), u: 'vagrant', g: 'www-data', :'create-as-user' => true, :perms => "u=rwx:g=rwx:o=rx", :'create-with-perms' => "u=rwx:g=rwx:o=rx", :'chown-ignore' => true, :'chgrp-ignore' => true, :'chmod-ignore' => true
That lets group write to directories. Probably not the best solution, would love to hear opinions for something better.
However I still received the same error.
Any troubleshooting tips or general suggestions/ideas would be greatly appreciated!
Thank you,
Craig