docker-machine-vultr icon indicating copy to clipboard operation
docker-machine-vultr copied to clipboard

Creating docker machine hangs on 'Waiting machine to be running'

Open annacorobco opened this issue 5 years ago • 6 comments

Creating docker machine hangs on 'Waiting machine to be running':

Running pre-create checks... (test-test.new) Validating Vultr VPS parameters... Creating machine... (test-test.new) Creating Vultr VPS (test-test.new) Waiting for IP address to become available... (test-test.new) Created Vultr VPS ID: 17638002, Public IP: 45.76.62.159, Private IP: Waiting for machine to be running, this may take a few minutes... Error creating machine: Error waiting for machine to be running: Maximum number of retries (60) exceeded

Container is created and its status becomes 'running' even before the docker-machine command fails. And in the vultr UI I can see it. Also I can ssh to the container.

Command: docker-machine create --driver vultr --vultr-tag test-test.new --vultr-api-key=xxxxx --vultr-os-id=215 -vultr-region-id 6 --vultr-plan-id=201 test-test.new OS: (tried both) Ubuntu 16.04 or Ubuntu 18.04 Driver: (tried both) https://github.com/janeczku/docker-machine-vultr/releases/download/v1.3.0/docker-machine-driver-vultr-Linux-x86_6 or https://github.com/janeczku/docker-machine-vultr/releases/download/v1.4.0/docker-machine-driver-vultr-Linux-x86_6 Docker-machine: (tried both) v. 0.15.0, build b48dc28d or 0.14.0, build 89b8332

annacorobco avatar Aug 02 '18 13:08 annacorobco

Same here,
docker-machine create --driver=vultr --vultr-tag odoo-vultr-1404.com --vultr-api-key 'U5H43FVNDZXPCRT7GTLMKBT7NL6BAECWRW7A' --vultr-os-id '160' --vultr-region-id '6' --vultr-plan-id '201' odoo-vultr-1404.com

Running pre-create checks... (odoo-vultr-1404.com) Validating Vultr VPS parameters... Creating machine... (odoo-vultr-1404.com) Creating Vultr VPS (odoo-vultr-1404.com) Waiting for IP address to become available... (odoo-vultr-1404.com) Created Vultr VPS ID: 17779292, Public IP: 144.202.24.242, Private IP: Waiting for machine to be running, this may take a few minutes... Error creating machine: Error waiting for machine to be running: Maximum number of retries (60) exceeded The default lines below are for a sh/bash shell, you can specify the shell you're using, with the --shell flag.

optimum-web avatar Aug 07 '18 10:08 optimum-web

+1

h0h0h0 avatar Nov 18 '18 17:11 h0h0h0

+1

OS: Windows 10

logiclabs avatar Nov 30 '18 14:11 logiclabs

I had this same issue but I got it working - eventually. I think its an SSH issue which means the connection drops midway hence the timeouts. These are the steps that resolved it for me - I'm not 100% if all are necessary...

  1. Create Machine:
docker-machine create --driver vultr --vultr-api-key=<KEY> --vultr-region-id=8 --vultr-os-id=215 ubuntu

This will now time out with the error message above...

  1. Stop the machine from the server or command docker-machine stop ubuntu

  2. Start the machine with command docker-machine start ubuntu

  3. SSH onto your machine: ssh root@<IP-get-it-from-Vultr> and run:

apt-get update
apt-get upgrade
  1. Regenerate certificates:
 docker-machine regenerate-certs ubuntu

Regenerating TLS certificates
Waiting for SSH to be available...
Detecting the provisioner...
Installing Docker...
Copying certs to the local machine directory...
Copying certs to the remote machine...
Setting Docker configuration on the remote daemon...

Now you should correctly have the docker daemon running.

I had to do this a few times, so try again from scratch if you can't get it running.

Versions: driver 1.4 docker-machine 0.16.1 (running from a mac)

benscabbia avatar Mar 30 '19 13:03 benscabbia

Also having this issue on Ubuntu

tobiasmuehl avatar May 13 '19 16:05 tobiasmuehl

@benscabbia your solution helped. thank you!

paveli avatar Dec 26 '19 15:12 paveli