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

Error: with vagrant up and vagrant add OSX 10.9.3 #3972

Closed
ghost opened this issue Jun 4, 2014 · 5 comments
Closed

Error: with vagrant up and vagrant add OSX 10.9.3 #3972

ghost opened this issue Jun 4, 2014 · 5 comments

Comments

@ghost
Copy link

ghost commented Jun 4, 2014

Vagrant 1.6.3 and Vagrant 1.6.2
VBoxManage 4.3.10r93012

I was trying to create a vagrant instance from a prebaked Vagrantfile

  config.vm.box = "opscode-ubuntu-12.04"
  config.vm.box_url = "https://opscode-vm.s3.amazonaws.com/vagrant/opscode_ubuntu-12.04_chef-11.2.0.box"
vagrant up

==> default: Adding box 'opscode-ubuntu-12.04' (v0) for provider: virtualbox
 INFO box_collection: Box not found: opscode-ubuntu-12.04 (virtualbox)
 INFO box_add: Downloading box: https://opscode-vm.s3.amazonaws.com/vagrant/opscode_ubuntu-12.04_chef-11.2.0.box => /Users/212396312/.vagrant.d/tmp/box75f5d5af618e0d0398133a7e7143ef525f15572a
 INFO interface: detail: Downloading: https://opscode-vm.s3.amazonaws.com/vagrant/opscode_ubuntu-12.04_chef-11.2.0.box
 INFO interface: detail:     default: Downloading: https://opscode-vm.s3.amazonaws.com/vagrant/opscode_ubuntu-12.04_chef-11.2.0.box
    default: Downloading: https://opscode-vm.s3.amazonaws.com/vagrant/opscode_ubuntu-12.04_chef-11.2.0.box
 INFO downloader: Downloader starting download: 
 INFO downloader:   -- Source: https://opscode-vm.s3.amazonaws.com/vagrant/opscode_ubuntu-12.04_chef-11.2.0.box
 INFO downloader:   -- Destination: /Users/212396312/.vagrant.d/tmp/box75f5d5af618e0d0398133a7e7143ef525f15572a
 INFO subprocess: Starting process: ["/Applications/Vagrant/bin/../embedded/bin/curl", "--fail", "--location", "--max-redirs", "10", "--user-agent", "Vagrant/1.6.2", "--continue-at", "-", "--output", "/Users/212396312/.vagrant.d/tmp/box75f5d5af618e0d0398133a7e7143ef525f15572a", "https://opscode-vm.s3.amazonaws.com/vagrant/opscode_ubuntu-12.04_chef-11.2.0.box"]
 INFO subprocess: Command in the installer. Specifying DYLD_LIBRARY_PATH...
DEBUG subprocess: Selecting on IO
DEBUG subprocess: stderr: dyld: Symbol not found: _iconv
  Referenced from: /usr/lib/libcups.2.dylib
  Expected in: /applications/vagrant/bin/../embedded/lib/libiconv.2.dylib
 in /usr/lib/libcups.2.dylib
DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 31999
DEBUG subprocess: Exit status: 5
 WARN downloader: Downloader exit code: 5

Thinking that I had done something wrong I manually downloaded the box and tried t oadd it manually

vagrant box add opscode-ubuntu-12.04 ~/Downloads/opscode_ubuntu-12.04_chef-11.2.0.box

=> box: Adding box 'opscode-ubuntu-12.04' (v0) for provider: 
 INFO box_add: Downloading box: file:///Users/212396312/Downloads/opscode_ubuntu-12.04_chef-11.2.0.box => /Users/212396312/.vagrant.d/tmp/boxc7eb6deec7e9d1c839ca036140f2b5cb144d03e0
 INFO interface: detail: Downloading: file:///Users/212396312/Downloads/opscode_ubuntu-12.04_chef-11.2.0.box
 INFO interface: detail:     box: Downloading: file:///Users/212396312/Downloads/opscode_ubuntu-12.04_chef-11.2.0.box
    box: Downloading: file:///Users/212396312/Downloads/opscode_ubuntu-12.04_chef-11.2.0.box
 INFO downloader: Downloader starting download: 
 INFO downloader:   -- Source: file:///Users/212396312/Downloads/opscode_ubuntu-12.04_chef-11.2.0.box
 INFO downloader:   -- Destination: /Users/212396312/.vagrant.d/tmp/boxc7eb6deec7e9d1c839ca036140f2b5cb144d03e0
 INFO subprocess: Starting process: ["/Applications/Vagrant/bin/../embedded/bin/curl", "--fail", "--location", "--max-redirs", "10", "--user-agent", "Vagrant/1.6.2", "--continue-at", "-", "--output", "/Users/212396312/.vagrant.d/tmp/boxc7eb6deec7e9d1c839ca036140f2b5cb144d03e0", "file:///Users/212396312/Downloads/opscode_ubuntu-12.04_chef-11.2.0.box"]
 INFO subprocess: Command in the installer. Specifying DYLD_LIBRARY_PATH...
DEBUG subprocess: Selecting on IO
DEBUG subprocess: stderr: dyld: Symbol not found: _iconv
  Referenced from: /usr/lib/libcups.2.dylib
  Expected in: /applications/vagrant/bin/../embedded/lib/libiconv.2.dylib
 in /usr/lib/libcups.2.dylib
DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 32000
DEBUG subprocess: Exit status: 5
 WARN downloader: Downloader exit code: 5

To very similar result. I had it working with vagrant 1.6.2 on another workstation.

Only major difference between the workstations would have been an Apple security patch from 6/2/14

@mitchellh
Copy link
Contributor

Can you try running without any environmental variables set? Does this still happen?

@ghost
Copy link
Author

ghost commented Jun 6, 2014

I am not running with any exotic environment variables. I'd be happy to unset whatever you thought prudent.

I had a look at #3589 and it looks like I am suffering the same issues.

Commenting out that block helped

@berniedurfee
Copy link

Getting the same error on OSX 10.9.5...

 INFO downloader:   -- Destination: /Users/me/.vagrant.d/tmp/box775c0a236878663310645897566147eb8f52cc79
 INFO subprocess: Starting process: ["/Applications/Vagrant/bin/../embedded/bin/curl", "-q", "--fail", "--location", "--max-redirs", "10", "--user-agent", "Vagrant/1.6.5", "--continue-at", "-", "--output", "/Users/me/.vagrant.d/tmp/box775c0a236878663310645897566147eb8f52cc79", "http://opscode-vm-bento.s3.amazonaws.com/vagrant/opscode_centos-5.9_provisionerless.box"]
 INFO subprocess: Command in the installer. Specifying DYLD_LIBRARY_PATH...
DEBUG subprocess: Selecting on IO
DEBUG subprocess: stderr: dyld: Symbol not found: _iconv
  Referenced from: /usr/lib/libcups.2.dylib
  Expected in: /applications/vagrant/bin/../embedded/lib/libiconv.2.dylib
 in /usr/lib/libcups.2.dylib
DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 31999
DEBUG subprocess: Exit status: 5
 WARN downloader: Downloader exit code: 5

@sethvargo
Copy link
Contributor

This is an issue with Vagrant's permissions and VirtualBox sadness. You can read more about the recommended solutions in #1809. Additionally, I have seen this error when Rubies are dynamically linked against libraries that no longer exist. It is possible that you installed a gem that linked against libiconv, and then you upgraded/changed libiconv in some way (maybe a brew update, etc), but the link wasn't updated. For this reason, I also recommend uninstalling vagrant and removing all the gems from ~/.vagrant.d and reinstalling the latest version of Vagrant from the vagrant downloads.

I was able to reproduce this by:

  1. Installing vagrant
  2. Installing Security Update 2014-002
  3. Restarting my machine
    4 BOOM!

I was able to fix it by

  1. Purging vagrant
  2. Purging ~/.vagrant.d
  3. Reinstalling vagrant

Unfortunately I do not see a better option, and I do not think this is something Vagrant core core even address. The issue is happening with linked files at install time, not runtime.

@sanjeevchopra
Copy link

@sethvargo I am having this issue on vagrant 1.6.3 and OSX 10.9.5 and did the following:

  • rm -rf /Applications/Vagrant
  • rm -rf ~/.vagrant.d
  • reinstall vagrant

I still see the same error. So I had to resort to commenting the relevant block of code in /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/util/subprocess.rb

@ghost ghost locked and limited conversation to collaborators Apr 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants