The relevant error is here:
---- Begin output of /sbin/service httpd restart ----
STDOUT: Stopping httpd: [ OK ]
Starting httpd: [FAILED]
STDERR: (98)Address already in use: make_sock: could not bind to address [::]:80
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
----
Is there something else listening on port 80?
Looks like this is the restart as part of the apache2 cookbook. Is this recipe included in your WordPress cookbook or are you calling it separately?
-Mobile Galen
HI ,
I'm getting below error while running wordpress cookbook.
Note: This error intermediate yestaday I ran 2 times it's went successful but today I'm facing this issue. please help to resolve this issue.
Chef-server : 12
Chef-clent : 11.16.4
wordpress - 2.1.3
* service[apache2] action restart
================================================================================
Error executing action `restart` on resource 'service[apache2]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '1'
---- Begin output of /sbin/service httpd restart ----
STDOUT: Stopping httpd: [ OK ]
Starting httpd: [FAILED]
STDERR: (98)Address already in use: make_sock: could not bind to address [::]:80
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
---- End output of /sbin/service httpd restart ----
Ran /sbin/service httpd restart returned 1
Resource Declaration:
---------------------
# In /var/chef/cache/cookbooks/apache2/recipes/default.rb
24: service 'apache2' do
25: service_name node['apache']['package']
26: case node['platform_family']
27: when 'rhel'
28: reload_command '/sbin/service httpd graceful'
29: when 'debian'
30: provider Chef::Provider::Service::Debian
31: when 'arch'
32: service_name 'httpd'
33: end
34: supports [:start, :restart, :reload, :status]
Compiled Resource:
------------------
# Declared in /var/chef/cache/cookbooks/apache2/recipes/default.rb:24:in `from_file'
service("apache2") do
action [:enable, :start]
updated true
supports {:restart=>true, :reload=>true, :status=>true, :start=>true}
retries 0
retry_delay 2
guard_interpreter :default
service_name "httpd"
enabled true
running true
pattern "apache2"
reload_command "/sbin/service httpd graceful"
cookbook_name "apache2"
recipe_name "default"
only_if "/usr/sbin/httpd -t"
end
Running handlers:
[2014-10-31T06:01:40+00:00] ERROR: Running exception handlers
Running handlers complete
[2014-10-31T06:01:40+00:00] ERROR: Exception handlers complete
[2014-10-31T06:01:40+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
Chef Client failed. 117 resources updated in 310.667384885 seconds
[2014-10-31T06:01:40+00:00] ERROR: service[apache2] (apache2::default line 24) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of /sbin/service httpd restart ----
STDOUT: Stopping httpd: [ OK ]
Starting httpd: [FAILED]
STDERR: (98)Address already in use: make_sock: could not bind to address [::]:80
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
---- End output of /sbin/service httpd restart ----
Ran /sbin/service httpd restart returned 1
[2014-10-31T06:01:40+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
Regards,
PullaReddy
TechOps
Archive powered by MHonArc 2.6.16.