Coder Social home page Coder Social logo

Comments (11)

geneticgrabbag avatar geneticgrabbag commented on May 29, 2024

Since I don't see an OS specified in your message, can I assume it's deploying RancherOS?

from docker-machine-vultr.

twang2218 avatar twang2218 commented on May 29, 2024

@geneticgrabbag Oh, I'm sorry that I forgot providing the environment variables for the vultr driver. Here it is:

#!/bin/bash
# Install Vultr Driver: https://github.com/janeczku/docker-machine-vultr

export VULTR_API_KEY=<API_KEY>

# 1  - New Jersey
# 12 - Silicon Valley
# 19 - Sydney
# 25 - Tokyo
export VULTR_REGION=12

# Plan 29 - 768 MB RAM,15 GB SSD
export VULTR_PLAN=29

# 160 - Ubuntu 14.04 x64
# 215 - Ubuntu 16.04 x64
# 167 - CentOS 7 x64
export VULTR_OS=215

# IPv6
# export VULTR_IPV6=true

export MACHINE_DRIVER=vultr

Everytime I create a vultr host, I source this file first.

So, I was creating 768MB/15GB host with Ubuntu 16.04 OS in the Silicon Valley region.

from docker-machine-vultr.

geneticgrabbag avatar geneticgrabbag commented on May 29, 2024

@twang2218 ah, thanks.

i tried duplicating it and I get this:

% docker-machine create -d vultr -vultr-api-key=$VULTR_TOKEN --vultr-region-id=12 --vultr-os-id=215 --vultr-plan-id=29 v1
Running pre-create checks...
(v1) Validating Vultr VPS parameters...
Creating machine...
(v1) Creating Vultr VPS...
(v1) Waiting for IP address to become available...
(v1) Created Vultr VPS ID: 6475856, Public IP: 0.0.0.0, Private IP:
Waiting for machine to be running, this may take a few minutes...
Detecting operating system of created instance...
Waiting for SSH to be available...
Error creating machine: Error detecting OS: Too many retries waiting for SSH to be available.  Last error: Maximum number of retries (60) exceeded

I can log in via the Vultr console, but it fails with an SSH call from my terminal:

% ssh root@<ip-address>
Received disconnect from <ip-address>: 2: Too many authentication failures
Disconnected from <ip-address>

from docker-machine-vultr.

twang2218 avatar twang2218 commented on May 29, 2024

The version of my vultr driver was 1.0.6, and I updated to the latest, 1.1.0, the problem is same, here is the output with --debug option:

$ docker-machine --debug create -d vultr v1
Docker Machine Version:  0.9.0-rc2, build 7b19591
Found binary path at /usr/local/bin/docker-machine-driver-vultr
Launching plugin server for driver vultr
Plugin server listening at address 127.0.0.1:60469
() Calling .GetVersion
Using API Version  1
() Calling .SetConfigRaw
() Calling .GetMachineName
(flag-lookup) Calling .GetMachineName
(flag-lookup) Calling .DriverName
(flag-lookup) Calling .GetCreateFlags
Found binary path at /usr/local/bin/docker-machine-driver-vultr
Launching plugin server for driver vultr
Plugin server listening at address 127.0.0.1:60473
() Calling .GetVersion
Using API Version  1
() Calling .SetConfigRaw
() Calling .GetMachineName
(v1) Calling .GetMachineName
(v1) Calling .DriverName
(v1) Calling .GetCreateFlags
(v1) Calling .SetConfigFromFlags
Running pre-create checks...
(v1) Calling .PreCreateCheck
(v1) Validating Vultr VPS parameters...
(v1) Calling .GetConfigRaw
Creating machine...
(v1) Calling .Create
(v1) DBG | Generating SSH key...
(v1) Creating Vultr VPS...
(v1) Waiting for IP address to become available...
(v1) Created Vultr VPS ID: 6475975, Public IP: 0.0.0.0, Private IP:
(v1) Calling .GetConfigRaw
(v1) Calling .DriverName
(v1) Calling .DriverName
Waiting for machine to be running, this may take a few minutes...
(v1) Calling .GetState
(v1) Calling .GetState
(v1) Calling .GetState
(v1) Calling .GetState
(v1) Calling .GetState
(v1) Calling .GetState
(v1) Calling .GetState
(v1) Calling .GetState
(v1) Calling .GetState
(v1) Calling .GetState
(v1) Calling .GetState
(v1) Calling .GetState
(v1) Calling .GetState
(v1) Calling .GetState
(v1) Calling .GetState
Detecting operating system of created instance...
Waiting for SSH to be available...
Getting to WaitForSSH function...
(v1) Calling .GetSSHHostname
(v1) Calling .GetSSHPort
(v1) Calling .GetSSHKeyPath
(v1) Calling .GetSSHKeyPath
(v1) Calling .GetSSHUsername
Using SSH client type: external
Using SSH private key: /Users/taowang/.docker/machine/machines/v1/id_rsa (-rw-------)
&{[-F /dev/null -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none [email protected] -o IdentitiesOnly=yes -i /Users/taowang/.docker/machine/machines/v1/id_rsa -p 22] /usr/bin/ssh <nil>}
About to run SSH command:
exit 0
Password:

I think the reason is that Public IP is returned 0.0.0.0:

(v1) Created Vultr VPS ID: 6475975, Public IP: 0.0.0.0, Private IP:

So, that cause the ssh command is actually trying to connect to my laptop [email protected]. 😹

&{[-F /dev/null -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none [email protected] -o IdentitiesOnly=yes -i /Users/taowang/.docker/machine/machines/v1/id_rsa -p 22] /usr/bin/ssh <nil>}

Is there any API changes cause the problem?

from docker-machine-vultr.

geneticgrabbag avatar geneticgrabbag commented on May 29, 2024

@twang2218 - I can confirm the attempt to SSH as root into 0.0.0.0. I'm using driver v1.1.0 with docker machine v0.8.2 on OS/X v10.11.6.

from docker-machine-vultr.

jukkagrao avatar jukkagrao commented on May 29, 2024

Same problem with Public IP: 0.0.0.0 it has worked before on same system

from docker-machine-vultr.

dmitrym0 avatar dmitrym0 commented on May 29, 2024

Thanks for a wonderful plugin. It doesn't seem like it's been released yet. I tried to build it myself, but I"m not familiar with Go, so I failed. Is there any way to extract a build artifact from CircleCI?

from docker-machine-vultr.

jukkagrao avatar jukkagrao commented on May 29, 2024

Hi dmitrym0, there is my build for linux based system http://file.sampo.ru/q86239/ (tested on ubuntu)

from docker-machine-vultr.

janeczku avatar janeczku commented on May 29, 2024

@dmitrym0 New release is out, enjoy! https://github.com/janeczku/docker-machine-vultr/releases/tag/v1.2.0

from docker-machine-vultr.

bfosberry avatar bfosberry commented on May 29, 2024

Came across this, thanks for fixing!

from docker-machine-vultr.

dmitrym0 avatar dmitrym0 commented on May 29, 2024

Thank you so much, works great! 👍

from docker-machine-vultr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.