{"action":"created","issue":{"url":"https://api.github.com/repos/mitchellh/vagrant/issues/4931","labels_url":"https://api.github.com/repos/mitchellh/vagrant/issues/4931/labels{/name}","comments_url":"https://api.github.com/repos/mitchellh/vagrant/issues/4931/comments","events_url":"https://api.github.com/repos/mitchellh/vagrant/issues/4931/events","html_url":"https://github.com/mitchellh/vagrant/issues/4931","id":51602310,"number":4931,"title":"Vagrant crashes without providing a useful error message when asked to package a base box","user":{"login":"SpryDaniel","id":5076010,"avatar_url":"https://avatars.githubusercontent.com/u/5076010?v=3","gravatar_id":"","url":"https://api.github.com/users/SpryDaniel","html_url":"https://github.com/SpryDaniel","followers_url":"https://api.github.com/users/SpryDaniel/followers","following_url":"https://api.github.com/users/SpryDaniel/following{/other_user}","gists_url":"https://api.github.com/users/SpryDaniel/gists{/gist_id}","starred_url":"https://api.github.com/users/SpryDaniel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SpryDaniel/subscriptions","organizations_url":"https://api.github.com/users/SpryDaniel/orgs","repos_url":"https://api.github.com/users/SpryDaniel/repos","events_url":"https://api.github.com/users/SpryDaniel/events{/privacy}","received_events_url":"https://api.github.com/users/SpryDaniel/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":19,"created_at":"2014-12-10T19:47:28Z","updated_at":"2015-01-20T15:32:14Z","closed_at":"2014-12-10T21:05:37Z","body":"When issued the command `vagrant package --base BaseBox`, where `BaseBox` names a VirtualBox VM, vagrant crashes, reporting the following:\r\n```\r\n/opt/vagrant/embedded/gems/gems/vagrant-1.7.0/lib/vagrant/machine.rb:153:in `action': wrong number of arguments (2 for 1) (ArgumentError)\r\n\tfrom /opt/vagrant/embedded/gems/gems/vagrant-1.7.0/plugins/commands/package/command.rb:83:in `package_vm'\r\n\tfrom /opt/vagrant/embedded/gems/gems/vagrant-1.7.0/plugins/commands/package/command.rb:66:in `package_base'\r\n\tfrom /opt/vagrant/embedded/gems/gems/vagrant-1.7.0/plugins/commands/package/command.rb:42:in `execute'\r\n\tfrom /opt/vagrant/embedded/gems/gems/vagrant-1.7.0/lib/vagrant/cli.rb:42:in `execute'\r\n\tfrom /opt/vagrant/embedded/gems/gems/vagrant-1.7.0/lib/vagrant/environment.rb:301:in `cli'\r\n\tfrom /opt/vagrant/bin/../embedded/gems/gems/vagrant-1.7.0/bin/vagrant:174:in `<main>'\r\n```\r\nWith `VAGRANT_LOG=debug`, vagrant reports:\r\n```\r\n/opt/vagrant/embedded/gems/gems/vagrant-share-1.1.2/lib/vagrant-share/activate.rb:8:in `rescue in <encoded>': vagrant-share can't be installed without vagrant-login (RuntimeError)\r\n\tfrom /opt/vagrant/embedded/gems/gems/vagrant-share-1.1.2/lib/vagrant-share/activate.rb:5:in `<encoded>'\r\n\tfrom /opt/vagrant/embedded/gems/gems/vagrant-share-1.1.2/lib/vagrant-share/activate.rb:16:in `RGLoader_load'\r\n\tfrom /opt/vagrant/embedded/gems/gems/vagrant-share-1.1.2/lib/vagrant-share/activate.rb:16:in `<top (required)>'\r\n\tfrom /opt/vagrant/embedded/gems/gems/vagrant-share-1.1.2/lib/vagrant-share.rb:23:in `require'\r\n\tfrom /opt/vagrant/embedded/gems/gems/vagrant-share-1.1.2/lib/vagrant-share.rb:23:in `block in <class:Plugin>'\r\n\tfrom /opt/vagrant/embedded/gems/gems/vagrant-1.7.0/lib/vagrant/cli.rb:75:in `call'\r\n\tfrom /opt/vagrant/embedded/gems/gems/vagrant-1.7.0/lib/vagrant/cli.rb:75:in `block (2 levels) in help'\r\n\tfrom /opt/vagrant/embedded/gems/gems/vagrant-1.7.0/lib/vagrant/registry.rb:48:in `block in each'\r\n\tfrom /opt/vagrant/embedded/gems/gems/vagrant-1.7.0/lib/vagrant/registry.rb:47:in `each'\r\n\tfrom /opt/vagrant/embedded/gems/gems/vagrant-1.7.0/lib/vagrant/registry.rb:47:in `each'\r\n\tfrom /opt/vagrant/embedded/gems/gems/vagrant-1.7.0/lib/vagrant/cli.rb:69:in `block in help'\r\n\tfrom /opt/vagrant/embedded/lib/ruby/2.0.0/optparse.rb:885:in `initialize'\r\n\tfrom /opt/vagrant/embedded/gems/gems/vagrant-1.7.0/lib/vagrant/cli.rb:57:in `new'\r\n\tfrom /opt/vagrant/embedded/gems/gems/vagrant-1.7.0/lib/vagrant/cli.rb:57:in `help'\r\n\tfrom /opt/vagrant/embedded/gems/gems/vagrant-1.7.0/lib/vagrant/cli.rb:32:in `execute'\r\n\tfrom /opt/vagrant/embedded/gems/gems/vagrant-1.7.0/lib/vagrant/environment.rb:301:in `cli'\r\n\tfrom /opt/vagrant/bin/../embedded/gems/gems/vagrant-1.7.0/bin/vagrant:174:in `<main>'\r\n```\r\nVagrant is at 1.7.0 (installed via the disk image from VagrantUp.com), running on OS X 10.10.1 with Ruby 2.1.5p273 and VirtualBox 4.3.20. The would-be guest OS is CentOS 6.6 x86_64 minimal, with VirtualBox guest tools installed and network configuration correct as far as my limited experience can ascertain."},"comment":{"url":"https://api.github.com/repos/mitchellh/vagrant/issues/comments/70672063","html_url":"https://github.com/mitchellh/vagrant/issues/4931#issuecomment-70672063","issue_url":"https://api.github.com/repos/mitchellh/vagrant/issues/4931","id":70672063,"user":{"login":"wwek","id":1239403,"avatar_url":"https://avatars.githubusercontent.com/u/1239403?v=3","gravatar_id":"","url":"https://api.github.com/users/wwek","html_url":"https://github.com/wwek","followers_url":"https://api.github.com/users/wwek/followers","following_url":"https://api.github.com/users/wwek/following{/other_user}","gists_url":"https://api.github.com/users/wwek/gists{/gist_id}","starred_url":"https://api.github.com/users/wwek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wwek/subscriptions","organizations_url":"https://api.github.com/users/wwek/orgs","repos_url":"https://api.github.com/users/wwek/repos","events_url":"https://api.github.com/users/wwek/events{/privacy}","received_events_url":"https://api.github.com/users/wwek/received_events","type":"User","site_admin":false},"created_at":"2015-01-20T15:32:14Z","updated_at":"2015-01-20T15:32:14Z","body":"I use Vagrant 1.7.1 at Windows                                              \r\nG:\\VirtualBox VMs\\centos7_64>vagrant --version   \r\nVagrant 1.7.1                                    \r\n \r\nError info <<                                            \r\nG:\\VirtualBox VMs\\centos7_64>vagrant package --base \"centos7_64\"                                      \r\nC:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.1/lib/vagrant/machine.rb:153:in `action': wrong nu\r\ner of arguments (2 for 1) (ArgumentError)                                                             \r\n        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.1/plugins/commands/package/command.rb\r\n3:in `package_vm'                                                                                     \r\n        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.1/plugins/commands/package/command.rb\r\n6:in `package_base'                                                                                   \r\n        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.1/plugins/commands/package/command.rb\r\n2:in `execute'                                                                                        \r\n        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.1/lib/vagrant/cli.rb:42:in `execute' \r\n        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.1/lib/vagrant/environment.rb:301:in `\r\ni'                                                                                                    \r\n        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.1/bin/vagrant:174:in `<main>'        \r\n<<\r\n\r\n\r\nVagrant 1.7.2 fixed\r\nso please  upgrading to Vagrant 1.7.2\r\n"}}