-
Notifications
You must be signed in to change notification settings - Fork 189
Open
Labels
Type: BugDoes not work as expected.Does not work as expected.
Description
Stuck with rabbitmq failing....
Before I get into the details, a couple of things I needed to do on a fresh Centos 7 install:
- I had only done a base install, but "private-chef-ctl reconfigure" failed until I installed httpd, then ran a system update and rebooted.
- I was then getting a hanging behavior here:
* link[/opt/opscode/init/couchdb] action create
- create symlink at /opt/opscode/init/couchdb to /opt/opscode/embedded/bin/sv
- configure service runit_service[couchdb]
* link[/opt/opscode/service/couchdb] action create
- create symlink at /opt/opscode/service/couchdb to /opt/opscode/sv/couchdb
- After some digging, it became apparent that I was missing the "erlang" package, which was not available at the CentOS 7 repository. I added the EPEL 7 repo file, then installed "erlang".... that seemed to get me past this portion.
- Now I'm stuck here:
Recipe: private-chef::rabbitmq
* runit_service[rabbitmq] action enableRecipe: <Dynamically Defined Resource>
* directory[/opt/opscode/sv/rabbitmq] action create (up to date)
* template[/opt/opscode/sv/rabbitmq/run] action create (up to date)
* directory[/opt/opscode/sv/rabbitmq/log] action create (up to date)
* directory[/opt/opscode/sv/rabbitmq/log/main] action create (up to date)
* template[/opt/opscode/sv/rabbitmq/log/run] action create (up to date)
* template[/opt/opscode/sv/rabbitmq/log/config] action create (up to date)
* link[/opt/opscode/init/rabbitmq] action create (up to date)
- configure service runit_service[rabbitmq]
Recipe: private-chef::rabbitmq
* execute[/opt/opscode/bin/private-chef-ctl start rabbitmq] action run
================================================================================
Error executing action `run` on resource 'execute[/opt/opscode/bin/private-chef-ctl start rabbitmq]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '1'
---- Begin output of /opt/opscode/bin/private-chef-ctl start rabbitmq ----
STDOUT: warning: rabbitmq: unable to open supervise/ok: file does not exist
STDERR:
---- End output of /opt/opscode/bin/private-chef-ctl start rabbitmq ----
Ran /opt/opscode/bin/private-chef-ctl start rabbitmq returned 1
Resource Declaration:
---------------------
# In /opt/opscode/embedded/cookbooks/private-chef/recipes/rabbitmq.rb
79: execute "#{opc_ctl} start rabbitmq" do
80: retries 20
81: end
82:
Compiled Resource:
------------------
# Declared in /opt/opscode/embedded/cookbooks/private-chef/recipes/rabbitmq.rb:79:in `from_file'
execute("/opt/opscode/bin/private-chef-ctl start rabbitmq") do
action "run"
retries 0
retry_delay 2
command "/opt/opscode/bin/private-chef-ctl start rabbitmq"
backup 5
returns 0
cookbook_name :"private-chef"
recipe_name "rabbitmq"
end
Running handlers:
[2014-11-21T12:15:45-05:00] ERROR: Running exception handlers
Running handlers complete
[2014-11-21T12:15:45-05:00] ERROR: Exception handlers complete
[2014-11-21T12:15:45-05:00] FATAL: Stacktrace dumped to /opt/opscode/embedded/cookbooks/cache/chef-stacktrace.out
Chef Client failed. 2 resources updated in 51.528969427 seconds
[2014-11-21T12:15:45-05:00] ERROR: execute[/opt/opscode/bin/private-chef-ctl start rabbitmq] (private-chef::rabbitmq line 79) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of /opt/opscode/bin/private-chef-ctl start rabbitmq ----
STDOUT: warning: rabbitmq: unable to open supervise/ok: file does not exist
STDERR:
---- End output of /opt/opscode/bin/private-chef-ctl start rabbitmq ----
Ran /opt/opscode/bin/private-chef-ctl start rabbitmq returned 1
[2014-11-21T12:15:45-05:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
- I installed "librabbitmq", "librabbitmq-devel", and "rabbitmq-server", rebooted, then reinstalled "private-chef (11.1.6). Ditched this version and downloaded 12, since I am getting to the same place.
- Version 12 is the same.... hangs here:
* directory[/opt/opscode/sv/rabbitmq/log/main] action create
- create new directory /opt/opscode/sv/rabbitmq/log/main
- change mode from '' to '0755'
* template[/opt/opscode/sv/rabbitmq/log/run] action create
- create new file /opt/opscode/sv/rabbitmq/log/run
- update content in file /opt/opscode/sv/rabbitmq/log/run from none to 0e09b8
--- /opt/opscode/sv/rabbitmq/log/run 2014-11-21 13:07:03.303442999 -0500
+++ /tmp/chef-rendered-template20141121-1933-1l5gq9c 2014-11-21 13:07:03.305442999 -0500
@@ -1 +1,4 @@
+#!/bin/sh
+exec chpst -U opscode -u opscode \
+ svlogd -tt /var/log/opscode/rabbitmq
- change mode from '' to '0755'
* template[/opt/opscode/sv/rabbitmq/log/config] action create
- create new file /opt/opscode/sv/rabbitmq/log/config
- update content in file /opt/opscode/sv/rabbitmq/log/config from none to e3b0c4
(no diff)
- change mode from '' to '0644'
* link[/opt/opscode/init/rabbitmq] action create
- create symlink at /opt/opscode/init/rabbitmq to /opt/opscode/embedded/bin/sv
- configure service runit_service[rabbitmq] * link[/opt/opscode/service/rabbitmq] action create
- create symlink at /opt/opscode/service/rabbitmq to /opt/opscode/sv/rabbitmq
Just hangs right here....
Metadata
Metadata
Assignees
Labels
Type: BugDoes not work as expected.Does not work as expected.