Re: minitar.rb:493:in `read': 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: minitar.rb:493:in `read': undefined method `size' for nil:NilClass (NoMethodError)

Rolando Alvarado
Installing the gem didn't fix my problem. 

Still getting same error.

On Thursday, January 3, 2013 6:45:50 AM UTC+8, Zippy Zeppoli wrote:
Hi List,
My config is:
OSX 10.7.5

Ruby 1.9.3-p194

I get the following error when trying to add a box:

zz@zz-zoltar:~$ vagrant box add "CentOS 6.3 Minimal" https://dl.dropbox.com/u/7225008/Vagrant/CentOS-6.3-x86_64-minimal.box
[vagrant] Downloading with Vagrant::Downloaders::HTTP...
[vagrant] Downloading box: https://dl.dropbox.com/u/7225008/Vagrant/CentOS-6.3-x86_64-minimal.box
[vagrant] Extracting box...
[vagrant] Cleaning up downloaded box...
/Users/zz/.rvm/gems/ruby-1.9.3-p194/gems/archive-tar-minitar-0.5.2/lib/archive/tar/minitar.rb:493:in `read': undefined method `size' for nil:NilClass (NoMethodError)
    from /Users/zz/.rvm/gems/ruby-1.9.3-p194/gems/archive-tar-minitar-0.5.2/lib/archive/tar/minitar.rb:740:in `block (2 levels) in extract_entry'
    from /Users/zz/.rvm/gems/ruby-1.9.3-p194/gems/archive-tar-minitar-0.5.2/lib/archive/tar/minitar.rb:739:in `loop'
    from /Users/zz/.rvm/gems/ruby-1.9.3-p194/gems/archive-tar-minitar-0.5.2/lib/archive/tar/minitar.rb:739:in `block in extract_entry'
    from /Users/zz/.rvm/gems/ruby-1.9.3-p194/gems/archive-tar-minitar-0.5.2/lib/archive/tar/minitar.rb:738:in `open'
    from /Users/zz/.rvm/gems/ruby-1.9.3-p194/gems/archive-tar-minitar-0.5.2/lib/archive/tar/minitar.rb:738:in `extract_entry'
    from /Users/zz/.rvm/gems/ruby-1.9.3-p194/gems/archive-tar-minitar-0.5.2/lib/archive/tar/minitar.rb:973:in `block (2 levels) in unpack'
    from /Users/zz/.rvm/gems/ruby-1.9.3-p194/gems/archive-tar-minitar-0.5.2/lib/archive/tar/minitar.rb:679:in `block in each'
    from /Users/zz/.rvm/gems/ruby-1.9.3-p194/gems/archive-tar-minitar-0.5.2/lib/archive/tar/minitar.rb:614:in `block in each_entry'
    from /Users/zz/.rvm/gems/ruby-1.9.3-p194/gems/archive-tar-minitar-0.5.2/lib/archive/tar/minitar.rb:605:in `loop'
    from /Users/zz/.rvm/gems/ruby-1.9.3-p194/gems/archive-tar-minitar-0.5.2/lib/archive/tar/minitar.rb:605:in `each_entry'
    from /Users/zz/.rvm/gems/ruby-1.9.3-p194/gems/archive-tar-minitar-0.5.2/lib/archive/tar/minitar.rb:587:in `each'
    from /Users/zz/.rvm/gems/ruby-1.9.3-p194/gems/archive-tar-minitar-0.5.2/lib/archive/tar/minitar.rb:679:in `each'
    from /Users/zz/.rvm/gems/ruby-1.9.3-p194/gems/archive-tar-minitar-0.5.2/lib/archive/tar/minitar.rb:971:in `block in unpack'
    from /Users/zz/.rvm/gems/ruby-1.9.3-p194/gems/archive-tar-minitar-0.5.2/lib/archive/tar/minitar.rb:655:in `open'
    from /Users/zz/.rvm/gems/ruby-1.9.3-p194/gems/archive-tar-minitar-0.5.2/lib/archive/tar/minitar.rb:964:in `unpack'
    from /Users/zz/.rvm/gems/ruby-1.9.3-p194/gems/vagrant-1.0.3/lib/vagrant/action/box/unpackage.rb:52:in `block in decompress'
    from /Users/zz/.rvm/gems/ruby-1.9.3-p194/gems/vagrant-1.0.3/lib/vagrant/action/box/unpackage.rb:49:in `chdir'
    from /Users/zz/.rvm/gems/ruby-1.9.3-p194/gems/vagrant-1.0.3/lib/vagrant/action/box/unpackage.rb:49:in `decompress'
    from /Users/zz/.rvm/gems/ruby-1.9.3-p194/gems/vagrant-1.0.3/lib/vagrant/action/box/unpackage.rb:28:in `call'
    from /Users/zz/.rvm/gems/ruby-1.9.3-p194/gems/vagrant-1.0.3/lib/vagrant/action/warden.rb:33:in `call'
    from /Users/zz/.rvm/gems/ruby-1.9.3-p194/gems/vagrant-1.0.3/lib/vagrant/action/box/download.rb:23:in `call'
    from /Users/zz/.rvm/gems/ruby-1.9.3-p194/gems/vagrant-1.0.3/lib/vagrant/action/warden.rb:33:in `call'
    from /Users/zz/.rvm/gems/ruby-1.9.3-p194/gems/vagrant-1.0.3/lib/vagrant/action/general/check_virtualbox.rb:23:in `call'
    from /Users/zz/.rvm/gems/ruby-1.9.3-p194/gems/vagrant-1.0.3/lib/vagrant/action/warden.rb:33:in `call'
    from /Users/zz/.rvm/gems/ruby-1.9.3-p194/gems/vagrant-1.0.3/lib/vagrant/action/builder.rb:92:in `call'
    from /Users/zz/.rvm/gems/ruby-1.9.3-p194/gems/vagrant-1.0.3/lib/vagrant/action/runner.rb:49:in `block in run'
    from /Users/zz/.rvm/gems/ruby-1.9.3-p194/gems/vagrant-1.0.3/lib/vagrant/util/busy.rb:19:in `busy'
    from /Users/zz/.rvm/gems/ruby-1.9.3-p194/gems/vagrant-1.0.3/lib/vagrant/action/runner.rb:49:in `run'
    from /Users/zz/.rvm/gems/ruby-1.9.3-p194/gems/vagrant-1.0.3/lib/vagrant/box_collection.rb:38:in `add'
    from /Users/zz/.rvm/gems/ruby-1.9.3-p194/gems/vagrant-1.0.3/lib/vagrant/command/box_add.rb:30:in `execute'
    from /Users/zz/.rvm/gems/ruby-1.9.3-p194/gems/vagrant-1.0.3/lib/vagrant/command/box.rb:31:in `execute'
    from /Users/zz/.rvm/gems/ruby-1.9.3-p194/gems/vagrant-1.0.3/lib/vagrant/cli.rb:42:in `execute'
    from /Users/zz/.rvm/gems/ruby-1.9.3-p194/gems/vagrant-1.0.3/lib/vagrant/environment.rb:167:in `cli'
    from /Users/zz/.rvm/gems/ruby-1.9.3-p194/gems/vagrant-1.0.3/bin/vagrant:43:in `<top (required)>'
    from /Users/zz/.rvm/gems/ruby-1.9.3-p194/bin/vagrant:19:in `load'
    from /Users/zz/.rvm/gems/ruby-1.9.3-p194/bin/vagrant:19:in `<main>'
    from /Users/zz/.rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:in `eval'
    from /Users/zz/.rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:in `<main>'