-
-
Notifications
You must be signed in to change notification settings - Fork 606
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
Error while linking: [Errno 71] Protocol error #8
Comments
Never seen either of those errors unfortunately. Adding |
Ok, i should have to say that, 'cause i'm using a Windows host and Ansible doesnt works on Windows, i have modified your Vagrantfile to redirect the Ansible call on the guest using a little shell script. I'll hope you'll be so kind to take a look: https://gist.github.com/starise/e90d981b5f9e1e39f632 I tried to add the --verbose parameter in the ansible-playbook call but the output is almost the same. The problem seems to be related on the missed ".env" file, if you take a look at the output above, it says: "path": "/srv/www/example.dev/current/.env", "state": "absent" and actually there's no listed file in that directory. |
Could you ssh into the Vagrant box and see if |
Oh of course... pretty sure Windows has problems by default with symlinks in synced folders. Some things to try here: https://coderwall.com/p/b5mu2w and http://stackoverflow.com/questions/13716012/vagrant-shared-folder-symlinks If you Google that you'll find a lot of resources about it. |
You were right! it was a symlink creation problem, but not on the vagrant side, because the problem is already solved: hashicorp/vagrant@387692f Infact my .vbox config files had the Extravalue right setting inside. For some strange motivation, even if the Windows user is in the administrator's group and has right privileges to run mklink, remains impossible to create symlink using the normal user (even disabling UAC). The only way to have symlinks to work is to run vagrant up and vagrant provision in an elevated command prompt. I tested your latest master build with my script for windows and seems to run perfectly without any kind of error ;) if someone is interested in this, here are my setup: http://git.io/WD7KYQ Thanks for your help. |
@starise I'm going to look into integrating your script as a documented option at least. Or by checking if the host is Windows in the I had just assumed Ansible could work on Windows until a few weeks ago. |
No problem, thanks for your great work! ;) |
@starise I've updated the README and linked to your solution for now. Thanks! |
thank you for the great work!! I'm just new to this but how to install ansible in window or did you install in vm running vagrant? My system is window and running vm with vagrant. want to use ansible & vagrant combination. |
Ansible within the vagrant. Also - If you use the following format for rsync to sync folders you don't get the permissions issue for trying to use the hosts file (as executable)
|
EDIT: I guess i haven't read the #8 (comment) comment attentively :) Thanks to @starise If you're using windows and want to get symlinks working, make sure you run vagrant as administrator, because using
was not enough in my case, symlinks still weren't working until i run vagrant as admin. |
@chetzof , how to run vagrant as administrator?? |
@hatelove85911 Run your IDE (or whatever method you use to open terminal / command line) as admin and vagrant inherits. |
Initially I received this dependency problem:
Solved doing this in the guest:
Now I get an error when running ansible (the "hosts" file is the default renamed).
How can I fix this?
The text was updated successfully, but these errors were encountered: