-
-
Notifications
You must be signed in to change notification settings - Fork 548
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
mod_unique_id cause Apache to fail restart on first coverge #259
Comments
Forgot to add this is on Centos 6.5 |
I'm encountering this issue on Amazon Linux too. In my case I'm adding some extra modules by setting the following attribute in my wrapper cookbook:
The problem with my use case is that I'm trying to use this to build an AMI using Packer, the build fails and manually fixing by running I've seen it work a few times without modification though, it's almost like there is some sort of race condition (in my case anyway). |
Doh, if I'd have read your original issue fully I'd have realised that you've already suggested that this looks like some sort of timing issue. |
Yes, |
@rosstimson I notice you're not including |
@niven01 I removed every module and started adding them back in one by one. The downside of this is a realised that the issue was caused by my custom mod_security module that I had created in my fork that looks like so: case node['platform_family']
when 'rhel'
package 'mod_security' do
action :install
notifies :run, resources(execute: 'generate-module-list'), :immediately
end
file "#{node['apache']['dir']}/conf.d/mod_security.conf" do
action :delete
backup false
end
end
apache_module 'security2' do
conf true
end I can also, consistently, replicate the same problem by including the |
Since you are seeing this on centos 6.5, I assume this is with apache httpd 2.2? Do we see the same issue on centos 7? |
Hi @svanzoest indeed, this is with httpd 2.2. We have not tried with CentOS 7. |
Yeah, Amazon Linux is using httpd 2.2 as well. Not had a chance to try this with CentOS 7. |
Just tried Centos7 and it is succeeding every time (so far) |
This seems to be an issue with the 2.2 init scripts. We did remove a We clearly do not need it on the newer platforms, but it seems like |
I believe this should fix it - it seems like this is only being experienced on rhel systems. |
I'm still seeing this exact issue on Apache 2.2/Centos 6.5, using the latest 3.1.0 version of this cookbook. As described in original post, the parent apache process is killed, but a bunch of zombie apache processes are still running, binding the ports, preventing a restart without a killall httpd. |
@gitgc what happens when you run |
I am having this issue using latest version of this cookbook as well. When I adjust the restart/reload lines to be as follows, all is well (I'm not saying it's the right thing to do... just that it resolves my issue):
|
Just like to add this is still happening with 3.1.0 version of this cookbook for me |
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. |
Hello,
I've encountered a problem after introducing unique_id where Apache fails to restart.
The work around at this moment is a
killall httpd
and re run chef-clientThis can be reproduced in test-kitchen by just including two recipes:
The behavior seen is that httpd is stopped but only the master process is killed. There are a bunch of httpd orphans still sitting there listening on 80 and 443
When Apache tries to start it fails as ports are already in use.
Every now and then it will succeed which suggests to me this maybe a timing issue and that httpd start is happening before the stop has completed.
Error:
The text was updated successfully, but these errors were encountered: