-
Notifications
You must be signed in to change notification settings - Fork 89
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
Timeout while executing tugboat wait #71
Comments
Hi! Good idea, we could probably up the default timeout as well in the Was this a one-off issue or did it happen consistently? |
DO can occasionally take a really long time to make droplet event changes, it's pretty irregular. Totally agree we should do a timeout here, and probably raise the default as it is to 500-600. |
Also, configuration in the |
Haven't done much work on tugboat for a while, so I'll pick this up over the weekend 👍 |
This would be wonderful, as I regularly run into a similar issue which could be addressed via passing timeout options to faraday:
|
Wow, this is over 2 years old now, should probably get to to work on this! @rockymadden Just curious, how long did it take for the machine to come up in the end did you ever find out? |
@rockymadden Also, can you give me an example of something that triggers a timeout? I think I've fixed the issue but it's hard to write tests for! |
@petems The droplets came up in a timely fashion (e.g. ~60 seconds), but I have all the logs in CircleCI, and I can turn the logging up on tugboat and send along those to you when I run across it next if that would help. :) You can kinda get a picture of what we are doing here: TL;DR: Each GitHub push/commit we use CircleCI to create a minimally representative version of the cloud on DO, run tests to ensure they pass, and then destroy the cloud on DO. Because the CircleCI lifecycle does not have all the features we need, I made the equivalent in bash (e.g. I want a teardown step to always destroy the cloud, we have different cloud types we need to test for, etc). |
Ah ok. I tried turning a droplet off and trying to get digitalocean to timeout on that, but that seems ok. It might be the size of the droplet means the requests take more than the default 10 seconds, let me try making a biiiiiig droplet to see if I can recreate the issue! BTW, Fog now has API 2.0 support for DO so it might be better for what you're trying to do here? Tugboat is more of a cli tool, it might be better to abstract your script to Fog? |
I still can't recreate, even when trying a 16GB droplet:
What image are you using to create it, is it something custom? |
I am still able to semi-reliably recreate the issue. Let me do this, I'll create an ad-hoc public circleci repo that shows the behavior in a repeatable fashion (and give you repo/circleci access, if you wish). I can then include your timeout changes to see if it fixes it. Hopefully we can make a test for it in tugboat itself from what we learn. |
Got some basic ideas for having timeout as a config option here, should finish work on it soon: https://github.com/pearkes/tugboat/tree/allow_timeout_setting |
Timeout setting added in #281, and 4.0.0 switches to DropletKit which anecdotally seems to fix some of the timeout issues. This is fairly old so I'm going to close this one for now. If this is still an issue can you open a new issue for me and we can work further on it. |
Hi
I am having the following error:
It would be very useful if the timeout parameter could be modified on the command line.
tugboat wait do6.example.com --timeout 300 --state active
Thank you
The text was updated successfully, but these errors were encountered: