Re: undefined method `size' for nil:NilClass (NoMethodError)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: undefined method `size' for nil:NilClass (NoMethodError)

Rolando Alvarado
Check if you box is corrupted or not.

On Sunday, October 16, 2011 6:06:22 AM UTC+8, Lorin Hochstein wrote:
I'm running Vagrant on Mac OS X 10.7.2 (Lion). I tried to install an
ubuntu box linked from vagrantbox.es and got this error, anybody know
why this would happen?

$ vagrant box add natty http://dl.dropbox.com/u/7490647/talifun-ubuntu-11.04-server-amd64.box
[vagrant] Downloading with Vagrant::Downloaders::HTTP...
[vagrant] Downloading box: http://dl.dropbox.com/u/7490647/talifun-ubuntu-11.04-server-amd64.box
[vagrant] Extracting box...
[vagrant] Cleaning up downloaded box...
/Library/Ruby/Gems/1.8/gems/archive-tar-minitar-0.5.2/lib/archive/tar/
minitar.rb:493:in `read': undefined method `size' for nil:NilClass
(NoMethodError)
        from /Library/Ruby/Gems/1.8/gems/archive-tar-minitar-0.5.2/lib/
archive/tar/minitar.rb:740:in `extract_entry'
        from /Library/Ruby/Gems/1.8/gems/archive-tar-minitar-0.5.2/lib/
archive/tar/minitar.rb:739:in `loop'
        from /Library/Ruby/Gems/1.8/gems/archive-tar-minitar-0.5.2/lib/
archive/tar/minitar.rb:739:in `extract_entry'
        from /Library/Ruby/Gems/1.8/gems/archive-tar-minitar-0.5.2/lib/
archive/tar/minitar.rb:738:in `open'
        from /Library/Ruby/Gems/1.8/gems/archive-tar-minitar-0.5.2/lib/
archive/tar/minitar.rb:738:in `extract_entry'
        from /Library/Ruby/Gems/1.8/gems/archive-tar-minitar-0.5.2/lib/
archive/tar/minitar.rb:973:in `unpack'
        from /Library/Ruby/Gems/1.8/gems/archive-tar-minitar-0.5.2/lib/
archive/tar/minitar.rb:679:in `each'
        from /Library/Ruby/Gems/1.8/gems/archive-tar-minitar-0.5.2/lib/
archive/tar/minitar.rb:614:in `each_entry'
        from /Library/Ruby/Gems/1.8/gems/archive-tar-minitar-0.5.2/lib/
archive/tar/minitar.rb:605:in `loop'
        from /Library/Ruby/Gems/1.8/gems/archive-tar-minitar-0.5.2/lib/
archive/tar/minitar.rb:605:in `each_entry'
        from /Library/Ruby/Gems/1.8/gems/archive-tar-minitar-0.5.2/lib/
archive/tar/minitar.rb:587:in `each'
        from /Library/Ruby/Gems/1.8/gems/archive-tar-minitar-0.5.2/lib/
archive/tar/minitar.rb:679:in `each'
        from /Library/Ruby/Gems/1.8/gems/archive-tar-minitar-0.5.2/lib/
archive/tar/minitar.rb:971:in `unpack'
        from /Library/Ruby/Gems/1.8/gems/archive-tar-minitar-0.5.2/lib/
archive/tar/minitar.rb:655:in `open'
        from /Library/Ruby/Gems/1.8/gems/archive-tar-minitar-0.5.2/lib/
archive/tar/minitar.rb:964:in `unpack'
        from /Library/Ruby/Gems/1.8/gems/vagrant-0.8.7/lib/vagrant/action/box/
unpackage.rb:49:in `decompress'
        from /Library/Ruby/Gems/1.8/gems/vagrant-0.8.7/lib/vagrant/action/box/
