Skip to content
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

opsworks_ganglia fails the setup on ubuntu 14.04 #363

Open
anarcher opened this issue Jan 7, 2016 · 3 comments
Open

opsworks_ganglia fails the setup on ubuntu 14.04 #363

anarcher opened this issue Jan 7, 2016 · 3 comments

Comments

@anarcher
Copy link

anarcher commented Jan 7, 2016

Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe. You need to recompile PHP.
AH00013: Pre-configuration failed

How do I change the configuration of apache and PHP or Can I do ignore the setup of apache?

Thanks,


================================================================================
Error executing action `restart` on resource 'service[apache2]'
================================================================================


Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '1'
---- Begin output of sleep 1 && /etc/init.d/apache2 restart && sleep 1 ----
STDOUT: * Restarting web server apache2
...fail!
* The apache2 configtest failed.
STDERR: Output of config test was:
[Thu Jan 07 13:04:43.154180 2016] [:crit] [pid 18547:tid 140585416689536] Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe.  You need to recompile PHP.
AH00013: Pre-configuration failed
Action 'configtest' failed.
The Apache error log may have more information.
---- End output of sleep 1 && /etc/init.d/apache2 restart && sleep 1 ----
Ran sleep 1 && /etc/init.d/apache2 restart && sleep 1 returned 1


Resource Declaration:
---------------------
# In /var/lib/aws/opsworks/cache.stage2/cookbooks/opsworks_ganglia/recipes/configure-server.rb

86: service "apache2" do
87:   action :restart
88: end



Compiled Resource:
------------------
# Declared in /var/lib/aws/opsworks/cache.stage2/cookbooks/opsworks_ganglia/recipes/configure-server.rb:86:in `from_file'

service("apache2") do
provider Chef::Provider::Service::Debian
action [:restart]
supports {:restart=>true, :reload=>true, :status=>true, :start=>true}
retries 0
retry_delay 2
service_name "apache2"
enabled true
pattern "apache2"
restart_command "sleep 1 && /etc/init.d/apache2 restart && sleep 1"
reload_command "sleep 1 && /etc/init.d/apache2 reload && sleep 1"
cookbook_name "opsworks_ganglia"
recipe_name "configure-server"
end
@wbingli
Copy link
Contributor

wbingli commented Jan 7, 2016

The ganglia works for me on Ubuntu. Could you give more information how to reproduce it? Do you use any custom cookbooks?

@anarcher
Copy link
Author

anarcher commented Jan 8, 2016

Thanks for the reply.
On ubuntu 12.04 with Chef 11.10.4, the recipe works as well. But on ubuntu 14.04 with Chef 11.10.4, The apache/PHP issue was raised. I don't use any custom cookbooks.

@wbingli
Copy link
Contributor

wbingli commented Jan 8, 2016

Hmmm, Ubuntu 12.04 and 14.04 works for me on ganglia layer. Can you still reproduce it by launching a new instance? Can you send me your instance id I may can help to take a look?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants