Giter Site home page Giter Site logo

Comments (8)

svanzoest avatar svanzoest commented on June 4, 2024

@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.

drpebcak avatar drpebcak commented on June 4, 2024

@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.

cballew avatar cballew commented on June 4, 2024
[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.

svanzoest avatar svanzoest commented on June 4, 2024

hm.. looks like a dangling symlink named /etc/httpd/mods-enabled/headers.load to a file that doesn't exist.

from apache2.

drpebcak avatar drpebcak commented on June 4, 2024

@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.

cballew avatar cballew commented on June 4, 2024

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.

svanzoest avatar svanzoest commented on June 4, 2024

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.

lock avatar lock commented on June 4, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.