Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rsync is broken on msys2 (and maybe others) #304

Closed
baderas opened this issue Sep 26, 2016 · 1 comment
Closed

Rsync is broken on msys2 (and maybe others) #304

baderas opened this issue Sep 26, 2016 · 1 comment

Comments

@baderas
Copy link

baderas commented Sep 26, 2016

When using vagrant-openstack-provider on Windows with msys2, the following error occurs:

default: Rsyncing folder: XXXXXXXXXX => /vagrant
There was an error when attempting to rsync a share folder.
Please inspect the error message below for more info.

Host path: XXXXXXXXXX
Guest path: /vagrant
Error: This rsync lacks old-style --compress due to its external zlib.  Try -zz.
Continuing without compression.

VAGRANT_LOG=info vagrant up --provider=openstack --debug showed me that it is a msys2 related issue: /cygwin/c/... does not exist in msys2.
I also tried workarounds with binding the folders so that they exist but that all did not work.

The [sync_folders.rb](problematic lines in source/lib/vagrant-openstack-provider/action/sync_folders.rb) are those:

# If on Windows, modify the path to work with cygwin rsync
if @host_os =~ /mswin|mingw|cygwin/
    hostpath = add_cygdrive_prefix_to_path(hostpath)
end

They should recognize msys2 and not add the prefix.

Versions:
vagrant 1.8.5
rsync version 3.1.2 protocol version 31

See also hashicorp/vagrant#6702

@ggiamarchi
Copy link
Owner

The provider has moved to the standard vagrant synced folders middleware. I close all issues related to the legacy synced folders implementation. Feel free to comment/reopen this thread if you think you still get an issue related to this provider.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants