Vagrant: No such file or directory - getcwd (Errno::ENOENT) when doing vagrant box add

Created on 28 Nov 2010  ยท  7Comments  ยท  Source: hashicorp/vagrant

I can't unpackage the lucid32 box once it is downloaded:
wsargent@pendulum:~/rubygems-1.3.7$ vagrant box add base http://files.vagrantup.com/lucid32.box
[vagrant] Downloading with Vagrant::Downloaders::HTTP...
[vagrant] Copying box to temporary location...
[vagrant] Cleaning up downloaded box...
/usr/lib/ruby/gems/1.8/gems/vagrant-0.6.7/lib/vagrant/action/box/unpackage.rb:47:in chdir': No such file or directory - getcwd (Errno::ENOENT) from /usr/lib/ruby/gems/1.8/gems/vagrant-0.6.7/lib/vagrant/action/box/unpackage.rb:47:indecompress'
from /usr/lib/ruby/gems/1.8/gems/vagrant-0.6.7/lib/vagrant/action/box/unpackage.rb:28:in call' from /usr/lib/ruby/gems/1.8/gems/vagrant-0.6.7/lib/vagrant/action/warden.rb:27:incall'
from /usr/lib/ruby/gems/1.8/gems/vagrant-0.6.7/lib/vagrant/action/box/download.rb:23:in call' from /usr/lib/ruby/gems/1.8/gems/vagrant-0.6.7/lib/vagrant/action/warden.rb:27:incall'
from /usr/lib/ruby/gems/1.8/gems/vagrant-0.6.7/lib/vagrant/action/builder.rb:120:in call' from /usr/lib/ruby/gems/1.8/gems/vagrant-0.6.7/lib/vagrant/action.rb:119:inrun'
from /usr/lib/ruby/gems/1.8/gems/vagrant-0.6.7/lib/vagrant/util/busy.rb:19:in busy' from /usr/lib/ruby/gems/1.8/gems/vagrant-0.6.7/lib/vagrant/action.rb:119:inrun'
from /usr/lib/ruby/gems/1.8/gems/vagrant-0.6.7/lib/vagrant/box.rb:61:in add' from /usr/lib/ruby/gems/1.8/gems/vagrant-0.6.7/lib/vagrant/box.rb:30:inadd'
from /usr/lib/ruby/gems/1.8/gems/vagrant-0.6.7/lib/vagrant/command/box.rb:8:in add' from /usr/lib/ruby/gems/1.8/gems/thor-0.14.6/lib/thor/task.rb:22:insend'
from /usr/lib/ruby/gems/1.8/gems/thor-0.14.6/lib/thor/task.rb:22:in run' from /usr/lib/ruby/gems/1.8/gems/thor-0.14.6/lib/thor/invocation.rb:118:ininvoke_task'
from /usr/lib/ruby/gems/1.8/gems/thor-0.14.6/lib/thor.rb:263:in dispatch' from /usr/lib/ruby/gems/1.8/gems/thor-0.14.6/lib/thor/invocation.rb:109:insend'
from /usr/lib/ruby/gems/1.8/gems/thor-0.14.6/lib/thor/invocation.rb:109:in invoke' from /usr/lib/ruby/gems/1.8/gems/thor-0.14.6/lib/thor.rb:205:inbox'
from /usr/lib/ruby/gems/1.8/gems/thor-0.14.6/lib/thor/task.rb:22:in send' from /usr/lib/ruby/gems/1.8/gems/thor-0.14.6/lib/thor/task.rb:22:inrun'
from /usr/lib/ruby/gems/1.8/gems/thor-0.14.6/lib/thor/invocation.rb:118:in invoke_task' from /usr/lib/ruby/gems/1.8/gems/thor-0.14.6/lib/thor.rb:263:indispatch'
from /usr/lib/ruby/gems/1.8/gems/thor-0.14.6/lib/thor/base.rb:389:in start' from /usr/lib/ruby/gems/1.8/gems/vagrant-0.6.7/bin/vagrant:15 from /usr/bin/vagrant:19:inload'
from /usr/bin/vagrant:19

Most helpful comment

I just stumbled upon an instance of this problem while installing the libvirt plugin. In my case it was due to launching a command from a non-existent current directory.

All 7 comments

That's pretty interesting. Can you do an ls in ~/.vagrant/boxes and see whats there? That'll help.

Thanks

I wasn't able to reproduce this. Without more information I'm closing this for now.

I wasn't able to reproduce this either. My current feeling is "network hiccup".

I am getting this error when i start up the server.Please tell me how to fix this.Thanks in advance.

/var/lib/gems/1.9.1/gems/railties-4.0.0/lib/rails/app_rails_loader.rb:30:in `pwd': No such file or directory - getcwd (Errno::ENOE
NT)

Just for people with the same problem that ended up here.
Got the same issue when doing 'vagrant box add laravel/homestead'
Tried again and it worked fine. I think it was just a 'network hiccup' as @wsargent said.

I just stumbled upon an instance of this problem while installing the libvirt plugin. In my case it was due to launching a command from a non-existent current directory.

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rrzaripov picture rrzaripov  ยท  3Comments

rhencke picture rhencke  ยท  3Comments

tomhking picture tomhking  ยท  3Comments

jazzfog picture jazzfog  ยท  3Comments

RobertSwirsky picture RobertSwirsky  ยท  3Comments