Chef 11 install problem


#1

Hi Chefs!
Its a bit like Xmas today with the new release. I was excited to give
it a try so i build a brand new CentOS 6.3 VM, installed the OmniBus
RPM and ran “chef-server-ctl reconfigure”.

Things were going well until it hit the bootstrap recipe…

I verified iptables and selinux are both “off”. Port 8000 is open and
associated with an ErChef process. Anyone else run into this?


Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.


#2

I had to downgrade because I could not do any client connecting to the server

2013/2/4 Chris grocerylist@gmail.com:

Hi Chefs!
Its a bit like Xmas today with the new release. I was excited to give
it a try so i build a brand new CentOS 6.3 VM, installed the OmniBus
RPM and ran “chef-server-ctl reconfigure”.

Things were going well until it hit the bootstrap recipe…

https://gist.github.com/4708294

I verified iptables and selinux are both “off”. Port 8000 is open and
associated with an ErChef process. Anyone else run into this?


Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.


#3

Hi Chris,

On Feb 4, 2013, at 9:56 AM, Chris wrote:

Its a bit like Xmas today with the new release. I was excited to give
it a try so i build a brand new CentOS 6.3 VM, installed the OmniBus
RPM and ran “chef-server-ctl reconfigure”.

Things were going well until it hit the bootstrap recipe…

https://gist.github.com/4708294

I verified iptables and selinux are both “off”. Port 8000 is open and
associated with an ErChef process. Anyone else run into this?

Thanks for the report. We’re attempting to reproduce the issue and will send an update later on.

  • seth

#4

On Feb 4, 2013, at 10:06 AM, Alex Vitola wrote:

I had to downgrade because I could not do any client connecting to the server

If you’d like to provide some details on the trouble you encounted, perhaps we can help get you going with Chef 11.


#5

Great! Thanks Seth!

On Mon, Feb 4, 2013 at 1:39 PM, Seth Falcon seth@opscode.com wrote:

On Feb 4, 2013, at 10:06 AM, Alex Vitola wrote:

I had to downgrade because I could not do any client connecting to the server

If you’d like to provide some details on the trouble you encounted, perhaps we can help get you going with Chef 11.


Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.


#6

My environment is still in development, I believe the problem is not
with version 11, but due to the tests I’m doing

2013/2/4 Seth Falcon seth@opscode.com:

On Feb 4, 2013, at 10:06 AM, Alex Vitola wrote:

I had to downgrade because I could not do any client connecting to the server

If you’d like to provide some details on the trouble you encounted, perhaps we can help get you going with Chef 11.


#7

Personally, I have some big problems updating Chef Server from 10.18.2 to
11.04-1 on Ubuntu server 12.04 LTS : RabbitMQ doesn’t want to start.

Here is the end of the installation transcript :




  • service[rabbitmq] action nothing (up to date)

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

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

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

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

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

Mixlib::ShellOut::ShellCommandFailed


Expected process to exit with [0], but received ‘2’

---- Begin output of /opt/chef-server/embedded/bin/chpst -u chef_server -U
chef_server /opt/chef-server/embedded/bin/rabbitmqctl wait
/var/opt/chef-server/rabbitmq/db/rabbit@localhost.pid ----

STDOUT: Waiting for rabbit@localhost …

pid is 17072 …

STDERR: Error: process_not_running

---- End output of /opt/chef-server/embedded/bin/chpst -u chef_server -U
chef_server /opt/chef-server/embedded/bin/rabbitmqctl wait
/var/opt/chef-server/rabbitmq/db/rabbit@localhost.pid ----

Ran /opt/chef-server/embedded/bin/chpst -u chef_server -U chef_server
/opt/chef-server/embedded/bin/rabbitmqctl wait
/var/opt/chef-server/rabbitmq/db/rabbit@localhost.pid returned 2




Regards,

– Philippe Bérard

-----Message d’origine-----
De : Alex Vitola [mailto:alex.vitola@gmail.com]
Envoyé : mardi 5 février 2013 11:42
À : seth@opscode.com; chef@lists.opscode.com
Objet : [chef] Re: Re: chef 11 install problem

My environment is still in development, I believe the problem is not with
version 11, but due to the tests I’m doing

2013/2/4 Seth Falcon < mailto:seth@opscode.com seth@opscode.com>:

On Feb 4, 2013, at 10:06 AM, Alex Vitola wrote:

I had to downgrade because I could not do any client connecting to

the server

If you’d like to provide some details on the trouble you encounted,
perhaps we can help get you going with Chef 11.


#8

Philippe-

I had a similar issue on CentOS 5.8. I haven’t yet dug into the root cause (though I plan to) but I found that RabbitMQ was already running (outside of runit), so runit kept starting a second copy and failing. I killed off the processes and ran chef-server-ctl reconfigure and all was well.

Adam

On Feb 5, 2013, at 6:08, Philippe Bérard philippe.berard@jalios.com wrote:

Personally, I have some big problems updating Chef Server from 10.18.2 to 11.04-1 on Ubuntu server 12.04 LTS : RabbitMQ doesn’t want to start.

Here is the end of the installation transcript :

  • service[rabbitmq] action nothing (up to date)

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

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

Mixlib::ShellOut::ShellCommandFailed

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


Regards,

– Philippe Bérard

-----Message d’origine-----
De : Alex Vitola [mailto:alex.vitola@gmail.com]
Envoyé : mardi 5 février 2013 11:42
À : seth@opscode.com; chef@lists.opscode.com
Objet : [chef] Re: Re: chef 11 install problem

My environment is still in development, I believe the problem is not with version 11, but due to the tests I’m doing

2013/2/4 Seth Falcon seth@opscode.com:

On Feb 4, 2013, at 10:06 AM, Alex Vitola wrote:

I had to downgrade because I could not do any client connecting to
the server

If you’d like to provide some details on the trouble you encounted, perhaps we can help get you going with Chef 11.


#9

Hi Seth

I figured out what the issue was. Turns out my host didnt get a DNS
entry when it was created. After creating an entry in /etc/hosts
everything started working.

On Tue, Feb 5, 2013 at 6:24 AM, Adam Leff adam@leff.co wrote:

Philippe-

I had a similar issue on CentOS 5.8. I haven’t yet dug into the root cause
(though I plan to) but I found that RabbitMQ was already running (outside of
runit), so runit kept starting a second copy and failing. I killed off the
processes and ran chef-server-ctl reconfigure and all was well.

Adam

On Feb 5, 2013, at 6:08, Philippe Bérard philippe.berard@jalios.com wrote:

Personally, I have some big problems updating Chef Server from 10.18.2 to
11.04-1 on Ubuntu server 12.04 LTS : RabbitMQ doesn’t want to start.

Here is the end of the installation transcript :


  • service[rabbitmq] action nothing (up to date)

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

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

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

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

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

Mixlib::ShellOut::ShellCommandFailed


Expected process to exit with [0], but received ‘2’

---- Begin output of /opt/chef-server/embedded/bin/chpst -u chef_server -U
chef_server /opt/chef-server/embedded/bin/rabbitmqctl wait
/var/opt/chef-server/rabbitmq/db/rabbit@localhost.pid ----

STDOUT: Waiting for rabbit@localhost …

pid is 17072 …

STDERR: Error: process_not_running

---- End output of /opt/chef-server/embedded/bin/chpst -u chef_server -U
chef_server /opt/chef-server/embedded/bin/rabbitmqctl wait
/var/opt/chef-server/rabbitmq/db/rabbit@localhost.pid ----

Ran /opt/chef-server/embedded/bin/chpst -u chef_server -U chef_server
/opt/chef-server/embedded/bin/rabbitmqctl wait
/var/opt/chef-server/rabbitmq/db/rabbit@localhost.pid returned 2


Regards,

– Philippe Bérard

-----Message d’origine-----
De : Alex Vitola [mailto:alex.vitola@gmail.com]
Envoyé : mardi 5 février 2013 11:42
À : seth@opscode.com; chef@lists.opscode.com
Objet : [chef] Re: Re: chef 11 install problem

My environment is still in development, I believe the problem is not with
version 11, but due to the tests I’m doing

2013/2/4 Seth Falcon seth@opscode.com:

On Feb 4, 2013, at 10:06 AM, Alex Vitola wrote:

I had to downgrade because I could not do any client connecting to

the server

If you’d like to provide some details on the trouble you encounted,
perhaps we can help get you going with Chef 11.


Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.


#10

Thanks Adam, problem solved.

Regards,

– Philippe Bérard

De : Adam Leff [mailto:adam@leff.co]
Envoyé : mardi 5 février 2013 15:24
À : chef@lists.opscode.com
Cc : chef@lists.opscode.com
Objet : [chef] Re: RE: Re: Re: chef 11 install problem

Philippe-

I had a similar issue on CentOS 5.8. I haven’t yet dug into the root cause (though I plan to) but I found that RabbitMQ was already running (outside of runit), so runit kept starting a second copy and failing. I killed off the processes and ran chef-server-ctl reconfigure and all was well.

Adam

On Feb 5, 2013, at 6:08, Philippe Bérard philippe.berard@jalios.com wrote:

Personally, I have some big problems updating Chef Server from 10.18.2 to 11.04-1 on Ubuntu server 12.04 LTS : RabbitMQ doesn’t want to start.

Here is the end of the installation transcript :


  • service[rabbitmq] action nothing (up to date)

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

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

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

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

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

Mixlib::ShellOut::ShellCommandFailed


Expected process to exit with [0], but received ‘2’

---- Begin output of /opt/chef-server/embedded/bin/chpst -u chef_server -U chef_server /opt/chef-server/embedded/bin/rabbitmqctl wait / mailto:var/opt/chef-server/rabbitmq/db/rabbit@localhost.pid var/opt/chef-server/rabbitmq/db/rabbit@localhost.pid ----

STDOUT: Waiting for rabbit@localhost …

pid is 17072 …

STDERR: Error: process_not_running

---- End output of /opt/chef-server/embedded/bin/chpst -u chef_server -U chef_server /opt/chef-server/embedded/bin/rabbitmqctl wait / mailto:var/opt/chef-server/rabbitmq/db/rabbit@localhost.pid var/opt/chef-server/rabbitmq/db/rabbit@localhost.pid ----

Ran /opt/chef-server/embedded/bin/chpst -u chef_server -U chef_server /opt/chef-server/embedded/bin/rabbitmqctl wait / mailto:var/opt/chef-server/rabbitmq/db/rabbit@localhost.pid var/opt/chef-server/rabbitmq/db/rabbit@localhost.pid returned 2


Regards,

– Philippe Bérard

-----Message d’origine-----
De : Alex Vitola [mailto:alex.vitola@gmail.com]
Envoyé : mardi 5 février 2013 11:42
À : seth@opscode.com; chef@lists.opscode.com
Objet : [chef] Re: Re: chef 11 install problem

My environment is still in development, I believe the problem is not with version 11, but due to the tests I’m doing

2013/2/4 Seth Falcon < mailto:seth@opscode.com seth@opscode.com>:

On Feb 4, 2013, at 10:06 AM, Alex Vitola wrote:

I had to downgrade because I could not do any client connecting to

the server

If you’d like to provide some details on the trouble you encounted, perhaps we can help get you going with Chef 11.