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

Halt returns Access Denied #215

Closed shanemgrey closed 9 years ago

shanemgrey commented 9 years ago

vagrant destroy works, but vagrant halt returns an error.

There was an issue with the request made to the DigitalOcean
API at:

Path: /droplets/8314267/shutdown
URI Params: {}

The response status from the API was:

Status: 401
Response: {"status"=>"ERROR", "error_message"=>"Access Denied", "message"=>"Access Denied"}

Vagrantfile

# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure('2') do |config|

  config.vm.box = 'digital_ocean'
  config.vm.box_url = "https://github.com/smdahlen/vagrant-digitalocean/raw/master/box/digital_ocean.box"
  config.ssh.private_key_path = '~/.ssh/id_rsa'

  config.vm.provider :digital_ocean do |provider|
    provider.ssh_key_name = 'Shane MBP'
    provider.token = ENV['DIGITALOCEAN_API_TOKEN']
    provider.image = 'ubuntu-14-04-x64'
    provider.region = 'nyc3'
    provider.size = '512mb'
  end
end
davidalger commented 8 years ago

@seth-reeser Any way we could see latest master bundled into a release build? Kinda annoying not to be able to halt droplets.

seth-reeser commented 8 years ago

Sure thing, I'll release soon.

Seth Reeser via mobile

On Dec 15, 2015, at 9:06 PM, David Alger notifications@github.com wrote:

@seth-reeser Any way we could see latest master bundled into a release build? Kinda annoying not to be able to halt droplets.

— Reply to this email directly or view it on GitHub.