Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker machine fails to create multiple servers at the same time #26

Closed
AnTuanHa opened this issue Jun 22, 2017 · 6 comments
Closed

Docker machine fails to create multiple servers at the same time #26

AnTuanHa opened this issue Jun 22, 2017 · 6 comments

Comments

@AnTuanHa
Copy link

AnTuanHa commented Jun 22, 2017

Hi, I'm trying to simultaneously create multiple Vultr servers using docker-machine at the same time, but I get the following error:

(testmachine2) Validating Vultr VPS parameters...
Running pre-create checks...
(testmachine1) Validating Vultr VPS parameters...
Creating machine...
Creating machine...
(testmachine1) Creating Vultr VPS
(testmachine2) Creating Vultr VPS
(testmachine2) Waiting for IP address to become available...
Error creating machine: Error in driver during machine creation: Post https://api.vultr.com/v1/server/create?api_key=API_KEY: http: ContentLength=176 with Body length 0
(testmachine2) Created Vultr VPS ID: XXXXXXX, Public IP: XX.XX.XXX.XXX, Private IP: 
Waiting for machine to be running, this may take a few minutes...
Detecting operating system of created instance...

I ran the following bash script

docker-machine create --driver vultr \
    --vultr-api-key API_KEY \
    --vultr-region-id=19 \
    --vultr-plan-id=201 \
    --vultr-os-id=215 \
    --vultr-private-networking=false \
    --vultr-backups=false \
    --vultr-ssh-user=root \
    --vultr-ipv6=false \
    testmachine1 &
docker-machine create --driver vultr \
    --vultr-api-key API_KEY \
    --vultr-region-id=19 \
    --vultr-plan-id=201 \
    --vultr-os-id=215 \
    --vultr-private-networking=false \
    --vultr-backups=false \
    --vultr-ssh-user=root \
    --vultr-ipv6=false \
    testmachine2 &

Could this be related to issue #12 regarding Vultr's API rate limit to 2 requests per second? It seems that v1.0.7 has implemented retry logic for API rate limit errors, but I'm not entirely sure if it's working, or if this problem is related to the API rate limit problem.

janeczku added a commit to janeczku/vultr that referenced this issue Jul 4, 2017
When POST request was retried it threw a „Body length 0“ error. See janeczku/docker-machine-vultr#26

Signed-off-by: janeczku <jan@rancher.com>
@janeczku
Copy link
Owner

janeczku commented Jul 4, 2017

Thanks for the report @Zero57. Submitted a fix in the upstream library.

@samgurtman-zz
Copy link

Now that it's merged upstream what are the chances of getting a new build based off a snapshot?

@AnTuanHa
Copy link
Author

@janeczku Any updates?

@janeczku
Copy link
Owner

@Zero57 I'll cut a new release by the end of the week.

@tja
Copy link

tja commented Aug 10, 2017

@janeczku Any news on this one? Thanks for your work!

@janeczku
Copy link
Owner

Fixed in v1.4.0 https://github.com/janeczku/docker-machine-vultr/releases/tag/v1.4.0.
Sorry for the delay 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants