hashicorp / vagrant

Vagrant is a tool for building and distributing development environments.
https://www.vagrantup.com
Other
26.32k stars 4.43k forks source link

uninitialized constant Vagrant::Provisioners::Base #4800

Closed waleedsaud closed 10 years ago

waleedsaud commented 10 years ago
pc:~/opengeo-playbook$ vagrant up --debug
 INFO global: Vagrant version: 1.4.3
 INFO global: Ruby version: 1.9.3
 INFO global: RubyGems version: 1.8.23
 INFO global: VAGRANT_LOG="debug"
DEBUG global: Loading core plugin: /usr/share/vagrant/plugins/guests/arch/plugin.rb
 INFO manager: Registered plugin: Arch guest
DEBUG global: Loading core plugin: /usr/share/vagrant/plugins/guests/suse/plugin.rb
 INFO manager: Registered plugin: SUSE guest
DEBUG global: Loading core plugin: /usr/share/vagrant/plugins/guests/fedora/plugin.rb
 INFO manager: Registered plugin: Fedora guest
DEBUG global: Loading core plugin: /usr/share/vagrant/plugins/guests/omnios/plugin.rb
 INFO manager: Registered plugin: OmniOS guest.
DEBUG global: Loading core plugin: /usr/share/vagrant/plugins/guests/pld/plugin.rb
 INFO manager: Registered plugin: PLD Linux guest
DEBUG global: Loading core plugin: /usr/share/vagrant/plugins/guests/esxi/plugin.rb
 INFO manager: Registered plugin: ESXi guest.
DEBUG global: Loading core plugin: /usr/share/vagrant/plugins/guests/redhat/plugin.rb
 INFO manager: Registered plugin: RedHat guest
DEBUG global: Loading core plugin: /usr/share/vagrant/plugins/guests/solaris/plugin.rb
 INFO manager: Registered plugin: Solaris guest.
DEBUG global: Loading core plugin: /usr/share/vagrant/plugins/guests/gentoo/plugin.rb
 INFO manager: Registered plugin: Gentoo guest
DEBUG global: Loading core plugin: /usr/share/vagrant/plugins/guests/debian/plugin.rb
 INFO manager: Registered plugin: Debian guest
DEBUG global: Loading core plugin: /usr/share/vagrant/plugins/guests/ubuntu/plugin.rb
 INFO manager: Registered plugin: Ubuntu guest
DEBUG global: Loading core plugin: /usr/share/vagrant/plugins/guests/coreos/plugin.rb
 INFO manager: Registered plugin: CoreOS guest
DEBUG global: Loading core plugin: /usr/share/vagrant/plugins/guests/darwin/plugin.rb
 INFO manager: Registered plugin: Darwin guest
DEBUG global: Loading core plugin: /usr/share/vagrant/plugins/guests/freebsd/plugin.rb
 INFO manager: Registered plugin: FreeBSD guest
DEBUG global: Loading core plugin: /usr/share/vagrant/plugins/guests/linux/plugin.rb
 INFO manager: Registered plugin: Linux guest.
DEBUG global: Loading core plugin: /usr/share/vagrant/plugins/guests/openbsd/plugin.rb
 INFO manager: Registered plugin: OpenBSD guest
DEBUG global: Loading core plugin: /usr/share/vagrant/plugins/guests/solaris11/plugin.rb
 INFO manager: Registered plugin: Solaris 11 guest.
DEBUG global: Loading core plugin: /usr/share/vagrant/plugins/kernel_v2/plugin.rb
 INFO manager: Registered plugin: kernel
DEBUG global: Loading core plugin: /usr/share/vagrant/plugins/provisioners/ansible/plugin.rb
 INFO manager: Registered plugin: ansible
DEBUG global: Loading core plugin: /usr/share/vagrant/plugins/provisioners/puppet/plugin.rb
 INFO manager: Registered plugin: puppet
DEBUG global: Loading core plugin: /usr/share/vagrant/plugins/provisioners/chef/plugin.rb
 INFO manager: Registered plugin: chef
DEBUG global: Loading core plugin: /usr/share/vagrant/plugins/provisioners/salt/plugin.rb
 INFO manager: Registered plugin: salt
DEBUG global: Loading core plugin: /usr/share/vagrant/plugins/provisioners/file/plugin.rb
 INFO manager: Registered plugin: file
DEBUG global: Loading core plugin: /usr/share/vagrant/plugins/provisioners/docker/plugin.rb
 INFO manager: Registered plugin: docker
DEBUG global: Loading core plugin: /usr/share/vagrant/plugins/provisioners/cfengine/plugin.rb
 INFO manager: Registered plugin: CFEngine Provisioner
DEBUG global: Loading core plugin: /usr/share/vagrant/plugins/provisioners/shell/plugin.rb
 INFO manager: Registered plugin: shell
DEBUG global: Loading core plugin: /usr/share/vagrant/plugins/communicators/ssh/plugin.rb
 INFO manager: Registered plugin: ssh communicator
DEBUG global: Loading core plugin: /usr/share/vagrant/plugins/kernel_v1/plugin.rb
 INFO manager: Registered plugin: kernel
DEBUG global: Loading core plugin: /usr/share/vagrant/plugins/commands/destroy/plugin.rb
 INFO manager: Registered plugin: destroy command
DEBUG global: Loading core plugin: /usr/share/vagrant/plugins/commands/status/plugin.rb
 INFO manager: Registered plugin: status command
DEBUG global: Loading core plugin: /usr/share/vagrant/plugins/commands/suspend/plugin.rb
 INFO manager: Registered plugin: suspend command
DEBUG global: Loading core plugin: /usr/share/vagrant/plugins/commands/up/plugin.rb
 INFO manager: Registered plugin: up command
DEBUG global: Loading core plugin: /usr/share/vagrant/plugins/commands/box/plugin.rb
 INFO manager: Registered plugin: box command
DEBUG global: Loading core plugin: /usr/share/vagrant/plugins/commands/reload/plugin.rb
 INFO manager: Registered plugin: reload command
DEBUG global: Loading core plugin: /usr/share/vagrant/plugins/commands/resume/plugin.rb
 INFO manager: Registered plugin: resume command
DEBUG global: Loading core plugin: /usr/share/vagrant/plugins/commands/help/plugin.rb
 INFO manager: Registered plugin: help command
DEBUG global: Loading core plugin: /usr/share/vagrant/plugins/commands/ssh_config/plugin.rb
 INFO manager: Registered plugin: ssh-config command
DEBUG global: Loading core plugin: /usr/share/vagrant/plugins/commands/init/plugin.rb
 INFO manager: Registered plugin: init command
DEBUG global: Loading core plugin: /usr/share/vagrant/plugins/commands/halt/plugin.rb
 INFO manager: Registered plugin: halt command
DEBUG global: Loading core plugin: /usr/share/vagrant/plugins/commands/plugin/plugin.rb
 INFO manager: Registered plugin: plugin command
DEBUG global: Loading core plugin: /usr/share/vagrant/plugins/commands/ssh/plugin.rb
 INFO manager: Registered plugin: ssh command
DEBUG global: Loading core plugin: /usr/share/vagrant/plugins/commands/package/plugin.rb
 INFO manager: Registered plugin: package command
DEBUG global: Loading core plugin: /usr/share/vagrant/plugins/commands/provision/plugin.rb
 INFO manager: Registered plugin: provision command
DEBUG global: Loading core plugin: /usr/share/vagrant/plugins/synced_folders/nfs/plugin.rb
 INFO manager: Registered plugin: NFS synced folders
DEBUG global: Loading core plugin: /usr/share/vagrant/plugins/providers/virtualbox/plugin.rb
 INFO manager: Registered plugin: VirtualBox provider
DEBUG global: Loading core plugin: /usr/share/vagrant/plugins/hosts/arch/plugin.rb
 INFO manager: Registered plugin: Arch host
DEBUG global: Loading core plugin: /usr/share/vagrant/plugins/hosts/windows/plugin.rb
 INFO manager: Registered plugin: Windows host
DEBUG global: Loading core plugin: /usr/share/vagrant/plugins/hosts/bsd/plugin.rb
 INFO manager: Registered plugin: BSD host
DEBUG global: Loading core plugin: /usr/share/vagrant/plugins/hosts/redhat/plugin.rb
 INFO manager: Registered plugin: Red Hat host
DEBUG global: Loading core plugin: /usr/share/vagrant/plugins/hosts/gentoo/plugin.rb
 INFO manager: Registered plugin: Gentoo host
DEBUG global: Loading core plugin: /usr/share/vagrant/plugins/hosts/opensuse/plugin.rb
 INFO manager: Registered plugin: OpenSUSE host
DEBUG global: Loading core plugin: /usr/share/vagrant/plugins/hosts/freebsd/plugin.rb
 INFO manager: Registered plugin: FreeBSD host
DEBUG global: Loading core plugin: /usr/share/vagrant/plugins/hosts/slackware/plugin.rb
 INFO manager: Registered plugin: Slackware host
DEBUG global: Loading core plugin: /usr/share/vagrant/plugins/hosts/linux/plugin.rb
 INFO manager: Registered plugin: Linux host
 INFO vagrant: `vagrant` invoked: ["up", "--debug"]
DEBUG vagrant: Creating Vagrant environment
 INFO environment: Environment initialized (#<Vagrant::Environment:0x00000001dd6048>)
 INFO environment:   - cwd: /home/waleed/opengeo-playbook
 INFO environment: Home path: /home/waleed/.vagrant.d
 INFO environment: Local data path: /home/waleed/opengeo-playbook/.vagrant
DEBUG environment: Creating: /home/waleed/opengeo-playbook/.vagrant
DEBUG environment: Loading plugins from: /home/waleed/.vagrant.d/plugins.json
 INFO environment: Loading plugin from JSON: vagrant-ansible
ERROR root: Failed to load plugin: vagrant-ansible
ERROR root:  -- Error: #<NameError: uninitialized constant Vagrant::Provisioners::Base>
ERROR root:  -- Backtrace:
ERROR root: /home/waleed/.vagrant.d/gems/gems/vagrant-ansible-0.0.5/lib/vagrant-ansible/provisioner.rb:5:in `<module:Provisioners>'
/home/waleed/.vagrant.d/gems/gems/vagrant-ansible-0.0.5/lib/vagrant-ansible/provisioner.rb:4:in `<module:Vagrant>'
/home/waleed/.vagrant.d/gems/gems/vagrant-ansible-0.0.5/lib/vagrant-ansible/provisioner.rb:3:in `<top (required)>'
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/home/waleed/.vagrant.d/gems/gems/vagrant-ansible-0.0.5/lib/vagrant-ansible.rb:2:in `<top (required)>'
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:60:in `require'
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:60:in `rescue in require'
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:35:in `require'
/usr/lib/ruby/vendor_ruby/vagrant.rb:204:in `require_plugin'
/usr/lib/ruby/vendor_ruby/vagrant/environment.rb:760:in `block in load_plugins'
/usr/lib/ruby/vendor_ruby/vagrant/environment.rb:751:in `each'
/usr/lib/ruby/vendor_ruby/vagrant/environment.rb:751:in `load_plugins'
/usr/lib/ruby/vendor_ruby/vagrant/environment.rb:132:in `initialize'
/usr/bin/vagrant:105:in `new'
/usr/bin/vagrant:105:in `<main>'
 INFO interface: error: Failed to load the "vagrant-ansible" plugin. View logs for more details.

Failed to load the "vagrant-ansible" plugin. View logs for more details.

 INFO environment: Running hook: environment_plugins_loaded
 INFO runner: Running action: #<Vagrant::Action::Builder:0x000000021050c0>
 INFO environment: Running hook: environment_load
 INFO environment: Initializing config...
 INFO loader: Set :default = "/usr/share/vagrant/config/default.rb"
DEBUG loader: Populating proc cache for "/usr/share/vagrant/config/default.rb"
DEBUG loader: Load procs for pathname: /usr/share/vagrant/config/default.rb
 INFO loader: Set :root = #<Pathname:/home/waleed/opengeo-playbook/Vagrantfile>
DEBUG loader: Populating proc cache for #<Pathname:/home/waleed/opengeo-playbook/Vagrantfile>
DEBUG loader: Load procs for pathname: /home/waleed/opengeo-playbook/Vagrantfile
ERROR loader: Vagrantfile load error: uninitialized constant Vagrant::Provisioners::Base
ERROR loader: /home/waleed/.vagrant.d/gems/gems/vagrant-ansible-0.0.5/lib/vagrant-ansible/provisioner.rb:5:in `<module:Provisioners>'
/home/waleed/.vagrant.d/gems/gems/vagrant-ansible-0.0.5/lib/vagrant-ansible/provisioner.rb:4:in `<module:Vagrant>'
/home/waleed/.vagrant.d/gems/gems/vagrant-ansible-0.0.5/lib/vagrant-ansible/provisioner.rb:3:in `<top (required)>'
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/home/waleed/.vagrant.d/gems/gems/vagrant-ansible-0.0.5/lib/vagrant-ansible.rb:2:in `<top (required)>'
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/home/waleed/opengeo-playbook/Vagrantfile:1:in `<top (required)>'
/usr/lib/ruby/vendor_ruby/vagrant/config/loader.rb:198:in `load'
/usr/lib/ruby/vendor_ruby/vagrant/config/loader.rb:198:in `block in procs_for_path'
/usr/lib/ruby/vendor_ruby/vagrant/config.rb:53:in `block in capture_configures'
<internal:prelude>:10:in `synchronize'
/usr/lib/ruby/vendor_ruby/vagrant/config.rb:48:in `capture_configures'
/usr/lib/ruby/vendor_ruby/vagrant/config/loader.rb:196:in `procs_for_path'
/usr/lib/ruby/vendor_ruby/vagrant/config/loader.rb:182:in `procs_for_source'
/usr/lib/ruby/vendor_ruby/vagrant/config/loader.rb:57:in `block in set'
/usr/lib/ruby/vendor_ruby/vagrant/config/loader.rb:51:in `each'
/usr/lib/ruby/vendor_ruby/vagrant/config/loader.rb:51:in `set'
/usr/lib/ruby/vendor_ruby/vagrant/environment.rb:260:in `config_global'
/usr/lib/ruby/vendor_ruby/vagrant/environment.rb:519:in `block in action_runner'
/usr/lib/ruby/vendor_ruby/vagrant/action/runner.rb:36:in `call'
/usr/lib/ruby/vendor_ruby/vagrant/action/runner.rb:36:in `run'
/usr/lib/ruby/vendor_ruby/vagrant/environment.rb:283:in `hook'
/usr/lib/ruby/vendor_ruby/vagrant/environment.rb:139:in `initialize'
/usr/bin/vagrant:105:in `new'
/usr/bin/vagrant:105:in `<main>'
ERROR vagrant: Vagrant experienced an error! Details:
ERROR vagrant: #<Vagrant::Errors::VagrantfileLoadError: There was an error loading a Vagrantfile. The file being loaded
and the error message are shown below. This is usually caused by
a syntax error.

Path: /home/waleed/opengeo-playbook/Vagrantfile
Message: uninitialized constant Vagrant::Provisioners::Base>
ERROR vagrant: There was an error loading a Vagrantfile. The file being loaded
and the error message are shown below. This is usually caused by
a syntax error.

Path: /home/waleed/opengeo-playbook/Vagrantfile
Message: uninitialized constant Vagrant::Provisioners::Base
ERROR vagrant: /usr/lib/ruby/vendor_ruby/vagrant/config/loader.rb:214:in `rescue in block in procs_for_path'
/usr/lib/ruby/vendor_ruby/vagrant/config/loader.rb:197:in `block in procs_for_path'
/usr/lib/ruby/vendor_ruby/vagrant/config.rb:53:in `block in capture_configures'
<internal:prelude>:10:in `synchronize'
/usr/lib/ruby/vendor_ruby/vagrant/config.rb:48:in `capture_configures'
/usr/lib/ruby/vendor_ruby/vagrant/config/loader.rb:196:in `procs_for_path'
/usr/lib/ruby/vendor_ruby/vagrant/config/loader.rb:182:in `procs_for_source'
/usr/lib/ruby/vendor_ruby/vagrant/config/loader.rb:57:in `block in set'
/usr/lib/ruby/vendor_ruby/vagrant/config/loader.rb:51:in `each'
/usr/lib/ruby/vendor_ruby/vagrant/config/loader.rb:51:in `set'
/usr/lib/ruby/vendor_ruby/vagrant/environment.rb:260:in `config_global'
/usr/lib/ruby/vendor_ruby/vagrant/environment.rb:519:in `block in action_runner'
/usr/lib/ruby/vendor_ruby/vagrant/action/runner.rb:36:in `call'
/usr/lib/ruby/vendor_ruby/vagrant/action/runner.rb:36:in `run'
/usr/lib/ruby/vendor_ruby/vagrant/environment.rb:283:in `hook'
/usr/lib/ruby/vendor_ruby/vagrant/environment.rb:139:in `initialize'
/usr/bin/vagrant:105:in `new'
/usr/bin/vagrant:105:in `<main>'
Vagrant failed to initialize at a very early stage:

There was an error loading a Vagrantfile. The file being loaded
and the error message are shown below. This is usually caused by
a syntax error.

Path: /home/waleed/opengeo-playbook/Vagrantfile
Message: uninitialized constant Vagrant::Provisioners::Base
sethvargo commented 10 years ago

Hi @waleedsaud

From the debug output:

DEBUG environment: Loading plugins from: /home/waleed/.vagrant.d/plugins.json
 INFO environment: Loading plugin from JSON: vagrant-ansible
ERROR root: Failed to load plugin: vagrant-ansible
ERROR root:  -- Error: #<NameError: uninitialized constant Vagrant::Provisioners::Base>
ERROR root:  -- Backtrace:
ERROR root: /home/waleed/.vagrant.d/gems/gems/vagrant-ansible-0.0.5/lib/vagrant-ansible/provisioner.rb:5:in `<module:Provisioners>'
/home/waleed/.vagrant.d/gems/gems/vagrant-ansible-0.0.5/lib/vagrant-ansible/provisioner.rb:4:in `<module:Vagrant>'

It looks as though the vagrant-ansible plugin has been deprecated because Vagrant now supports everything in core. Please uninstall the plugin and upgrade Vagrant.