-
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
Exec error: fork/exec /usr/bin/ruby: argument list too long #9972
Comments
I have the same issue, it seems when I use
|
I confirm the above issue as well running Vagrant 2.1.2 on mac osx 10.13.2. the workaround from @zymzxq solved the problem for me |
Thank you @zymzxq 👍 FYI, I'm using macos 10.12.6 |
Seeing this with 2.1.2 as well. Had the same block of code for over 2 years, just started acting up recently: plugins.each do |plugin|
unless Vagrant.has_plugin?(plugin)
puts "Installing vagrant plugin dependency: #{plugin}"
%x(vagrant plugin install #{plugin})
end
end Only way I've been able to work-around this successfully is by adding the following logic before the plugins loop: if not (["plugin"].include? ARGV[0])
plugins.each do |plugin|
system("vagrant plugin install #{plugin}", :chdir=>"/tmp") || exit! unless Vagrant.has_plugin?(plugin)
end
end |
Vagrant versionVagrant 2.1.2 Host operating systemmacOS 10.13.6 Guest operating systemcoreos-vagrant So , the cause of this "argument list too long" is vagrant installs plugin I change the workspace to Home or other all ascii directory , this error disappear. |
I can confirm that the error does not happen on 2.1.1 I downgraded vagrant and the error message: fork/exec /opt/vagrant/embedded/bin/ruby: argument list too long no longer occure. |
I can confirm that the error does not happen with the exact same |
Note this trick does not seem to work after vagrant 2.1.3, I have figured out a new one :)
|
Closing this up as these issues were fixed in 2.1.5 Cheers! |
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. |
Vagrant version
Vagrant 2.1.2
Host operating system
Manjaro Linux 17.1.11
Guest operating system
any
Vagrantfile
https://github.com/coreos/coreos-vagrant/blob/master/Vagrantfile
Debug output
Installing plugins: vagrant-ignition
...
Installing plugins: vagrant-ignition
Exec error: fork/exec /usr/bin/ruby: argument list too long
Installation of one or more plugins has failed. Aborting.
...
Installation of one or more plugins has failed. Aborting.
Expected behavior
vagrant up
installs plugin and completes.Actual behavior
Above error happens when setting up any Vagrant project that requires some plugins.
Steps to reproduce
Follow steps from here:
https://github.com/coreos/coreos-vagrant
Workaround
#8055 (comment)
The text was updated successfully, but these errors were encountered: