- From:
- To: chef <
>
- Subject: [chef] trouble installing chef 11 on RHEL 6 (AWS Linux)
- Date: Sat, 22 Jun 2013 06:32:42 +0000
ok. I'm gonna try it. I've been running an ubuntu chef 10.x server for a long
time. Now I'm gonna try to go for chef 11 on AWS Linux.
AWS Linux 2012.09
chef-server-11.0.8-1.el6.x86_64.rpm
When I run "chef-server-ctl reconfigure", it never gets past:
ruby_block[supervise_rabbitmq_sleep] action run
Anyone have advice? Lots of detail below. Thanks!
kallen
These are the processes in the process table.
\_ /bin/bash /usr/bin/chef-server-ctl reconfigure
\_ /opt/chef-server/embedded/bin/ruby
/opt/chef-server/embedded/bin/omnibus-ctl chef-server
/opt/chef-server/embedded/service/omnibus-ctl reconfigure
\_ /opt/chef-server/embedded/bin/ruby
/opt/chef-server/embedded/bin/chef-solo -c
/opt/chef-server/embedded/cookbooks/solo.rb -j
/opt/chef-server/embedded/cookbooks/dna.json
The chef-solo pid above is "spinning" stat'ing file
/opt/chef-server/sv/rabbitmq/supervise/ok which doesn't exist:
# strace -f -p 10991
Process 10991 attached with 2 threads - interrupt to quit
[pid 10991] restart_syscall(<... resuming interrupted call ...> <unfinished
...>
[pid 11144] select(4, [3], NULL, NULL, NULL <unfinished ...>
[pid 10991] <... restart_syscall resumed> ) = -1 ETIMEDOUT (Connection timed
out)
[pid 10991] futex(0x1b37618, FUTEX_WAKE_PRIVATE, 1) = 0
[pid 10991] clock_gettime(CLOCK_MONOTONIC, {18412, 939895146}) = 0
[pid 10991] time(NULL) = 1371882393
[pid 10991] stat("/opt/chef-server/sv/rabbitmq/supervise/ok", 0x7fff06bc7ae0)
= -1 ENOENT (No such file or directory)
[pid 10991] time(NULL) = 1371882393
fwiw:
# lsof -p 10991 | tail -6
chef-solo 10991 root 1u CHR 136,1 0t0 4 /dev/pts/1
chef-solo 10991 root 2u CHR 136,1 0t0 4 /dev/pts/1
chef-solo 10991 root 3r FIFO 0,8 0t0 35742 pipe
chef-solo 10991 root 4w FIFO 0,8 0t0 35742 pipe
chef-solo 10991 root 5uW REG 202,1 0 294048
/opt/chef-server/embedded/cookbooks/cache/chef-client-running.pid
chef-solo 10991 root 7u REG 202,1 0 25439
/tmp/chef-tempfile20130622-10991-1flwkn0
# ls -l /opt/chef-server/sv/rabbitmq/
total 8
drwxr-xr-x 3 root root 4096 Jun 22 06:19 log
-rwxr-xr-x 1 root root 159 Jun 22 06:19 run
ohai:
# chef-server-ctl status
warning: rabbitmq: unable to open supervise/ok: file does not exist
There are no logs in /var/log/chef-server or /opt/chef-server/embedded/logs
The output of the reconfigure, snipped for brevity:
* directory[/opt/chef-server/sv/rabbitmq/log/main] action create
- create new directory /opt/chef-server/sv/rabbitmq/log/main
- change mode from '' to '0755'
- change owner from '' to 'root'
- change group from '' to 'root'
* template[/opt/chef-server/sv/rabbitmq/run] action create
- create template[/opt/chef-server/sv/rabbitmq/run]
--- /tmp/chef-tempfile20130622-10991-1xg4am0 2013-06-22
06:19:45.063728595 +0000
+++ /tmp/chef-rendered-template20130622-10991-1aceze7 2013-06-22
06:19:45.063728595 +0000
@@ -0,0 +1,4 @@
+#!/bin/sh
+exec 2>&1
+exec chpst -P -u chef_server -U chef_server /usr/bin/env
HOME=/var/opt/chef-server/rabbitmq
/opt/chef-server/embedded/bin/rabbitmq-server
+
* template[/opt/chef-server/sv/rabbitmq/log/run] action create
- create template[/opt/chef-server/sv/rabbitmq/log/run]
--- /tmp/chef-tempfile20130622-10991-1flwkn0 2013-06-22
06:19:45.159727152 +0000
+++ /tmp/chef-rendered-template20130622-10991-4vvaii 2013-06-22
06:19:45.159727152 +0000
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec svlogd -tt /var/log/chef-server/rabbitmq
* file[/opt/chef-server/sv/rabbitmq/down] action delete (up to date)
* link[/opt/chef-server/init/rabbitmq] action create
- create symlink at /opt/chef-server/init/rabbitmq to
/opt/chef-server/embedded/bin/sv
* link[/opt/chef-server/service/rabbitmq] action create
- create symlink at /opt/chef-server/service/rabbitmq to
/opt/chef-server/sv/rabbitmq
* ruby_block[supervise_rabbitmq_sleep] action run <--- hang
- [chef] trouble installing chef 11 on RHEL 6 (AWS Linux), kallen, 06/21/2013
Archive powered by MHonArc 2.6.16.