marsbard / puppet-alfresco

A puppet build script for Alfresco
MIT License
25 stars 11 forks source link

puppet httpd module 'negative dependencies' #63

Open marsbard opened 9 years ago

marsbard commented 9 years ago

I think this is due to being called twice when it's not supposed to be. Or something. Successive applications seem to alternately have the error, then not.

Warning: /etc/apache2/sites-available: appears to have a negative number of dependencies
Warning: 15-default.conf: appears to have a negative number of dependencies
Warning: Concat[15-default.conf]: appears to have a negative number of dependencies
Warning: Apache::Vhost[default]: appears to have a negative number of dependencies
Warning: /Stage[main]/Apache/Apache::Vhost[default]/File[15-default.conf symlink]: appears to have a negative number of dependencies
Warning: Apache::Vhost[default]: appears to have a negative number of dependencies
Warning: /etc/apache2/sites-available: appears to have a negative number of dependencies
Warning: 25-honeycomb.conf: appears to have a negative number of dependencies
Warning: Concat[25-honeycomb.conf]: appears to have a negative number of dependencies
Warning: /etc/apache2/sites-available: appears to have a negative number of dependencies
Warning: 10-honeycomb_80.conf: appears to have a negative number of dependencies
Error: /Stage[main]/Apache::Service/Service[httpd]: Failed to call refresh: Could not start Service[httpd]: Execution of '/etc/init.d/apache2 start' returned 1: 
Error: /Stage[main]/Apache::Service/Service[httpd]: Could not start Service[httpd]: Execution of '/etc/init.d/apache2 start' returned 1: 
digcat commented 9 years ago

This is a known issue https://tickets.puppetlabs.com/si/jira.issueviews:issue-html/MODULES-2054/MODULES-2054.html

marsbard commented 9 years ago

It's interesting but I'm not sure that opening the issue again is useful, there is a comment:

As a temporary work-around upgrading to puppetlabs-apache 1.4.1 which correctly pins to concat < 2.0.0 should resolve the issue. This seems to be some sort of interaction between the puppetlabs-apache module and PE specifically (works fine on Puppet open source), and will need further investigation before the apache module supports concat 2.0.0.

but we are using puppetlabs-apache 1.4.1 and it doesn't pin to concat < 2.0.0. Perhaps I could force concat < 2.0.0 but at some point it will need to be revisited probably. Is it better than what we have already, which is to check if one of the files it creates is on the system and skip apache config if it is? Hard to say.

digcat commented 9 years ago

fair enough, so this would be if we moved to puppet 2, will close it for now. cheers

marsbard commented 9 years ago

ah well I was just working on it, so I will reopen it for now to see if pinning to concat 1.2.2 fixes

marsbard commented 9 years ago

fixed in e530e38

marsbard commented 8 years ago

Maybe we can revisit this and see if it's still necessary to pin the version?