doctl icon indicating copy to clipboard operation
doctl copied to clipboard

`doctl compute droplet create --wait` is not waiting long enough

Open samuelstroschein opened this issue 4 years ago • 0 comments

Describe the Issue:

I am using GitHub workflows to provision new droplets. After creating the droplet and trying to SSH into it, I always got a connection refused' error. Trying to SSH into the newly created droplet on my local machine worked. Therefore, I thought it had to do with the GitHub environment. Turns out the --wait flag simply does not wait till the server is ready to accept a connection which I expected. It might be no bug but either clearly mention it in the documentation or change the --wait flag to test whether the droplet is ready to accept a connection. The workaround is to naively wait for X seconds after the droplet has been created.

Environment:

samuelstroschein avatar Jul 07 '21 10:07 samuelstroschein