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
apache2 service only_if guard timeout exceeded: default.rb::line 36 #238
Comments
Hi @greenreign, |
|
[public_ip] and [Host_Name]'s are a valid public IP and hostname. |
It's a basic default run of the recipe other than the virtual hosts and adding mod_proxy and mod_proxy_http. I'll admit I'm messing around with the virtual hosts and I don't understand them that well. |
thanks. my gut feeling says that the delay is related to the proxy setup, but I haven't written any tests for that yet. |
See a glaring issue here?
|
Did you find out any more why it takes so long to do a config test? |
Thank you. I didn't find out what was causing the slow response. To add to the details: I did not have a problem when running on Amazon Linux from AWS. It was only too slow when running on my local Centos Vagrant virt. |
Code above will fix that issue. |
@podwhitehawk removing the timeout means it may spin for a significant amount of time and possibly pile up with no recourse on productions. Are you saying that 10 seconds is not enough? |
@svanzoest I think that timeouting check operation is a bad idea. You have encountered that already with 2 seconds. And will encounter with 10 seconds again sooner or later. |
@podwhitehawk it is more related to performance and having the chef run halt, causing later recipes in the run_list to not run. There is no negative in just moving on and trying again at the next convergence. |
@svanzoest it will never halt, it's not time dependent at all. So it will end convergence minute or two later and it's not deathly. |
@podwhitehawk I agree. Just need to create a test case to ensure this behavior. |
@svanzoest I've already tried that piece of code with slow notebook drive like I've described before. |
@podwhitehawk we should add it as a serverspec test. |
@svanzoest I'm trying to undrestand how to check it, but no luck. |
@podwhitehawk I would use test kitchen and update the serverspec tests in |
The more I think about this is that what happens when the test never completes? Do we really have a case where it does not complete in 10 seconds? Ultimately there needs to be a time out somewhere. I do not really have the time to test this out, so feel free to reopen this if someone has an example and we can actually confirm what the behavior is when the test never completes. |
I'm seeing two things that can mitigate this problem. Doing both would be ideal. One, There are a lot of apache config files and it would be tricky to exactly the same trick with apache, but maybe something else could be done, just as only running Two, I would suggest if you must put a timeout, set it really high, like 3 minutes. That way it acts as an absolutely last resort measure. |
I'm experiencing this issue when I run test kitchen in a Vagrant - Virtual Box instance. In my test environment Apache has quite a lot of Virtual Hosts configured (around 360). When running the tests in an AWS instance they pass w/o issue but my local machine and thus the Virtual Box VM is not fas enough and the converge process fails.
Can you make this timeout configurable? I would like to set it to 20 seconds on my local machine but keep it as 10 seconds on the AWS instances or when the recipe is run in an actual server. |
The issue still exists, is there anyway we can increase the default timeout ? |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Script timed out running httpd -t
When I run the script from the box it returns
Syntax OK
But it always takes about 5 seconds. Can you make the timeout on the only_if guard longer or configurable? see default.rb::line 36
The text was updated successfully, but these errors were encountered: