devopsgroup-io / vagrant-digitalocean

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

vagrant up works but never ends #253

Closed jeusdi closed 8 years ago

jeusdi commented 8 years ago

I've been able to set up an droplet in digitalocean. Nevertheless, the droplet is well configured and set up, but dthe command vagrant up --provider=digital_ocean seems never ends and I need to press Ctrl+C in order to stop it.

D:\projects\living\vagrant\QA>vagrant up --provider=digital_ocean
Bringing machine 'QA-01' up with 'digital_ocean' provider...
==> QA-01: Using existing SSH key: Vagrant
==> QA-01: Creating a new droplet...
==> QA-01: Assigned IP address: -------

This is my Vagrantfile:

if ENV["NUM_INSTANCES"].to_i > 0 && ENV["NUM_INSTANCES"]
  $num_instances = ENV["NUM_INSTANCES"].to_i
end

Vagrant.configure("2") do |config|
  config.vm.box = "digital_ocean"
  config.ssh.username = 'core'

  (1..$num_instances).each do |i|
    config.vm.define vm_name = "%s-%02d" % [$instance_name_prefix, i] do |config|
      config.vm.provider :digital_ocean do |provider, override|
        override.ssh.private_key_path = '----'
        override.vm.box = 'digital_ocean'
        override.vm.box_url = "https://github.com/devopsgroup-io/vagrant-digitalocean/raw/master/box/digital_ocean.box"
        provider.token = '-----'
        provider.image = 'coreos-stable'
        provider.region = 'ams3'
        provider.size = '2gb'
        provider.setup = false
        provider.private_networking = false
        provider.user_data = File.read('user-data.yml')
      end
    end
  end
end
seth-reeser commented 8 years ago

Hi @jeusdi, please attach the output from vagrant up --provider=digital_ocean --debug

jeusdi commented 8 years ago

I've just took a look on debug information.

It seems that vagrant is trying to connect using an underlaying ssh client and it keeps there, trying to connect to whereever.

I dump you the last messages which are repeated. As far I've able to figure out the main message is #<ArgumentError: Could not parse PKey: no start line>.

I, [2016-09-16T08:19:20.670372 #9244]  INFO -- net.ssh.transport.algorithms[22ca8d4]: sending KEXINIT
D, [2016-09-16T08:19:20.670372 #9244] DEBUG -- socket[22cb2a0]: queueing packet nr 0 type 20 len 1684
D, [2016-09-16T08:19:20.671392 #9244] DEBUG -- socket[22cb2a0]: sent 1688 bytes
I, [2016-09-16T08:19:20.671392 #9244]  INFO -- net.ssh.transport.algorithms[22ca8d4]: negotiating algorithms
D, [2016-09-16T08:19:20.671392 #9244] DEBUG -- net.ssh.transport.algorithms[22ca8d4]: negotiated:
* kex: diffie-hellman-group14-sha1
* host_key: ssh-rsa
* encryption_server: aes128-ctr
* encryption_client: aes128-ctr
* hmac_client: hmac-sha1
* hmac_server: hmac-sha1
* compression_client: none
* compression_server: none
* language_client:
* language_server:
D, [2016-09-16T08:19:20.671392 #9244] DEBUG -- net.ssh.transport.algorithms[22ca8d4]: exchanging keys
D, [2016-09-16T08:19:20.675389 #9244] DEBUG -- socket[22cb2a0]: queueing packet nr 1 type 30 len 268
D, [2016-09-16T08:19:20.675805 #9244] DEBUG -- socket[22cb2a0]: sent 272 bytes
D, [2016-09-16T08:19:20.779508 #9244] DEBUG -- socket[22cb2a0]: read 848 bytes
D, [2016-09-16T08:19:20.779508 #9244] DEBUG -- socket[22cb2a0]: received packet nr 1 type 31 len 828
D, [2016-09-16T08:19:20.787511 #9244] DEBUG -- socket[22cb2a0]: queueing packet nr 2 type 21 len 20
D, [2016-09-16T08:19:20.787511 #9244] DEBUG -- socket[22cb2a0]: sent 24 bytes
D, [2016-09-16T08:19:20.787511 #9244] DEBUG -- socket[22cb2a0]: received packet nr 2 type 21 len 12
D, [2016-09-16T08:19:20.788511 #9244] DEBUG -- net.ssh.authentication.session[1b1a1d8]: beginning authentication of `core'
D, [2016-09-16T08:19:20.789498 #9244] DEBUG -- socket[22cb2a0]: queueing packet nr 3 type 5 len 28
D, [2016-09-16T08:19:20.789498 #9244] DEBUG -- socket[22cb2a0]: sent 52 bytes
D, [2016-09-16T08:19:20.930049 #9244] DEBUG -- socket[22cb2a0]: read 52 bytes
D, [2016-09-16T08:19:20.930384 #9244] DEBUG -- socket[22cb2a0]: received packet nr 3 type 6 len 28
D, [2016-09-16T08:19:20.930861 #9244] DEBUG -- net.ssh.authentication.session[1b1a1d8]: trying none
D, [2016-09-16T08:19:20.931469 #9244] DEBUG -- socket[22cb2a0]: queueing packet nr 4 type 50 len 44
D, [2016-09-16T08:19:20.932052 #9244] DEBUG -- socket[22cb2a0]: sent 68 bytes
D, [2016-09-16T08:19:20.983783 #9244] DEBUG -- socket[22cb2a0]: read 84 bytes
D, [2016-09-16T08:19:20.983783 #9244] DEBUG -- socket[22cb2a0]: received packet nr 4 type 51 len 60
D, [2016-09-16T08:19:20.984783 #9244] DEBUG -- net.ssh.authentication.session[1b1a1d8]: allowed methods: publickey,password,keyboard-interactive
D, [2016-09-16T08:19:20.984783 #9244] DEBUG -- net.ssh.authentication.methods.none[1b163e0]: none failed
D, [2016-09-16T08:19:20.984783 #9244] DEBUG -- net.ssh.authentication.session[1b1a1d8]: trying publickey
D, [2016-09-16T08:19:20.985784 #9244] DEBUG -- net.ssh.authentication.agent[1b0bd24]: connecting to ssh-agent
D, [2016-09-16T08:19:20.986765 #9244] DEBUG -- net.ssh.authentication.agent[1b0bd24]: sending agent request 1 len 44
D, [2016-09-16T08:19:20.987784 #9244] DEBUG -- net.ssh.authentication.agent[1b0bd24]: received agent packet 2 len 5
D, [2016-09-16T08:19:20.987784 #9244] DEBUG -- net.ssh.authentication.agent[1b0bd24]: sending agent request 11 len 0
D, [2016-09-16T08:19:20.989787 #9244] DEBUG -- net.ssh.authentication.agent[1b0bd24]: received agent packet 12 len 5
D, [2016-09-16T08:19:20.989787 #9244] DEBUG -- net.ssh.authentication.methods.publickey[1b122dc]: trying publickey (0c:52:8f:4b:c7:2a:c1:f4:e8:49:6f:60:03:db:89:32)
D, [2016-09-16T08:19:20.990760 #9244] DEBUG -- socket[22cb2a0]: queueing packet nr 5 type 50 len 604
D, [2016-09-16T08:19:20.991759 #9244] DEBUG -- socket[22cb2a0]: sent 628 bytes
D, [2016-09-16T08:19:21.045460 #9244] DEBUG -- socket[22cb2a0]: read 580 bytes
D, [2016-09-16T08:19:21.045652 #9244] DEBUG -- socket[22cb2a0]: received packet nr 5 type 60 len 556

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<ArgumentError: Could not parse PKey: no start line>
DEBUG ssh: Checking whether SSH is ready...
 INFO ssh: Attempting SSH connection...
 INFO ssh: Attempting to connect to SSH...
 INFO ssh:   - Host: 178.62.208.156
 INFO ssh:   - Port: 22
 INFO ssh:   - Username: core
 INFO ssh:   - Password? false
 INFO ssh:   - Key Path: ["D:/projects/living/keys/digitalocean/key"]
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: D, [2016-09-16T08:19:31.165907 #9244] DEBUG -- net.ssh.transport.session[18b03d0]: establishing connection to 178.62.208.156:22
D, [2016-09-16T08:19:31.230797 #9244] DEBUG -- net.ssh.transport.session[18b03d0]: connection established
I, [2016-09-16T08:19:31.231774 #9244]  INFO -- net.ssh.transport.server_version[18acf74]: negotiating protocol version
D, [2016-09-16T08:19:31.304787 #9244] DEBUG -- net.ssh.transport.server_version[18acf74]: remote is `SSH-2.0-OpenSSH_7.2'
D, [2016-09-16T08:19:31.304787 #9244] DEBUG -- net.ssh.transport.server_version[18acf74]: local is `SSH-2.0-Ruby/Net::SSH_3.0.2 i386-mingw32'
D, [2016-09-16T08:19:31.351301 #9244] DEBUG -- socket[18adb8c]: read 976 bytes
D, [2016-09-16T08:19:31.351301 #9244] DEBUG -- socket[18adb8c]: received packet nr 0 type 20 len 972
I, [2016-09-16T08:19:31.351795 #9244]  INFO -- net.ssh.transport.algorithms[18a0e30]: got KEXINIT from server
I, [2016-09-16T08:19:31.351795 #9244]  INFO -- net.ssh.transport.algorithms[18a0e30]: sending KEXINIT
D, [2016-09-16T08:19:31.352070 #9244] DEBUG -- socket[18adb8c]: queueing packet nr 0 type 20 len 1684
D, [2016-09-16T08:19:31.352222 #9244] DEBUG -- socket[18adb8c]: sent 1688 bytes
I, [2016-09-16T08:19:31.352222 #9244]  INFO -- net.ssh.transport.algorithms[18a0e30]: negotiating algorithms
D, [2016-09-16T08:19:31.352222 #9244] DEBUG -- net.ssh.transport.algorithms[18a0e30]: negotiated:
* kex: diffie-hellman-group14-sha1
* host_key: ssh-rsa
* encryption_server: aes128-ctr
* encryption_client: aes128-ctr
* hmac_client: hmac-sha1
* hmac_server: hmac-sha1
* compression_client: none
* compression_server: none
* language_client:
* language_server:
D, [2016-09-16T08:19:31.352222 #9244] DEBUG -- net.ssh.transport.algorithms[18a0e30]: exchanging keys
D, [2016-09-16T08:19:31.354739 #9244] DEBUG -- socket[18adb8c]: queueing packet nr 1 type 30 len 268
D, [2016-09-16T08:19:31.354739 #9244] DEBUG -- socket[18adb8c]: sent 272 bytes
D, [2016-09-16T08:19:31.466197 #9244] DEBUG -- socket[18adb8c]: read 848 bytes
D, [2016-09-16T08:19:31.466501 #9244] DEBUG -- socket[18adb8c]: received packet nr 1 type 31 len 828
D, [2016-09-16T08:19:31.473852 #9244] DEBUG -- socket[18adb8c]: queueing packet nr 2 type 21 len 20
D, [2016-09-16T08:19:31.474495 #9244] DEBUG -- socket[18adb8c]: sent 24 bytes
D, [2016-09-16T08:19:31.474970 #9244] DEBUG -- socket[18adb8c]: received packet nr 2 type 21 len 12
D, [2016-09-16T08:19:31.475295 #9244] DEBUG -- net.ssh.authentication.session[22d6c28]: beginning authentication of `core'
D, [2016-09-16T08:19:31.476191 #9244] DEBUG -- socket[18adb8c]: queueing packet nr 3 type 5 len 28
D, [2016-09-16T08:19:31.476653 #9244] DEBUG -- socket[18adb8c]: sent 52 bytes
D, [2016-09-16T08:19:31.622955 #9244] DEBUG -- socket[18adb8c]: read 52 bytes
D, [2016-09-16T08:19:31.622955 #9244] DEBUG -- socket[18adb8c]: received packet nr 3 type 6 len 28
D, [2016-09-16T08:19:31.623956 #9244] DEBUG -- net.ssh.authentication.session[22d6c28]: trying none
D, [2016-09-16T08:19:31.623956 #9244] DEBUG -- socket[18adb8c]: queueing packet nr 4 type 50 len 44
D, [2016-09-16T08:19:31.624808 #9244] DEBUG -- socket[18adb8c]: sent 68 bytes
D, [2016-09-16T08:19:31.676748 #9244] DEBUG -- socket[18adb8c]: read 84 bytes
D, [2016-09-16T08:19:31.676748 #9244] DEBUG -- socket[18adb8c]: received packet nr 4 type 51 len 60
D, [2016-09-16T08:19:31.676748 #9244] DEBUG -- net.ssh.authentication.session[22d6c28]: allowed methods: publickey,password,keyboard-interactive
D, [2016-09-16T08:19:31.676748 #9244] DEBUG -- net.ssh.authentication.methods.none[22c3d1c]: none failed
D, [2016-09-16T08:19:31.677752 #9244] DEBUG -- net.ssh.authentication.session[22d6c28]: trying publickey
D, [2016-09-16T08:19:31.677752 #9244] DEBUG -- net.ssh.authentication.agent[22c263c]: connecting to ssh-agent
D, [2016-09-16T08:19:31.677752 #9244] DEBUG -- net.ssh.authentication.agent[22c263c]: sending agent request 1 len 44
D, [2016-09-16T08:19:31.678784 #9244] DEBUG -- net.ssh.authentication.agent[22c263c]: received agent packet 2 len 5
D, [2016-09-16T08:19:31.678784 #9244] DEBUG -- net.ssh.authentication.agent[22c263c]: sending agent request 11 len 0
D, [2016-09-16T08:19:31.680206 #9244] DEBUG -- net.ssh.authentication.agent[22c263c]: received agent packet 12 len 5
D, [2016-09-16T08:19:31.680400 #9244] DEBUG -- net.ssh.authentication.methods.publickey[22c28ac]: trying publickey (0c:52:8f:4b:c7:2a:c1:f4:e8:49:6f:60:03:db:89:32)
D, [2016-09-16T08:19:31.680684 #9244] DEBUG -- socket[18adb8c]: queueing packet nr 5 type 50 len 604
D, [2016-09-16T08:19:31.681334 #9244] DEBUG -- socket[18adb8c]: sent 628 bytes
D, [2016-09-16T08:19:31.732509 #9244] DEBUG -- socket[18adb8c]: read 580 bytes
D, [2016-09-16T08:19:31.732509 #9244] DEBUG -- socket[18adb8c]: received packet nr 5 type 60 len 556

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<ArgumentError: Could not parse PKey: no start line>
DEBUG ssh: Checking whether SSH is ready...
 INFO ssh: Attempting SSH connection...
 INFO ssh: Attempting to connect to SSH...
 INFO ssh:   - Host: 178.62.208.156
 INFO ssh:   - Port: 22
 INFO ssh:   - Username: core
 INFO ssh:   - Password? false
 INFO ssh:   - Key Path: ["D:/projects/living/keys/digitalocean/key"]
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: D, [2016-09-16T08:19:41.865038 #9244] DEBUG -- net.ssh.transport.session[2203aa0]: establishing connection to 178.62.208.156:22
D, [2016-09-16T08:19:41.949904 #9244] DEBUG -- net.ssh.transport.session[2203aa0]: connection established
I, [2016-09-16T08:19:41.950904 #9244]  INFO -- net.ssh.transport.server_version[220350c]: negotiating protocol version
D, [2016-09-16T08:19:42.023806 #9244] DEBUG -- net.ssh.transport.server_version[220350c]: remote is `SSH-2.0-OpenSSH_7.2'
D, [2016-09-16T08:19:42.023806 #9244] DEBUG -- net.ssh.transport.server_version[220350c]: local is `SSH-2.0-Ruby/Net::SSH_3.0.2 i386-mingw32'
D, [2016-09-16T08:19:42.077182 #9244] DEBUG -- socket[2203890]: read 976 bytes
D, [2016-09-16T08:19:42.077182 #9244] DEBUG -- socket[2203890]: received packet nr 0 type 20 len 972
I, [2016-09-16T08:19:42.077669 #9244]  INFO -- net.ssh.transport.algorithms[2202f00]: got KEXINIT from server
I, [2016-09-16T08:19:42.077669 #9244]  INFO -- net.ssh.transport.algorithms[2202f00]: sending KEXINIT
D, [2016-09-16T08:19:42.077669 #9244] DEBUG -- socket[2203890]: queueing packet nr 0 type 20 len 1684
D, [2016-09-16T08:19:42.078159 #9244] DEBUG -- socket[2203890]: sent 1688 bytes
I, [2016-09-16T08:19:42.078159 #9244]  INFO -- net.ssh.transport.algorithms[2202f00]: negotiating algorithms
D, [2016-09-16T08:19:42.078159 #9244] DEBUG -- net.ssh.transport.algorithms[2202f00]: negotiated:
* kex: diffie-hellman-group14-sha1
* host_key: ssh-rsa
* encryption_server: aes128-ctr
* encryption_client: aes128-ctr
* hmac_client: hmac-sha1
* hmac_server: hmac-sha1
* compression_client: none
* compression_server: none
* language_client:
* language_server:
D, [2016-09-16T08:19:42.078662 #9244] DEBUG -- net.ssh.transport.algorithms[2202f00]: exchanging keys
D, [2016-09-16T08:19:42.082180 #9244] DEBUG -- socket[2203890]: queueing packet nr 1 type 30 len 268
D, [2016-09-16T08:19:42.082180 #9244] DEBUG -- socket[2203890]: sent 272 bytes
D, [2016-09-16T08:19:42.199319 #9244] DEBUG -- socket[2203890]: read 848 bytes
D, [2016-09-16T08:19:42.199319 #9244] DEBUG -- socket[2203890]: received packet nr 1 type 31 len 828
D, [2016-09-16T08:19:42.207348 #9244] DEBUG -- socket[2203890]: queueing packet nr 2 type 21 len 20
D, [2016-09-16T08:19:42.207348 #9244] DEBUG -- socket[2203890]: sent 24 bytes
D, [2016-09-16T08:19:42.207348 #9244] DEBUG -- socket[2203890]: received packet nr 2 type 21 len 12
D, [2016-09-16T08:19:42.208343 #9244] DEBUG -- net.ssh.authentication.session[244080c]: beginning authentication of `core'
D, [2016-09-16T08:19:42.209325 #9244] DEBUG -- socket[2203890]: queueing packet nr 3 type 5 len 28
D, [2016-09-16T08:19:42.209325 #9244] DEBUG -- socket[2203890]: sent 52 bytes
D, [2016-09-16T08:19:42.377009 #9244] DEBUG -- socket[2203890]: read 52 bytes
D, [2016-09-16T08:19:42.377541 #9244] DEBUG -- socket[2203890]: received packet nr 3 type 6 len 28
D, [2016-09-16T08:19:42.378043 #9244] DEBUG -- net.ssh.authentication.session[244080c]: trying none
D, [2016-09-16T08:19:42.378543 #9244] DEBUG -- socket[2203890]: queueing packet nr 4 type 50 len 44
D, [2016-09-16T08:19:42.379044 #9244] DEBUG -- socket[2203890]: sent 68 bytes
D, [2016-09-16T08:19:42.430108 #9244] DEBUG -- socket[2203890]: read 84 bytes
D, [2016-09-16T08:19:42.430108 #9244] DEBUG -- socket[2203890]: received packet nr 4 type 51 len 60
D, [2016-09-16T08:19:42.430108 #9244] DEBUG -- net.ssh.authentication.session[244080c]: allowed methods: publickey,password,keyboard-interactive
D, [2016-09-16T08:19:42.431109 #9244] DEBUG -- net.ssh.authentication.methods.none[24338dc]: none failed
D, [2016-09-16T08:19:42.431109 #9244] DEBUG -- net.ssh.authentication.session[244080c]: trying publickey
D, [2016-09-16T08:19:42.432109 #9244] DEBUG -- net.ssh.authentication.agent[24320f4]: connecting to ssh-agent
D, [2016-09-16T08:19:42.433085 #9244] DEBUG -- net.ssh.authentication.agent[24320f4]: sending agent request 1 len 44
D, [2016-09-16T08:19:42.434110 #9244] DEBUG -- net.ssh.authentication.agent[24320f4]: received agent packet 2 len 5
D, [2016-09-16T08:19:42.434110 #9244] DEBUG -- net.ssh.authentication.agent[24320f4]: sending agent request 11 len 0
D, [2016-09-16T08:19:42.436107 #9244] DEBUG -- net.ssh.authentication.agent[24320f4]: received agent packet 12 len 5
D, [2016-09-16T08:19:42.436107 #9244] DEBUG -- net.ssh.authentication.methods.publickey[2432400]: trying publickey (0c:52:8f:4b:c7:2a:c1:f4:e8:49:6f:60:03:db:89:32)
D, [2016-09-16T08:19:42.437112 #9244] DEBUG -- socket[2203890]: queueing packet nr 5 type 50 len 604
D, [2016-09-16T08:19:42.438111 #9244] DEBUG -- socket[2203890]: sent 628 bytes
D, [2016-09-16T08:19:42.490820 #9244] DEBUG -- socket[2203890]: read 580 bytes
D, [2016-09-16T08:19:42.491325 #9244] DEBUG -- socket[2203890]: received packet nr 5 type 60 len 556

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<ArgumentError: Could not parse PKey: no start line>
DEBUG ssh: Checking whether SSH is ready...
 INFO ssh: Attempting SSH connection...
 INFO ssh: Attempting to connect to SSH...
 INFO ssh:   - Host: 178.62.208.156
 INFO ssh:   - Port: 22
 INFO ssh:   - Username: core
 INFO ssh:   - Password? false
 INFO ssh:   - Key Path: ["D:/projects/living/keys/digitalocean/key"]
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: D, [2016-09-16T08:19:52.671441 #9244] DEBUG -- net.ssh.transport.session[23461c8]: establishing connection to 178.62.208.156:22

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO ssh: SSH not up: #<Vagrant::Errors::NetSSHException: An error occurred in the underlying SSH library that Vagrant uses.
The error message is shown below. In many cases, errors from this
library are caused by ssh-agent issues. Try disabling your SSH
agent or removing some keys and try again.

If the problem persists, please report a bug to the net-ssh project.

Net::SSH::ConnectionTimeout>
 INFO retryable: Retryable exception raised: #<RuntimeError: not ready>
DEBUG ssh: Checking whether SSH is ready...
 INFO ssh: Attempting SSH connection...
 INFO ssh: Attempting to connect to SSH...
 INFO ssh:   - Host: 178.62.208.156
 INFO ssh:   - Port: 22
 INFO ssh:   - Username: core
 INFO ssh:   - Password? false
 INFO ssh:   - Key Path: ["D:/projects/living/keys/digitalocean/key"]
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: D, [2016-09-16T08:20:17.720647 #9244] DEBUG -- net.ssh.transport.session[22eac74]: establishing connection to 178.62.208.156:22
D, [2016-09-16T08:20:17.782795 #9244] DEBUG -- net.ssh.transport.session[22eac74]: connection established
I, [2016-09-16T08:20:17.783395 #9244]  INFO -- net.ssh.transport.server_version[22ea644]: negotiating protocol version
D, [2016-09-16T08:20:17.855648 #9244] DEBUG -- net.ssh.transport.server_version[22ea644]: remote is `SSH-2.0-OpenSSH_7.2'
D, [2016-09-16T08:20:17.855648 #9244] DEBUG -- net.ssh.transport.server_version[22ea644]: local is `SSH-2.0-Ruby/Net::SSH_3.0.2 i386-mingw32'
D, [2016-09-16T08:20:17.901752 #9244] DEBUG -- socket[22eaa40]: read 976 bytes
D, [2016-09-16T08:20:17.901752 #9244] DEBUG -- socket[22eaa40]: received packet nr 0 type 20 len 972
I, [2016-09-16T08:20:17.901752 #9244]  INFO -- net.ssh.transport.algorithms[22ea0a4]: got KEXINIT from server
I, [2016-09-16T08:20:17.901752 #9244]  INFO -- net.ssh.transport.algorithms[22ea0a4]: sending KEXINIT
D, [2016-09-16T08:20:17.901752 #9244] DEBUG -- socket[22eaa40]: queueing packet nr 0 type 20 len 1684
D, [2016-09-16T08:20:17.901752 #9244] DEBUG -- socket[22eaa40]: sent 1688 bytes
I, [2016-09-16T08:20:17.901752 #9244]  INFO -- net.ssh.transport.algorithms[22ea0a4]: negotiating algorithms
D, [2016-09-16T08:20:17.902733 #9244] DEBUG -- net.ssh.transport.algorithms[22ea0a4]: negotiated:
* kex: diffie-hellman-group14-sha1
* host_key: ssh-rsa
* encryption_server: aes128-ctr
* encryption_client: aes128-ctr
* hmac_client: hmac-sha1
* hmac_server: hmac-sha1
* compression_client: none
* compression_server: none
* language_client:
* language_server:
D, [2016-09-16T08:20:17.902733 #9244] DEBUG -- net.ssh.transport.algorithms[22ea0a4]: exchanging keys
D, [2016-09-16T08:20:17.904733 #9244] DEBUG -- socket[22eaa40]: queueing packet nr 1 type 30 len 268
D, [2016-09-16T08:20:17.905345 #9244] DEBUG -- socket[22eaa40]: sent 272 bytes
D, [2016-09-16T08:20:18.009459 #9244] DEBUG -- socket[22eaa40]: read 848 bytes
D, [2016-09-16T08:20:18.009706 #9244] DEBUG -- socket[22eaa40]: received packet nr 1 type 31 len 828
D, [2016-09-16T08:20:18.013980 #9244] DEBUG -- socket[22eaa40]: queueing packet nr 2 type 21 len 20
D, [2016-09-16T08:20:18.014173 #9244] DEBUG -- socket[22eaa40]: sent 24 bytes
D, [2016-09-16T08:20:18.014173 #9244] DEBUG -- socket[22eaa40]: received packet nr 2 type 21 len 12
D, [2016-09-16T08:20:18.014173 #9244] DEBUG -- net.ssh.authentication.session[1b16194]: beginning authentication of `core'
D, [2016-09-16T08:20:18.015205 #9244] DEBUG -- socket[22eaa40]: queueing packet nr 3 type 5 len 28
D, [2016-09-16T08:20:18.015205 #9244] DEBUG -- socket[22eaa40]: sent 52 bytes
D, [2016-09-16T08:20:18.152378 #9244] DEBUG -- socket[22eaa40]: read 52 bytes
D, [2016-09-16T08:20:18.152693 #9244] DEBUG -- socket[22eaa40]: received packet nr 3 type 6 len 28
D, [2016-09-16T08:20:18.153157 #9244] DEBUG -- net.ssh.authentication.session[1b16194]: trying none
D, [2016-09-16T08:20:18.153699 #9244] DEBUG -- socket[22eaa40]: queueing packet nr 4 type 50 len 44
D, [2016-09-16T08:20:18.153699 #9244] DEBUG -- socket[22eaa40]: sent 68 bytes
D, [2016-09-16T08:20:18.197010 #9244] DEBUG -- socket[22eaa40]: read 84 bytes
D, [2016-09-16T08:20:18.197010 #9244] DEBUG -- socket[22eaa40]: received packet nr 4 type 51 len 60
D, [2016-09-16T08:20:18.197010 #9244] DEBUG -- net.ssh.authentication.session[1b16194]: allowed methods: publickey,password,keyboard-interactive
D, [2016-09-16T08:20:18.197010 #9244] DEBUG -- net.ssh.authentication.methods.none[1b123e4]: none failed
D, [2016-09-16T08:20:18.197010 #9244] DEBUG -- net.ssh.authentication.session[1b16194]: trying publickey
D, [2016-09-16T08:20:18.198010 #9244] DEBUG -- net.ssh.authentication.agent[1afb1d0]: connecting to ssh-agent
D, [2016-09-16T08:20:18.199028 #9244] DEBUG -- net.ssh.authentication.agent[1afb1d0]: sending agent request 1 len 44
D, [2016-09-16T08:20:18.199028 #9244] DEBUG -- net.ssh.authentication.agent[1afb1d0]: received agent packet 2 len 5
D, [2016-09-16T08:20:18.200040 #9244] DEBUG -- net.ssh.authentication.agent[1afb1d0]: sending agent request 11 len 0
D, [2016-09-16T08:20:18.200040 #9244] DEBUG -- net.ssh.authentication.agent[1afb1d0]: received agent packet 12 len 5
D, [2016-09-16T08:20:18.201030 #9244] DEBUG -- net.ssh.authentication.methods.publickey[1afbcbc]: trying publickey (0c:52:8f:4b:c7:2a:c1:f4:e8:49:6f:60:03:db:89:32)
D, [2016-09-16T08:20:18.201030 #9244] DEBUG -- socket[22eaa40]: queueing packet nr 5 type 50 len 604
D, [2016-09-16T08:20:18.202015 #9244] DEBUG -- socket[22eaa40]: sent 628 bytes
D, [2016-09-16T08:20:18.263608 #9244] DEBUG -- socket[22eaa40]: read 580 bytes
D, [2016-09-16T08:20:18.264391 #9244] DEBUG -- socket[22eaa40]: received packet nr 5 type 60 len 556

DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO retryable: Retryable exception raised: #<ArgumentError: Could not parse PKey: no start line>
 INFO interface: warn: Waiting for cleanup before exiting...

D:\projects\living\vagrant\QA> INFO interface: warn: ==> QA-01: Waiting for cleanup before exiting...
==> QA-01: Waiting for cleanup before exiting...
ERROR warden: Error occurred: Vagrant exited after cleanup due to external interrupt.
 INFO warden: Beginning recovery process...
 INFO warden: Calling recover: #<VagrantPlugins::DigitalOcean::Actions::Create:0x2d117c0>
 INFO warden: Recovery complete.
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
ERROR warden: Error occurred: Vagrant exited after cleanup due to external interrupt.
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
ERROR warden: Error occurred: Vagrant exited after cleanup due to external interrupt.
 INFO warden: Beginning recovery process...
 INFO warden: Calling recover: #<Vagrant::Action::Builtin::Call:0x4ae5df8>
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
 INFO warden: Recovery complete.
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
 INFO environment: Released process lock: machine-action-3e70df3c86b9cb97d5ec0f7a08bde703
 INFO environment: Running hook: environment_unload
 INFO runner: Preparing hooks for middleware sequence...
 INFO runner: 1 hooks defined.
 INFO runner: Running action: environment_unload #<Vagrant::Action::Builder:0x33f2028>
ERROR vagrant: Vagrant experienced an error! Details:
ERROR vagrant: #<Vagrant::Errors::VagrantInterrupt: Vagrant exited after cleanup due to external interrupt.>
ERROR vagrant: Vagrant exited after cleanup due to external interrupt.
jeusdi commented 8 years ago

I've aleary solved it.

The problem was related on private key format. It was generted using PuttyGen, and it generates keys pair using its format. You need to convert them to OpenSSH format.