unpackage.rb:47:in `chdir'
        from /Library/Ruby/Gems/1.8/gems/vagrant-0.8.7/lib/vagrant/action/box/
unpackage.rb:47:in `decompress'
        from /Library/Ruby/Gems/1.8/gems/vagrant-0.8.7/lib/vagrant/action/box/
unpackage.rb:28:in `call'
        from /Library/Ruby/Gems/1.8/gems/vagrant-0.8.7/lib/vagrant/action/
warden.rb:30:in `call'
        from /Library/Ruby/Gems/1.8/gems/vagrant-0.8.7/lib/vagrant/action/box/
download.rb:23:in `call'
        from /Library/Ruby/Gems/1.8/gems/vagrant-0.8.7/lib/vagrant/action/
warden.rb:30:in `call'
        from /Library/Ruby/Gems/1.8/gems/vagrant-0.8.7/lib/vagrant/action/
builder.rb:120:in `call'
        from /Library/Ruby/Gems/1.8/gems/vagrant-0.8.7/lib/vagrant/action.rb:
134:in `run'
        from /Library/Ruby/Gems/1.8/gems/vagrant-0.8.7/lib/vagrant/util/
busy.rb:19:in `busy'
        from /Library/Ruby/Gems/1.8/gems/vagrant-0.8.7/lib/vagrant/action.rb:
134:in `run'
        from /Library/Ruby/Gems/1.8/gems/vagrant-0.8.7/lib/vagrant/
environment.rb:364:in `lock'
        from /Library/Ruby/Gems/1.8/gems/vagrant-0.8.7/lib/vagrant/
environment.rb:354:in `open'
        from /Library/Ruby/Gems/1.8/gems/vagrant-0.8.7/lib/vagrant/
environment.rb:354:in `lock'
        from /Library/Ruby/Gems/1.8/gems/vagrant-0.8.7/lib/vagrant/action.rb:
133:in `run'
        from /Library/Ruby/Gems/1.8/gems/vagrant-0.8.7/lib/vagrant/box.rb:
61:in `add'
        from /Library/Ruby/Gems/1.8/gems/vagrant-0.8.7/lib/vagrant/box.rb:
30:in `add'
        from /Library/Ruby/Gems/1.8/gems/vagrant-0.8.7/lib/vagrant/command/
box.rb:8:in `add'
        from /Library/Ruby/Gems/1.8/gems/thor-0.14.6/lib/thor/task.rb:22:in
`send'
        from /Library/Ruby/Gems/1.8/gems/thor-0.14.6/lib/thor/task.rb:22:in
`run'
        from /Library/Ruby/Gems/1.8/gems/thor-0.14.6/lib/thor/invocation.rb:
118:in `invoke_task'
        from /Library/Ruby/Gems/1.8/gems/thor-0.14.6/lib/thor.rb:263:in
`dispatch'
        from /Library/Ruby/Gems/1.8/gems/thor-0.14.6/lib/thor/invocation.rb:
109:in `send'
        from /Library/Ruby/Gems/1.8/gems/thor-0.14.6/lib/thor/invocation.rb:
109:in `invoke'
        from /Library/Ruby/Gems/1.8/gems/thor-0.14.6/lib/thor.rb:205:in `box'
        from /Library/Ruby/Gems/1.8/gems/thor-0.14.6/lib/thor/task.rb:22:in
`send'
        from /Library/Ruby/Gems/1.8/gems/thor-0.14.6/lib/thor/task.rb:22:in
`run'
        from /Library/Ruby/Gems/1.8/gems/thor-0.14.6/lib/thor/invocation.rb:
118:in `invoke_task'
        from /Library/Ruby/Gems/1.8/gems/thor-0.14.6/lib/thor.rb:263:in
`dispatch'
        from /Library/Ruby/Gems/1.8/gems/thor-0.14.6/lib/thor/base.rb:389:in
`start'
        from /Library/Ruby/Gems/1.8/gems/vagrant-0.8.7/bin/vagrant:21
        from /usr/bin/vagrant:19:in `load'
        from /usr/bin/vagrant:19