-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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 Synced Folder does not work when `requiretty' is enabled #6780
Comments
Hi @kissge I am sorry you are having issues with Vagrant. Can you please share your Vagrantfile, host OS, guest OS, and the output of the command in debug mode as as github gist? Thanks! 😄 |
I'm having the same issue, specifically with the Amazon Linux AMI 2015.09.1 image. Host: OS X 10.11.2
Output:
|
👍 I'm getting this same issue
|
hey folks, one option is to disable the requirement for a tty. You need something like the following in your instance userdata
|
Yes, it is an option. And besides, that solution only works with Amazon EC2 instances. |
I'm not familiar with Ruby, but it seems like if the code that built the rsync rsh command were updated to respect |
We did some refactors. Can anyone confirm if this is still an issue with Vagrant 1.8.4? |
I am hitting this issue with Vagrant 1.8.4. |
+1 same issue here with Vagrant 1.8.5 and vagrant-aws (0.7.2). |
I have the same problem with vagrant 1.8.5 and vagrant-aws (0.7.2) like @ayen-tibco |
Same here when using custom AMI. I think it worked with:
added into If you've got Broken pipe instead, see this. |
Hi there, Thanks for reporting this bug. I'm sure this was a real issue when originally reported (our fault for not looking sooner!) but there have been multiple Vagrant releases since the original report. I'm going to close this issue now and request you reopen the issue if you're still experiencing this problem. I'm sorry this wasn't looked at earlier Cheers! |
When I did |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Even if I set
config.ssh.pty = true
(#1482), the rsync function does not properly work.The reason is
--rync-path sudo rsync
.In the guest environment
sudo
cannot be invoked without tty.If the options for opening shell session (
rsync -e ...
) can be configured properly (e.g.,ssh -tt
) the problem is supposed to be resolved, but those options are fixed and cannot be modified.(cf. https://github.com/mitchellh/vagrant/blob/master/plugins/synced_folders/rsync/helper.rb#L74)
Does anyone know workaround for this problem?
The text was updated successfully, but these errors were encountered: