Comments (8)
@cballew I am not sure I fully understand what it is exactly that you are seeing. If you want to install the headers
apache module you will want to include the recipe apache2::mod_headers
in your run_list or wrapper cookbook.
from apache2.
@cballew it would also be helpful if you gisted the output of that chef run so we could see a little bit more about what's happening.
from apache2.
[2014-06-04T17:19:16-04:00] WARN: Cloning resource attributes for service[apache
2] from prior resource (CHEF-3694)
[2014-06-04T17:19:16-04:00] WARN: Previous service[apache2]: /var/chef/cache/coo
kbooks/apache2/recipes/default.rb:188:in `from_file'
[2014-06-04T17:19:16-04:00] WARN: Current service[apache2]: /var/chef/cache/coo
kbooks/apache2/recipes/logrotate.rb:20:in `from_file'
[2014-06-04T17:19:34-04:00] ERROR: Running exception handlers
[2014-06-04T17:19:34-04:00] ERROR: Exception handlers complete
[2014-06-04T17:19:34-04:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2014-06-04T17:19:34-04:00] ERROR: service[apache2] (apache2::default line 188) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of /sbin/service httpd start ----
STDOUT: Starting httpd: [FAILED]
STDERR: httpd: Syntax error on line 140 of /etc/httpd/conf/httpd.conf: Could not open configuration file /etc/httpd/mods-enabled/headers.load: No such file or directory
---- End output of /sbin/service httpd start ----
[2014-06-04T17:19:34-04:00] ERROR: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
[2014-06-04T17:19:34-04:00] ERROR: Sleeping for 1800 seconds before trying again
I get this even if the headers recipe is not in the run.
OK, easy to see the file is missing, but I don't see anything in the recipes that puts it there. I see a template for the file, but I see no template statement in a recipe to put it there.
from apache2.
hm.. looks like a dangling symlink named /etc/httpd/mods-enabled/headers.load
to a file that doesn't exist.
from apache2.
@cballew headers is not a default module, so it should not be invoked at all on default run of apache2::default.
I cannot reproduce this on a fresh centos 6.5* vm. Please post your run list and the full output of the chef run so I can try to reproduce it.
*edited because I accidentally switched numbers around.
from apache2.
svanzoest is correct, it was dangling symlinks that do not get cleaned up if you remove a module. that was the problem, thanks.
from apache2.
If you are move a module (using the apache_module
) definition), it would remove the mods-enabled
symlink, but it should not touch the load file in mods-available
. This seems to suggest that somehow the file in mods-available
got deleted.
from apache2.
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.
from apache2.
Related Issues (20)
- Amazon 2018 install broken with PR#688 HOT 1
- PIDFILE is not rendered in /etc/sysconfig/httpd HOT 2
- Enable template_cookbook property in default apache2_install
- ServerName directive absent from apache2.conf.erb HOT 2
- Allow passing arbitrary variables to conf templates via apache2_conf
- problem with apache2 HOT 2
- Infinite loop from apache2_mod_auth_cas and apache2_module 'auth_cas' resources HOT 28
- chef_version constraint is not accurate. HOT 2
- apache2 Chef-17 compatability HOT 1
- The default_site resource does not support custom variables
- The default_site resource property site_action does not work
- Unable to override options for security and charset configurations with install resource
- Package mod_ldap not installed on Centos if you enable mod_ldap
- Option to config using different instance name HOT 1
- Apache
- apache2_module breaks authz_svn module loading HOT 3
- Apache
- apache_mod_php_filename and apache_mod_php_modulename incompatible with Ubuntu 22.04 HOT 2
- pkg.apache2
- Dependency Dashboard
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apache2.