devopsgroup-io / vagrant-digitalocean

:droplet: A Vagrant provider plugin that manages DigitalOcean droplets.
Mozilla Public License 2.0
1.71k stars 182 forks source link

Bug on digital ocean 512MB droplet Ubuntu 14.04 #195

Closed tweyter closed 9 years ago

tweyter commented 9 years ago

Created a new droplet with Ubuntu 14.04 Created a user with sudo privileges. Did the following: Log in as the user sudo apt-get upgrade

edited /etc/apt/sources.list to add the following line: deb http://download.virtualbox.org/virtualbox/debian trusty contrib

wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add - sudo apt-get update sudo apt-get install virtualbox-4.3 sudo apt-get install vagrant sudo apt-get install ruby_dev sudo apt-get install make

vagrant plugin install vagrant-digitalocean

Everything seemed to work just fine, but any vagrant command gives an error. Here is the debug log:

tweyter@weyter:~$ vagrant --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/kernel_v1/plugin.rb INFO manager: Registered plugin: kernel 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/package/plugin.rb INFO manager: Registered plugin: package 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/init/plugin.rb INFO manager: Registered plugin: init 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/ssh/plugin.rb INFO manager: Registered plugin: ssh 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/up/plugin.rb INFO manager: Registered plugin: up 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/box/plugin.rb INFO manager: Registered plugin: box 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/commands/status/plugin.rb INFO manager: Registered plugin: status command 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/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/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/slackware/plugin.rb INFO manager: Registered plugin: Slackware 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/windows/plugin.rb INFO manager: Registered plugin: Windows host 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/redhat/plugin.rb INFO manager: Registered plugin: Red Hat 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/gentoo/plugin.rb INFO manager: Registered plugin: Gentoo 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/linux/plugin.rb INFO manager: Registered plugin: Linux host 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/communicators/ssh/plugin.rb INFO manager: Registered plugin: ssh communicator 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/docker/plugin.rb INFO manager: Registered plugin: docker 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/file/plugin.rb INFO manager: Registered plugin: file 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/provisioners/puppet/plugin.rb INFO manager: Registered plugin: puppet 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/cfengine/plugin.rb INFO manager: Registered plugin: CFEngine Provisioner 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/suse/plugin.rb INFO manager: Registered plugin: SUSE 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/guests/ubuntu/plugin.rb INFO manager: Registered plugin: Ubuntu 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/freebsd/plugin.rb INFO manager: Registered plugin: FreeBSD 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/arch/plugin.rb INFO manager: Registered plugin: Arch 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/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/coreos/plugin.rb INFO manager: Registered plugin: CoreOS 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/darwin/plugin.rb INFO manager: Registered plugin: Darwin guest DEBUG global: Loading core plugin: /usr/share/vagrant/plugins/guests/pld/plugin.rb INFO manager: Registered plugin: PLD Linux guest INFO vagrant: vagrant invoked: ["--debug"] DEBUG vagrant: Creating Vagrant environment INFO environment: Environment initialized (#Vagrant::Environment:0x00000000caf530) INFO environment: - cwd: /home/tweyter INFO environment: Home path: /home/tweyter/.vagrant.d WARN environment: No local data path is set. Local data cannot be stored. DEBUG environment: Loading plugins from: /home/tweyter/.vagrant.d/plugins.json INFO environment: Loading plugin from JSON: vagrant-digitalocean INFO manager: Registered plugin: DigitalOcean ERROR root: Failed to load plugin: vagrant-digitalocean ERROR root: -- Error: #<ArgumentError: wrong number of arguments (2 for 1)> ERROR root: -- Backtrace: ERROR root: /usr/lib/ruby/vendor_ruby/vagrant/plugin/v2/plugin.rb:84:in command' /home/tweyter/.vagrant.d/gems/gems/vagrant-digitalocean-0.7.4/lib/vagrant-digitalocean/plugin.rb:25:inclass:Plugin' /home/tweyter/.vagrant.d/gems/gems/vagrant-digitalocean-0.7.4/lib/vagrant-digitalocean/plugin.rb:3:in <module:DigitalOcean>' /home/tweyter/.vagrant.d/gems/gems/vagrant-digitalocean-0.7.4/lib/vagrant-digitalocean/plugin.rb:2:inmodule:VagrantPlugins' /home/tweyter/.vagrant.d/gems/gems/vagrant-digitalocean-0.7.4/lib/vagrant-digitalocean/plugin.rb:1:in <top (required)>' /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:inrequire' /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in require' /home/tweyter/.vagrant.d/gems/gems/vagrant-digitalocean-0.7.4/lib/vagrant-digitalocean.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:inrescue in require' /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:35:in require' /usr/lib/ruby/vendor_ruby/vagrant.rb:204:inrequire_plugin' /usr/lib/ruby/vendor_ruby/vagrant/environment.rb:760:in block in load_plugins' /usr/lib/ruby/vendor_ruby/vagrant/environment.rb:751:ineach' /usr/lib/ruby/vendor_ruby/vagrant/environment.rb:751:in load_plugins' /usr/lib/ruby/vendor_ruby/vagrant/environment.rb:132:ininitialize' /usr/bin/vagrant:105:in new' /usr/bin/vagrant:105:in

' INFO interface: error: Failed to load the "vagrant-digitalocean" plugin. View logs for more details.

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

INFO environment: Running hook: environment_plugins_loaded INFO runner: Running action: #Vagrant::Action::Builder:0x000000011693a0 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: Loading configuration in order: [:default, :home, :root] DEBUG loader: Loading from: default (evaluating) DEBUG loader: Configuration loaded successfully, finalizing and returning DEBUG hosts: Host path search classes: [VagrantPlugins::HostSlackware::Host, VagrantPlugins::HostFreeBSD::Host, VagrantPlugins::HostGentoo::Host, VagrantPlugins::HostOpenSUSE::Host, VagrantPlugins::HostWindows::Host, VagrantPlugins::HostArch::Host, VagrantPlugins::HostRedHat::Host, VagrantPlugins::HostBSD::Host, VagrantPlugins::HostLinux::Host] INFO hosts: Host class: VagrantPlugins::HostLinux::Host INFO runner: Running action: #Vagrant::Action::Builder:0x0000000118b0e0 INFO cli: CLI: ["--"] nil [] INFO interface: Machine: cli-command ["box"] INFO interface: Machine: cli-command ["destroy"] INFO interface: Machine: cli-command ["halt"] INFO interface: Machine: cli-command ["help"] INFO interface: Machine: cli-command ["init"] INFO interface: Machine: cli-command ["package"] INFO interface: Machine: cli-command ["plugin"] INFO interface: Machine: cli-command ["provision"] INFO interface: Machine: cli-command ["rebuild"] INFO interface: Machine: cli-command ["reload"] INFO interface: Machine: cli-command ["resume"] INFO interface: Machine: cli-command ["ssh"] INFO interface: Machine: cli-command ["ssh-config"] INFO interface: Machine: cli-command ["status"] INFO interface: Machine: cli-command ["suspend"] INFO interface: Machine: cli-command ["up"] INFO interface: info: Usage: vagrant [-v] [-h] command []

-v, --version                    Print the version and exit.
-h, --help                       Print this help.

Available subcommands: box manages boxes: installation, removal, etc. destroy stops and deletes all traces of the vagrant machine halt stops the vagrant machine help shows the help for a subcommand init initializes a new Vagrant environment by creating a Vagrantfile package packages a running vagrant environment into a box plugin manages plugins: install, uninstall, update, etc. provision provisions the vagrant machine rebuild reload restarts vagrant machine, loads new Vagrantfile configuration resume resume a suspended vagrant machine ssh connects to machine via SSH ssh-config outputs OpenSSH valid configuration to connect to the machine status outputs status of the vagrant machine suspend suspends the machine up starts and provisions the vagrant environment

For help on any individual command run vagrant COMMAND -h

Usage: vagrant [-v] [-h] command []

-v, --version                    Print the version and exit.
-h, --help                       Print this help.

Available subcommands: box manages boxes: installation, removal, etc. destroy stops and deletes all traces of the vagrant machine halt stops the vagrant machine help shows the help for a subcommand init initializes a new Vagrant environment by creating a Vagrantfile package packages a running vagrant environment into a box plugin manages plugins: install, uninstall, update, etc. provision provisions the vagrant machine rebuild reload restarts vagrant machine, loads new Vagrantfile configuration resume resume a suspended vagrant machine ssh connects to machine via SSH ssh-config outputs OpenSSH valid configuration to connect to the machine status outputs status of the vagrant machine suspend suspends the machine up starts and provisions the vagrant environment

For help on any individual command run vagrant COMMAND -h INFO environment: Running hook: environment_unload INFO runner: Running action: #Vagrant::Action::Builder:0x000000011a5418

seth-reeser commented 9 years ago

Is there a specific reason why you're running Vagrant on a droplet?

tweyter commented 9 years ago

No. I'm just new to all of this and was trying to learn how to setup and use Vagrant.

On Sun, Jul 26, 2015, 11:59 PM Seth Reeser notifications@github.com wrote:

Is there a specific reason why you're running Vagrant on a droplet?

— Reply to this email directly or view it on GitHub https://github.com/smdahlen/vagrant-digitalocean/issues/195#issuecomment-125079358 .

seth-reeser commented 9 years ago

Ok, Vagrant is meant to be run on a developer's machine, not necessarily a droplet. Technically it would be possible to use a droplet to use Vagrant with an external provider such as DigitalOcean, but not with a local provider, such as Virtualbox. But again, this is not normal use.

tweyter commented 9 years ago

Okay. Thanks for your help.

On Mon, Jul 27, 2015, 9:50 AM Seth Reeser notifications@github.com wrote:

Ok, Vagrant is meant to be run on a developer's machine, not necessarily a droplet. Technically it would be possible to use a droplet to use Vagrant with an external provider such as DigitalOcean, but not with a local provider, such as Virtualbox. But again, this is not normal use.

— Reply to this email directly or view it on GitHub https://github.com/smdahlen/vagrant-digitalocean/issues/195#issuecomment-125212200 .

acegreen commented 8 years ago

@seth-reeser thanks for all the feedback. I'm trying to install https://github.com/LaunchKit/LaunchKit and would like to do that away from my personal machine. I use digital ocean droplets for my two servers and just created a small droplet in the hope of running LaunchKit on it. You say Vagrant is not suppose to be installed on a droplet

but I'm wondering if someone like myself doesn't want all that on this local machine, why can't a droplet be used? I'm also having a hard time configuring digital ocean as the provider to play nice with LaunchKit's requirements.