-
-
Notifications
You must be signed in to change notification settings - Fork 642
Windows 10 VirtualBox synced folders don't like Composer #733
Comments
Testing with a vagrant_synced_folder_default_type: smb
vagrant_synced_folders:
- local_path: .
destination: /var/www/drupalvm
type: smb
build_composer_project: false
build_composer: true
drupal_core_path: "{{ drupal_composer_install_dir }}/docroot" I had to launch either cmder or cygwin64 as administrator to be able to |
Now I'm hitting ansible/ansible#9526 |
I'm going to try setting |
Now I'm hitting a bug in our composer.json :) |
Getting the same issue, but Looks like for Windows, we might need to recommend the makefile approach for now (or any setup that doesn't require Drupal VM building a composer-based codebase itself inside a shared directory), until I can figure out a more stable way of doing Composer stuff in a shared directory. |
Testing with the following config (after creating build_makefile: true
build_composer: false
build_composer_project: false
drupal_core_path: "/var/www/drupalvm/drupal" |
The makefile configuration seems to have worked. |
Better title ^^ |
I'm back to the default configuration. Going to try to see if there's a way to make Composer happy on Windows inside a VirtualBox synced folder. |
Does it work if you change the location of
|
This looks highly related to #741 as well (just tagging that reference). |
I'm testing using a longer composer timeout (as suggested here), and also for Windows VirtualBox compatibility, I've switched the task that moves composer.json into place (inside # Use copy-and-move to prevent issues in Windows with VirtualBox.
- name: Copy composer.json into temporary location.
copy:
src: "{{ drupal_composer_path }}"
dest: "/tmp/drupalvm-composer.json"
when: drupal_composer_path and not drupal_site_exists
become: no
- name: Move composer.json into place.
command: "mv /tmp/drupalvm-composer.json {{ drupal_composer_install_dir }}/composer.json"
when: drupal_composer_path and not drupal_site_exists
become: no |
This seems to have worked (the longer timeout in
I'm testing again to confirm it doesn't work without that tweak. If that fixes this plus other Linux distros/slower connections for the composer.json-based install, I'll add that in before I tag another bugfix release. |
Hmm... it worked without the timeout this time, so maybe it's just when things are slow. I'd still like to add some config to make it more reliable/stable of course... See: http://stackoverflow.com/questions/18917768/why-composer-install-timeouts-after-300-seconds |
Now trying composer project with: - name: Generate Drupal project with composer package.
command: >
{{ composer_path }} create-project
{{ drupal_composer_project_package }} {{ drupal_composer_install_dir }}
{{ drupal_composer_project_options|default('--prefer-dist --no-interaction') }}
when: not drupal_site_exists
become: no
environment:
COMPOSER_PROCESS_TIMEOUT: 1200 |
And docs for process-timeout: https://getcomposer.org/doc/06-config.md#process-timeout |
It is crazy slow... but it's working. I can't imagine using VirtualBox native synced folders for daily use. Just the 'Install configured modules with drush' task is taking like 30 min :P |
Testing, and if it works (even if it's crazy-slow), I'll tag a bugfix release and hopefully solve this plus #741 in one shot. |
Works! And was way faster this time, even though I don't have |
Increasing timeout works for me as well on drupalvm / windows 10 |
Note: increasing timeout in my composer.json also worked for me |
I did not find any solution for this problem. Is there any? |
Windows 10, Vagrant 1.8.1, VirtualBox 5.0.20
I get the error:
Full log of the failed task:
See upstream/related:
I'm not sure if I'm hitting the Composer timeout (the task does hang for a long time), or if it's a symlink/similar issue. I don't hit this on Fedora or Mac OS X, so it seems to be a Windows/VirtualBox thing.
The text was updated successfully, but these errors were encountered: