Migration from Chef 11 to Chef 12 rc4 : error on rabbitmq

I’ve tried thrice to upgrade my chef-server from version 11 to the new release candidate 12rc4

I’ve been following the procedure found here : https://docs.getchef.com/server/install_server.html

And, each time, I get the following error :

  • execute[/opt/opscode/embedded/bin/chpst -u opscode -U opscode /opt/opscode/embedded/bin/rabbitmqctl wait /var/opt/opscode/rabbitmq/db/rabbit@localhost.pid] action run
    ================================================================================
    Error executing action run on resource ‘execute[/opt/opscode/embedded/bin/chpst -u opscode -U opscode /opt/opscode/embedded/bin/rabbitmqctl wait /var/opt/opscode/rabbitmq/db/rabbit@localhost.pid]’
    ================================================================================

Mixlib::ShellOut::ShellCommandFailed

Expected process to exit with [0], but received ‘2’
---- Begin output of /opt/opscode/embedded/bin/chpst -u opscode -U opscode /opt/opscode/embedded/bin/rabbitmqctl wait /var/opt/opscode/rabbitmq/db/rabbit@localhost.pid ----
STDOUT: Waiting for rabbit@localhost …
pid is 9687 …
STDERR: Error: process_not_running
---- End output of /opt/opscode/embedded/bin/chpst -u opscode -U opscode /opt/opscode/embedded/bin/rabbitmqctl wait /var/opt/opscode/rabbitmq/db/rabbit@localhost.pid ----
Ran /opt/opscode/embedded/bin/chpst -u opscode -U opscode /opt/opscode/embedded/bin/rabbitmqctl wait /var/opt/opscode/rabbitmq/db/rabbit@localhost.pid returned 2

Resource Declaration:

In /opt/opscode/embedded/cookbooks/private-chef/recipes/rabbitmq.rb

83: execute “#{rmq_ctl_chpost} wait #{rabbitmq_data_dir}/rabbit@localhost.pid” do
84: retries 10
85: end
86:

Compiled Resource:

Declared in /opt/opscode/embedded/cookbooks/private-chef/recipes/rabbitmq.rb:83:in `from_file’

execute("/opt/opscode/embedded/bin/chpst -u opscode -U opscode /opt/opscode/embedded/bin/rabbitmqctl wait /var/opt/opscode/rabbitmq/db/rabbit@localhost.pid") do
action "run"
retries 0
retry_delay 2
guard_interpreter :default
command "/opt/opscode/embedded/bin/chpst -u opscode -U opscode /opt/opscode/embedded/bin/rabbitmqctl wait /var/opt/opscode/rabbitmq/db/rabbit@localhost.pid"
backup 5
returns 0
cookbook_name :"private-chef"
recipe_name "rabbitmq"
end

Running handlers:
[2014-10-08T17:14:43+02:00] ERROR: Running exception handlers
Running handlers complete

[2014-10-08T17:14:43+02:00] ERROR: Exception handlers complete
[2014-10-08T17:14:43+02:00] FATAL: Stacktrace dumped to /opt/opscode/embedded/cookbooks/cache/chef-stacktrace.out
Chef Client failed. 4 resources updated in 33.50292022 seconds
[2014-10-08T17:14:43+02:00] ERROR: execute[/opt/opscode/embedded/bin/chpst -u opscode -U opscode /opt/opscode/embedded/bin/rabbitmqctl wait /var/opt/opscode/rabbitmq/db/rabbit@localhost.pid] (private-chef::rabbitmq line 83) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received ‘2’
---- Begin output of /opt/opscode/embedded/bin/chpst -u opscode -U opscode /opt/opscode/embedded/bin/rabbitmqctl wait /var/opt/opscode/rabbitmq/db/rabbit@localhost.pid ----
STDOUT: Waiting for rabbit@localhost …
pid is 9687 …
STDERR: Error: process_not_running
---- End output of /opt/opscode/embedded/bin/chpst -u opscode -U opscode /opt/opscode/embedded/bin/rabbitmqctl wait /var/opt/opscode/rabbitmq/db/rabbit@localhost.pid ----
Ran /opt/opscode/embedded/bin/chpst -u opscode -U opscode /opt/opscode/embedded/bin/rabbitmqctl wait /var/opt/opscode/rabbitmq/db/rabbit@localhost.pid returned 2
[2014-10-08T17:14:43+02:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

Any clue on this issue ? My server is running under Ubuntu 12.04 64 bits.

Regards,

Philippe Bérard
Responsable informatique
Tel : +33 (0)1 39 23 31 17
Mob : +33 (0)6 01 27 87 86
Fax : +33 (0)1 39 55 47 56
58, Rue Pottier
78150 Le Chesnay
www.jalios.com

We have different steps for the upgrade process, found here:

Also, of note for those upgrading from the Open Source server, some
additional info:

http://docs.getchef.com/upgrade_server_open_source_notes.html

On Wed, Oct 8, 2014 at 8:19 AM, Philippe Bérard philippe.berard@jalios.com
wrote:

I’ve tried thrice to upgrade my chef-server from version 11 to the new
release candidate 12rc4

I’ve been following the procedure found here :
Install the Chef Infra Server

And, each time, I get the following error :

  • execute[/opt/opscode/embedded/bin/chpst -u opscode -U opscode
    /opt/opscode/embedded/bin/rabbitmqctl wait /
    var/opt/opscode/rabbitmq/db/rabbit@localhost.pid] action run

================================================================================
Error executing action run on resource
'execute[/opt/opscode/embedded/bin/chpst -u opscode -U opscode
/opt/opscode/embedded/bin/rabbitmqctl wait /
var/opt/opscode/rabbitmq/db/rabbit@localhost.pid]'

================================================================================

Mixlib::ShellOut::ShellCommandFailed

Expected process to exit with [0], but received '2'
---- Begin output of /opt/opscode/embedded/bin/chpst -u opscode -U opscode
/opt/opscode/embedded/bin/rabbitmqctl wait /
var/opt/opscode/rabbitmq/db/rabbit@localhost.pid ----
STDOUT: Waiting for rabbit@localhost ...
pid is 9687 ...
STDERR: Error: process_not_running
---- End output of /opt/opscode/embedded/bin/chpst -u opscode -U opscode
/opt/opscode/embedded/bin/rabbitmqctl wait /
var/opt/opscode/rabbitmq/db/rabbit@localhost.pid ----
Ran /opt/opscode/embedded/bin/chpst -u opscode -U opscode
/opt/opscode/embedded/bin/rabbitmqctl wait /
var/opt/opscode/rabbitmq/db/rabbit@localhost.pid returned 2

Resource Declaration:

In /opt/opscode/embedded/cookbooks/private-chef/recipes/rabbitmq.rb

83: execute "#{rmq_ctl_chpost} wait #{rabbitmq_data_dir}/
rabbit@localhost.pid" do
84: retries 10
85: end
86:

Compiled Resource:

Declared in

/opt/opscode/embedded/cookbooks/private-chef/recipes/rabbitmq.rb:83:in
`from_file'

execute("/opt/opscode/embedded/bin/chpst -u opscode -U opscode
/opt/opscode/embedded/bin/rabbitmqctl wait /
var/opt/opscode/rabbitmq/db/rabbit@localhost.pid") do
action "run"
retries 0
retry_delay 2
guard_interpreter :default
command "/opt/opscode/embedded/bin/chpst -u opscode -U opscode
/opt/opscode/embedded/bin/rabbitmqctl wait /
var/opt/opscode/rabbitmq/db/rabbit@localhost.pid"
backup 5
returns 0
cookbook_name :"private-chef"
recipe_name "rabbitmq"
end

Running handlers:
[2014-10-08T17:14:43+02:00] ERROR: Running exception handlers
Running handlers complete

[2014-10-08T17:14:43+02:00] ERROR: Exception handlers complete
[2014-10-08T17:14:43+02:00] FATAL: Stacktrace dumped to
/opt/opscode/embedded/cookbooks/cache/chef-stacktrace.out
Chef Client failed. 4 resources updated in 33.50292022 seconds
[2014-10-08T17:14:43+02:00] ERROR: execute[/opt/opscode/embedded/bin/chpst
-u opscode -U opscode /opt/opscode/embedded/bin/rabbitmqctl wait /
var/opt/opscode/rabbitmq/db/rabbit@localhost.pid] (private-chef::rabbitmq
line 83) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected
process to exit with [0], but received '2'
---- Begin output of /opt/opscode/embedded/bin/chpst -u opscode -U opscode
/opt/opscode/embedded/bin/rabbitmqctl wait /
var/opt/opscode/rabbitmq/db/rabbit@localhost.pid ----
STDOUT: Waiting for rabbit@localhost ...
pid is 9687 ...
STDERR: Error: process_not_running
---- End output of /opt/opscode/embedded/bin/chpst -u opscode -U opscode
/opt/opscode/embedded/bin/rabbitmqctl wait /
var/opt/opscode/rabbitmq/db/rabbit@localhost.pid ----
Ran /opt/opscode/embedded/bin/chpst -u opscode -U opscode
/opt/opscode/embedded/bin/rabbitmqctl wait /
var/opt/opscode/rabbitmq/db/rabbit@localhost.pid returned 2
[2014-10-08T17:14:43+02:00] FATAL: Chef::Exceptions::ChildConvergeError:
Chef run process exited unsuccessfully (exit code 1)

Any clue on this issue ? My server is running under Ubuntu 12.04 64 bits.

Regards,

Philippe Bérard
Responsable informatique
Tel : +33 (0)1 39 23 31 17
Mob : +33 (0)6 01 27 87 86
Fax : +33 (0)1 39 55 47 56
58, Rue Pottier
78150 Le Chesnay
www.jalios.com

Thanks James, I’ll take a look on this.

Regards,

Philippe Bérard
Responsable informatique
Tel : +33 (0)1 39 23 31 17
Mob : +33 (0)6 01 27 87 86
Fax : +33 (0)1 39 55 47 56
58, Rue Pottier
78150 Le Chesnay

Le 8 oct. 2014 à 21:53, James Scott jamescott@opscode.com a écrit :

We have different steps for the upgrade process, found here:

Upgrade Chef Infra Server

Also, of note for those upgrading from the Open Source server, some additional info:

http://docs.getchef.com/upgrade_server_open_source_notes.html

On Wed, Oct 8, 2014 at 8:19 AM, Philippe Bérard philippe.berard@jalios.com wrote:
I’ve tried thrice to upgrade my chef-server from version 11 to the new release candidate 12rc4

I’ve been following the procedure found here : Install the Chef Infra Server

And, each time, I get the following error :

  • execute[/opt/opscode/embedded/bin/chpst -u opscode -U opscode /opt/opscode/embedded/bin/rabbitmqctl wait /var/opt/opscode/rabbitmq/db/rabbit@localhost.pid] action run
    ================================================================================
    Error executing action run on resource 'execute[/opt/opscode/embedded/bin/chpst -u opscode -U opscode /opt/opscode/embedded/bin/rabbitmqctl wait /var/opt/opscode/rabbitmq/db/rabbit@localhost.pid]'
    ================================================================================

Mixlib::ShellOut::ShellCommandFailed

Expected process to exit with [0], but received '2'
---- Begin output of /opt/opscode/embedded/bin/chpst -u opscode -U opscode /opt/opscode/embedded/bin/rabbitmqctl wait /var/opt/opscode/rabbitmq/db/rabbit@localhost.pid ----
STDOUT: Waiting for rabbit@localhost ...
pid is 9687 ...
STDERR: Error: process_not_running
---- End output of /opt/opscode/embedded/bin/chpst -u opscode -U opscode /opt/opscode/embedded/bin/rabbitmqctl wait /var/opt/opscode/rabbitmq/db/rabbit@localhost.pid ----
Ran /opt/opscode/embedded/bin/chpst -u opscode -U opscode /opt/opscode/embedded/bin/rabbitmqctl wait /var/opt/opscode/rabbitmq/db/rabbit@localhost.pid returned 2

Resource Declaration:

In /opt/opscode/embedded/cookbooks/private-chef/recipes/rabbitmq.rb

83: execute "#{rmq_ctl_chpost} wait #{rabbitmq_data_dir}/rabbit@localhost.pid" do
84: retries 10
85: end
86:

Compiled Resource:

Declared in /opt/opscode/embedded/cookbooks/private-chef/recipes/rabbitmq.rb:83:in `from_file'

execute("/opt/opscode/embedded/bin/chpst -u opscode -U opscode /opt/opscode/embedded/bin/rabbitmqctl wait /var/opt/opscode/rabbitmq/db/rabbit@localhost.pid") do
action "run"
retries 0
retry_delay 2
guard_interpreter :default
command "/opt/opscode/embedded/bin/chpst -u opscode -U opscode /opt/opscode/embedded/bin/rabbitmqctl wait /var/opt/opscode/rabbitmq/db/rabbit@localhost.pid"
backup 5
returns 0
cookbook_name :"private-chef"
recipe_name "rabbitmq"
end

Running handlers:
[2014-10-08T17:14:43+02:00] ERROR: Running exception handlers
Running handlers complete

[2014-10-08T17:14:43+02:00] ERROR: Exception handlers complete
[2014-10-08T17:14:43+02:00] FATAL: Stacktrace dumped to /opt/opscode/embedded/cookbooks/cache/chef-stacktrace.out
Chef Client failed. 4 resources updated in 33.50292022 seconds
[2014-10-08T17:14:43+02:00] ERROR: execute[/opt/opscode/embedded/bin/chpst -u opscode -U opscode /opt/opscode/embedded/bin/rabbitmqctl wait /var/opt/opscode/rabbitmq/db/rabbit@localhost.pid] (private-chef::rabbitmq line 83) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '2'
---- Begin output of /opt/opscode/embedded/bin/chpst -u opscode -U opscode /opt/opscode/embedded/bin/rabbitmqctl wait /var/opt/opscode/rabbitmq/db/rabbit@localhost.pid ----
STDOUT: Waiting for rabbit@localhost ...
pid is 9687 ...
STDERR: Error: process_not_running
---- End output of /opt/opscode/embedded/bin/chpst -u opscode -U opscode /opt/opscode/embedded/bin/rabbitmqctl wait /var/opt/opscode/rabbitmq/db/rabbit@localhost.pid ----
Ran /opt/opscode/embedded/bin/chpst -u opscode -U opscode /opt/opscode/embedded/bin/rabbitmqctl wait /var/opt/opscode/rabbitmq/db/rabbit@localhost.pid returned 2
[2014-10-08T17:14:43+02:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

Any clue on this issue ? My server is running under Ubuntu 12.04 64 bits.

Regards,

Philippe Bérard
Responsable informatique
Tel : +33 (0)1 39 23 31 17
Mob : +33 (0)6 01 27 87 86
Fax : +33 (0)1 39 55 47 56
58, Rue Pottier
78150 Le Chesnay
www.jalios.com

<image001.gif>

Is your rabbitmq-server running on localhost?
Try doing the following in order to check on port if it is running
ps -ef | grep rabbit

Thanks and Regards,
Doel Sengupta | BRM-DevOps


Ecospace- Pritech Park, Survey number 51 to 64/4, Block Number-12,
Bellandur village, Sarjapur, Marathahalli Ring Road, Bangalore-560103.

4th Floor, B wing, cubicle A4B-148. Extn: 299217
[clip_image001]
Doel.Sengupta@altisource.commailto:Doel.Sengupta@altisource.com | www.Altisource.comhttp://www.altisource.com/

From: Philippe Bérard [mailto:philippe.berard@jalios.com]
Sent: Wednesday, October 08, 2014 8:49 PM
To: chef@lists.opscode.com
Subject: [chef] Migration from Chef 11 to Chef 12 rc4 : error on rabbitmq

I’ve tried thrice to upgrade my chef-server from version 11 to the new release candidate 12rc4

I’ve been following the procedure found here : https://docs.getchef.com/server/install_server.html

And, each time, I get the following error :

  • execute[/opt/opscode/embedded/bin/chpst -u opscode -U opscode /opt/opscode/embedded/bin/rabbitmqctl wait /var/opt/opscode/rabbitmq/db/rabbit@localhost.pidmailto:var/opt/opscode/rabbitmq/db/rabbit@localhost.pid] action run
    ================================================================================
    Error executing action run on resource ‘execute[/opt/opscode/embedded/bin/chpst -u opscode -U opscode /opt/opscode/embedded/bin/rabbitmqctl wait /var/opt/opscode/rabbitmq/db/rabbit@localhost.pidmailto:var/opt/opscode/rabbitmq/db/rabbit@localhost.pid]’
    ================================================================================

Mixlib::ShellOut::ShellCommandFailed

Expected process to exit with [0], but received ‘2’
---- Begin output of /opt/opscode/embedded/bin/chpst -u opscode -U opscode /opt/opscode/embedded/bin/rabbitmqctl wait /var/opt/opscode/rabbitmq/db/rabbit@localhost.pidmailto:var/opt/opscode/rabbitmq/db/rabbit@localhost.pid ----
STDOUT: Waiting for rabbit@localhost …
pid is 9687 …
STDERR: Error: process_not_running
---- End output of /opt/opscode/embedded/bin/chpst -u opscode -U opscode /opt/opscode/embedded/bin/rabbitmqctl wait /var/opt/opscode/rabbitmq/db/rabbit@localhost.pidmailto:var/opt/opscode/rabbitmq/db/rabbit@localhost.pid ----
Ran /opt/opscode/embedded/bin/chpst -u opscode -U opscode /opt/opscode/embedded/bin/rabbitmqctl wait /var/opt/opscode/rabbitmq/db/rabbit@localhost.pidmailto:var/opt/opscode/rabbitmq/db/rabbit@localhost.pid returned 2

Resource Declaration:

In /opt/opscode/embedded/cookbooks/private-chef/recipes/rabbitmq.rb

83: execute “#{rmq_ctl_chpost} wait #{rabbitmq_data_dir}/rabbit@localhost.pidmailto:rabbit@localhost.pid” do
84: retries 10
85: end
86:

Compiled Resource:

Declared in /opt/opscode/embedded/cookbooks/private-chef/recipes/rabbitmq.rb:83:in `from_file’

execute("/opt/opscode/embedded/bin/chpst -u opscode -U opscode /opt/opscode/embedded/bin/rabbitmqctl wait /var/opt/opscode/rabbitmq/db/rabbit@localhost.pidmailto:var/opt/opscode/rabbitmq/db/rabbit@localhost.pid") do
action "run"
retries 0
retry_delay 2
guard_interpreter :default
command "/opt/opscode/embedded/bin/chpst -u opscode -U opscode /opt/opscode/embedded/bin/rabbitmqctl wait /var/opt/opscode/rabbitmq/db/rabbit@localhost.pidmailto:var/opt/opscode/rabbitmq/db/rabbit@localhost.pid"
backup 5
returns 0
cookbook_name :"private-chef"
recipe_name "rabbitmq"
end

Running handlers:
[2014-10-08T17:14:43+02:00] ERROR: Running exception handlers
Running handlers complete

[2014-10-08T17:14:43+02:00] ERROR: Exception handlers complete
[2014-10-08T17:14:43+02:00] FATAL: Stacktrace dumped to /opt/opscode/embedded/cookbooks/cache/chef-stacktrace.out
Chef Client failed. 4 resources updated in 33.50292022 seconds
[2014-10-08T17:14:43+02:00] ERROR: execute[/opt/opscode/embedded/bin/chpst -u opscode -U opscode /opt/opscode/embedded/bin/rabbitmqctl wait /var/opt/opscode/rabbitmq/db/rabbit@localhost.pidmailto:var/opt/opscode/rabbitmq/db/rabbit@localhost.pid] (private-chef::rabbitmq line 83) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received ‘2’
---- Begin output of /opt/opscode/embedded/bin/chpst -u opscode -U opscode /opt/opscode/embedded/bin/rabbitmqctl wait /var/opt/opscode/rabbitmq/db/rabbit@localhost.pidmailto:var/opt/opscode/rabbitmq/db/rabbit@localhost.pid ----
STDOUT: Waiting for rabbit@localhost …
pid is 9687 …
STDERR: Error: process_not_running
---- End output of /opt/opscode/embedded/bin/chpst -u opscode -U opscode /opt/opscode/embedded/bin/rabbitmqctl wait /var/opt/opscode/rabbitmq/db/rabbit@localhost.pidmailto:var/opt/opscode/rabbitmq/db/rabbit@localhost.pid ----
Ran /opt/opscode/embedded/bin/chpst -u opscode -U opscode /opt/opscode/embedded/bin/rabbitmqctl wait /var/opt/opscode/rabbitmq/db/rabbit@localhost.pidmailto:var/opt/opscode/rabbitmq/db/rabbit@localhost.pid returned 2
[2014-10-08T17:14:43+02:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

Any clue on this issue ? My server is running under Ubuntu 12.04 64 bits.

Regards,

Philippe Bérard
Responsable informatique

Tel : +33 (0)1 39 23 31 17
Mob : +33 (0)6 01 27 87 86
Fax : +33 (0)1 39 55 47 56

58, Rue Pottier
78150 Le Chesnay
www.jalios.comhttp://www.jalios.com/

[cid:image002.gif@01CFE482.B07B3660]


This email message and any attachments are intended solely for the use of the addressee. If you are not the intended recipient, you are prohibited from reading, disclosing, reproducing, distributing, disseminating or otherwise using this transmission. If you have received this message in error, please promptly notify the sender by reply email and immediately delete this message from your system. This message and any attachments may contain information that is confidential, privileged or exempt from disclosure. Delivery of this message to any person other than the intended recipient is not intended to waive any right or privilege. Message transmission is not guaranteed to be secure or free of software viruses.


Thanks for your answer, Doel.

I’ve followed James Scott procedures with some kind of success, having now Chef Server 12 and Chef Manage installed, but now that I would like to have Push Jobs installed, I fall into this same RabbitMq error.

The command you’ve been asking me to run returns the following result :
999 1111 960 6 09:24 ? 00:03:21 /opt/chef-server/embedded/lib/erlang/erts-5.9.2/bin/beam.smp -W w -K true -A30 -P 1048576 -- -root /opt/chef-server/embedded/lib/erlang -progname erl -- -home /var/opt/chef-server/rabbitmq -- -noshell -noinput -sname rabbit@localhost -boot /var/opt/chef-server/rabbitmq/db/rabbit@localhost-plugins-expand/rabbit -kernel inet_default_connect_options [{nodelay,true}] -rabbit tcp_listeners [{"127.0.0.1",5672}] -sasl errlog_type error -sasl sasl_error_logger false -rabbit error_logger {file,"/var/opt/chef-server/rabbitmq/log/rabbit@localhost.log"} -rabbit sasl_error_logger {file,"/var/opt/chef-server/rabbitmq/log/rabbit@localhost-sasl.log"} -os_mon start_cpu_sup true -os_mon start_disksup false -os_mon start_memsup false -mnesia dir "/var/opt/chef-server/rabbitmq/db/rabbit@localhost »

So obviously RabbitMq is running, on port 5672, which can be verified through « netstat -ltnp » :
tcp 0 0 127.0.0.1:5672 0.0.0.0:* LISTEN 1111/beam.smp

Running « chef-server-ctl reconfigure » fails with the following error :

Recipe: private-chef::rabbitmq

  • execute[/opt/opscode/bin/private-chef-ctl start rabbitmq] action run

    • execute /opt/opscode/bin/private-chef-ctl start rabbitmq
  • execute[/opt/opscode/embedded/bin/chpst -u opscode -U opscode /opt/opscode/embedded/bin/rabbitmqctl wait /var/opt/opscode/rabbitmq/db/rabbit@localhost.pid] action run
    ================================================================================
    Error executing action run on resource 'execute[/opt/opscode/embedded/bin/chpst -u opscode -U opscode /opt/opscode/embedded/bin/rabbitmqctl wait /var/opt/opscode/rabbitmq/db/rabbit@localhost.pid]'
    ================================================================================

Mixlib::ShellOut::ShellCommandFailed

Expected process to exit with [0], but received '2'
---- Begin output of /opt/opscode/embedded/bin/chpst -u opscode -U opscode /opt/opscode/embedded/bin/rabbitmqctl wait /var/opt/opscode/rabbitmq/db/rabbit@localhost.pid ----
STDOUT: Waiting for rabbit@localhost ...
pid is 15689 ...
STDERR: Error: process_not_running
---- End output of /opt/opscode/embedded/bin/chpst -u opscode -U opscode /opt/opscode/embedded/bin/rabbitmqctl wait /var/opt/opscode/rabbitmq/db/rabbit@localhost.pid ----
Ran /opt/opscode/embedded/bin/chpst -u opscode -U opscode /opt/opscode/embedded/bin/rabbitmqctl wait /var/opt/opscode/rabbitmq/db/rabbit@localhost.pid returned 2

Resource Declaration:

In /opt/opscode/embedded/cookbooks/private-chef/recipes/rabbitmq.rb

83: execute "#{rmq_ctl_chpost} wait #{rabbitmq_data_dir}/rabbit@localhost.pid" do
84: retries 10
85: end
86:

Compiled Resource:

Declared in /opt/opscode/embedded/cookbooks/private-chef/recipes/rabbitmq.rb:83:in `from_file'

execute("/opt/opscode/embedded/bin/chpst -u opscode -U opscode /opt/opscode/embedded/bin/rabbitmqctl wait /var/opt/opscode/rabbitmq/db/rabbit@localhost.pid") do
action "run"
retries 0
retry_delay 2
guard_interpreter :default
command "/opt/opscode/embedded/bin/chpst -u opscode -U opscode /opt/opscode/embedded/bin/rabbitmqctl wait /var/opt/opscode/rabbitmq/db/rabbit@localhost.pid"
backup 5
returns 0
cookbook_name :"private-chef"
recipe_name "rabbitmq"
end

Running handlers:
[2014-10-10T10:23:05+02:00] ERROR: Running exception handlers

Cordialement,

Philippe Bérard
Responsable informatique
Tel : +33 (0)1 39 23 31 17
Mob : +33 (0)6 01 27 87 86
Fax : +33 (0)1 39 55 47 56
58, Rue Pottier
78150 Le Chesnay

Le 10 oct. 2014 à 08:37, Sengupta, Doel Doel.Sengupta@altisource.com a écrit :

Is your rabbitmq-server running on localhost?
Try doing the following in order to check on port if it is running
ps –ef | grep rabbit

Thanks and Regards,
Doel Sengupta | BRM-DevOps


Ecospace- Pritech Park, Survey number 51 to 64/4, Block Number-12,
Bellandur village, Sarjapur, Marathahalli Ring Road, Bangalore-560103.

4th Floor, B wing, cubicle A4B-148. Extn: 299217
<image001.jpg>
Doel.Sengupta@altisource.com | www.Altisource.com

From: Philippe Bérard [mailto:philippe.berard@jalios.com]
Sent: Wednesday, October 08, 2014 8:49 PM
To: chef@lists.opscode.com
Subject: [chef] Migration from Chef 11 to Chef 12 rc4 : error on rabbitmq

I’ve tried thrice to upgrade my chef-server from version 11 to the new release candidate 12rc4

I’ve been following the procedure found here : Install the Chef Infra Server

And, each time, I get the following error :

  • execute[/opt/opscode/embedded/bin/chpst -u opscode -U opscode /opt/opscode/embedded/bin/rabbitmqctl wait /var/opt/opscode/rabbitmq/db/rabbit@localhost.pid] action run
    ================================================================================
    Error executing action run on resource 'execute[/opt/opscode/embedded/bin/chpst -u opscode -U opscode /opt/opscode/embedded/bin/rabbitmqctl wait /var/opt/opscode/rabbitmq/db/rabbit@localhost.pid]'
    ================================================================================

Mixlib::ShellOut::ShellCommandFailed

Expected process to exit with [0], but received '2'
---- Begin output of /opt/opscode/embedded/bin/chpst -u opscode -U opscode /opt/opscode/embedded/bin/rabbitmqctl wait /var/opt/opscode/rabbitmq/db/rabbit@localhost.pid ----
STDOUT: Waiting for rabbit@localhost ...
pid is 9687 ...
STDERR: Error: process_not_running
---- End output of /opt/opscode/embedded/bin/chpst -u opscode -U opscode /opt/opscode/embedded/bin/rabbitmqctl wait /var/opt/opscode/rabbitmq/db/rabbit@localhost.pid ----
Ran /opt/opscode/embedded/bin/chpst -u opscode -U opscode /opt/opscode/embedded/bin/rabbitmqctl wait /var/opt/opscode/rabbitmq/db/rabbit@localhost.pid returned 2

Resource Declaration:

In /opt/opscode/embedded/cookbooks/private-chef/recipes/rabbitmq.rb

83: execute "#{rmq_ctl_chpost} wait #{rabbitmq_data_dir}/rabbit@localhost.pid" do
84: retries 10
85: end
86:

Compiled Resource:

Declared in /opt/opscode/embedded/cookbooks/private-chef/recipes/rabbitmq.rb:83:in `from_file'

execute("/opt/opscode/embedded/bin/chpst -u opscode -U opscode /opt/opscode/embedded/bin/rabbitmqctl wait /var/opt/opscode/rabbitmq/db/rabbit@localhost.pid") do
action "run"
retries 0
retry_delay 2
guard_interpreter :default
command "/opt/opscode/embedded/bin/chpst -u opscode -U opscode /opt/opscode/embedded/bin/rabbitmqctl wait /var/opt/opscode/rabbitmq/db/rabbit@localhost.pid"
backup 5
returns 0
cookbook_name :"private-chef"
recipe_name "rabbitmq"
end

Running handlers:
[2014-10-08T17:14:43+02:00] ERROR: Running exception handlers
Running handlers complete

[2014-10-08T17:14:43+02:00] ERROR: Exception handlers complete
[2014-10-08T17:14:43+02:00] FATAL: Stacktrace dumped to /opt/opscode/embedded/cookbooks/cache/chef-stacktrace.out
Chef Client failed. 4 resources updated in 33.50292022 seconds
[2014-10-08T17:14:43+02:00] ERROR: execute[/opt/opscode/embedded/bin/chpst -u opscode -U opscode /opt/opscode/embedded/bin/rabbitmqctl wait /var/opt/opscode/rabbitmq/db/rabbit@localhost.pid] (private-chef::rabbitmq line 83) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '2'
---- Begin output of /opt/opscode/embedded/bin/chpst -u opscode -U opscode /opt/opscode/embedded/bin/rabbitmqctl wait /var/opt/opscode/rabbitmq/db/rabbit@localhost.pid ----
STDOUT: Waiting for rabbit@localhost ...
pid is 9687 ...
STDERR: Error: process_not_running
---- End output of /opt/opscode/embedded/bin/chpst -u opscode -U opscode /opt/opscode/embedded/bin/rabbitmqctl wait /var/opt/opscode/rabbitmq/db/rabbit@localhost.pid ----
Ran /opt/opscode/embedded/bin/chpst -u opscode -U opscode /opt/opscode/embedded/bin/rabbitmqctl wait /var/opt/opscode/rabbitmq/db/rabbit@localhost.pid returned 2
[2014-10-08T17:14:43+02:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

Any clue on this issue ? My server is running under Ubuntu 12.04 64 bits.

Regards,

Philippe Bérard
Responsable informatique
Tel : +33 (0)1 39 23 31 17
Mob : +33 (0)6 01 27 87 86
Fax : +33 (0)1 39 55 47 56
58, Rue Pottier
78150 Le Chesnay
www.jalios.com

<image002.gif>


This email message and any attachments are intended solely for the use of the addressee. If you are not the intended recipient, you are prohibited from reading, disclosing, reproducing, distributing, disseminating or otherwise using this transmission. If you have received this message in error, please promptly notify the sender by reply email and immediately delete this message from your system. This message and any attachments may contain information that is confidential, privileged or exempt from disclosure. Delivery of this message to any person other than the intended recipient is not intended to waive any right or privilege. Message transmission is not guaranteed to be secure or free of software viruses.


I have the exactly same problem.

  • execute /opt/opscode/bin/private-chef-ctl start rabbitmq
  • execute[/opt/opscode/embedded/bin/chpst -u opscode -U opscode /opt/opscode/embedded/bin/rabbitmqctl wait /var/opt/opscode/rabbitmq/db/rabbit@localhost.pid] action run

    ================================================================================
    Error executing action run on resource ‘execute[/opt/opscode/embedded/bin/chpst -u opscode -U opscode /opt/opscode/embedded/bin/rabbitmqctl wait /var/opt/opscode/rabbitmq/db/rabbit@localhost.pid]’

    Mixlib::ShellOut::ShellCommandFailed

    Expected process to exit with [0], but received ‘2’
    ---- Begin output of /opt/opscode/embedded/bin/chpst -u opscode -U opscode /opt/opscode/embedded/bin/rabbitmqctl wait /var/opt/opscode/rabbitmq/db/rabbit@localhost.pid ----
    STDOUT: Waiting for rabbit@localhost …
    pid is 30358 …
    STDERR: Error: process_not_running
    ---- End output of /opt/opscode/embedded/bin/chpst -u opscode -U opscode /opt/opscode/embedded/bin/rabbitmqctl wait /var/opt/opscode/rabbitmq/db/rabbit@localhost.pid ----
    Ran /opt/opscode/embedded/bin/chpst -u opscode -U opscode /opt/opscode/embedded/bin/rabbitmqctl wait /var/opt/opscode/rabbitmq/db/rabbit@localhost.pid returned 2

when check if the process running this is what I get

ps -ef | grep rabbit
rabbitmq 6214 1 0 2015 ? 00:02:00 /usr/lib64/erlang/erts-5.8.5/bin/epmd -daemon
root 6228 1 0 2015 ? 00:00:00 /bin/sh /etc/rc3.d/S80rabbitmq-server start
root 6234 6228 0 2015 ? 00:00:00 /bin/bash -c ulimit -S -c 0 >/dev/null 2>&1 ; /usr/sbin/rabbitmq-server
root 6236 6234 0 2015 ? 00:00:00 /bin/sh /usr/sbin/rabbitmq-server
root 6249 6236 0 2015 ? 00:00:00 su rabbitmq -s /bin/sh -c /usr/lib/rabbitmq/bin/rabbitmq-server
rabbitmq 6256 6249 0 2015 ? 03:38:50 /usr/lib64/erlang/erts-5.8.5/bin/beam.smp -W w -K true -A30 -P 1048576 – -root /usr/lib64/erlang -progname erl – -home /var/lib/rabbitmq – -pa /usr/lib/rabbitmq/lib/rabbitmq_server-3.1.5/sbin/…/ebin -noshell -noinput -s rabbit boot -sname rabbit@localhost -boot start_sasl -kernel inet_default_connect_options [{nodelay,true}] -sasl errlog_type error -sasl sasl_error_logger false -rabbit error_logger {file,"/var/log/rabbitmq/rabbit@localhost.log"} -rabbit sasl_error_logger {file,"/var/log/rabbitmq/rabbit@localhost-sasl.log"} -rabbit enabled_plugins_file “/etc/rabbitmq/enabled_plugins” -rabbit plugins_dir “/usr/lib/rabbitmq/lib/rabbitmq_server-3.1.5/sbin/…/plugins” -rabbit plugins_expand_dir “/var/lib/rabbitmq/mnesia/rabbit@localhost-plugins-expand” -os_mon start_cpu_sup false -os_mon start_disksup false -os_mon start_memsup false -mnesia dir "/var/lib/rabbitmq/mnesia/rabbit@localhost"
rabbitmq 6375 6256 0 2015 ? 00:00:00 inet_gethost 4
rabbitmq 6376 6375 0 2015 ? 00:00:00 inet_gethost 4
root 10888 11554 0 23:24 ? 00:00:00 runsv rabbitmq
opscode 10993 10888 0 23:24 ? 00:00:00 svlogd -tt /var/log/opscode/rabbitmq
root 11554 1 0 04:47 ? 00:00:00 runsvdir -P /opt/opscode/service log: xist?runsv rabbitmq: fatal: unable to start ./run: file does not exist?runsv rabbitmq: warning: unable to open supervise/pid.new: file does not exist?runsv rabbitmq: warning: unable to open supervise/pid.new: file does not exist?runsv rabbitmq: warning: unable to open log/supervise/pid.new: file does not exist?runsv rabbitmq: warning: unable to open log/supervise/pid.new: file does not exist?