Problem installing chef server on Ubuntu 10.04 LTS

Hi,

I am trying to install chef-server on a fresh copy of ubuntu 10.04 but I get an error when it gets to rabbitmq. I am afraid i don’t understand what the rabbitmq error message means - any help would be much appreciated!

CONSOLE OUTPUT:
Setting up libmerb-core-ruby1.8 (1.0.12+dfsg-4) …
Setting up merb-core (1.0.12+dfsg-4) …
Setting up libmerb-assets-ruby1.8 (1.0.12+dfsg-4) …
Setting up libmerb-assets-ruby (1.0.12+dfsg-4) …
Setting up libmerb-haml-ruby1.8 (1.0.12+dfsg-4) …
Setting up libmerb-haml-ruby (1.0.12+dfsg-4) …
Setting up libmerb-helpers-ruby1.8 (1.0.12+dfsg-4) …
Setting up libmerb-helpers-ruby (1.0.12+dfsg-4) …
Setting up rabbitmq-server (1.7.2-1ubuntu1) …
Adding group rabbitmq' (GID 108) ... Done. Adding system userrabbitmq’ (UID 104) …
Adding new user rabbitmq' (UID 104) with grouprabbitmq’ …
Not creating home directory `/var/lib/rabbitmq’.
Starting rabbitmq-server: FAILED - check /var/log/rabbitmq/startup_log, _err
rabbitmq-server.
invoke-rc.d: initscript rabbitmq-server, action “start” failed.
dpkg: error processing rabbitmq-server (–configure):
subprocess installed post-installation script returned error exit status 1
Setting up libchef-ruby (0.9.18+dfsg-1) …
dpkg: dependency problems prevent configuration of chef-solr:
chef-solr depends on rabbitmq-server (>= 1.6); however:
Package rabbitmq-server is not configured yet.
dpkg: error processing chef-solr (–configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of chef-server-api:
chef-server-api depends on rabbitmq-server (>= 1.6); however:
Package rabbitmq-server is not configured yet.
chef-server-api depends on chef-solr (= 0.9.18+dfsg-1); however:
Package chef-solr is not configured yet.
dpkg: error processing chef-server-api (–configure):
dependency problems - leaving unconfigured
Setting up libmerb-param-protection-ruby1.8 (1.0.12+dfsg-4) …
No apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because the error message indicates its a followup error from a previous failure.
Setting up libmerb-param-protection-ruby (1.0.12+dfsg-4) …
Setting up libcoderay-ruby1.8 (0.9.1-0ubuntu1) …
Setting up libcoderay-ruby (0.9.1-0ubuntu1) …
dpkg: dependency problems prevent configuration of chef-server:
chef-server depends on chef-server-api (= 0.9.18+dfsg-1); however:
Package chef-server-api is not configured yet.
chef-server depends on chef-solr (= 0.9.18+dfsg-1); however:
Package chef-solr is not configured yet.
dpkg: error processing chef-server (–configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of chef-server-webui:
chef-server-webui depends on chef-server (= 0.9.18+dfsg-1); however:
Package chef-server is not configured yet.
dpkg: error processing chef-server-webui (–configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
Processing triggers for python-central …
Setting up libgcj10 (4.4.3-1ubuntu4.1) …

Setting up libgcj-bc (4.4.3-4ubuntu1) …
Setting up gcj-4.4-jre-lib (4.4.3-1ubuntu4.1) …
Setting up libdb4.7-java-gcj (4.7.25-9) …

Setting up openjdk-6-jre-headless (6b20-1.9.9-0ubuntu1~10.04.2) …
update-alternatives: using /usr/lib/jvm/java-6-openjdk/jre/bin/java to provide /usr/bin/java (java) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-openjdk/jre/bin/keytool to provide /usr/bin/keytool (keytool) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-openjdk/jre/bin/pack200 to provide /usr/bin/pack200 (pack200) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-openjdk/jre/bin/rmid to provide /usr/bin/rmid (rmid) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-openjdk/jre/bin/rmiregistry to provide /usr/bin/rmiregistry (rmiregistry) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-openjdk/jre/bin/unpack200 to provide /usr/bin/unpack200 (unpack200) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-openjdk/jre/bin/orbd to provide /usr/bin/orbd (orbd) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-openjdk/jre/bin/servertool to provide /usr/bin/servertool (servertool) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-openjdk/jre/bin/tnameserv to provide /usr/bin/tnameserv (tnameserv) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-openjdk/jre/lib/jexec to provide /usr/bin/jexec (jexec) in auto mode.

Setting up openjdk-6-jre-lib (6b20-1.9.9-0ubuntu1~10.04.2) …

Setting up libjaxp1.3-java (1.3.04-5ubuntu3) …
Setting up libxerces2-java (2.9.1-4ubuntu1) …
Setting up ant (1.7.1-4ubuntu1.1) …
Setting up ant-gcj (1.7.1-4ubuntu1.1) …

Setting up ant-optional (1.7.1-4ubuntu1.1) …
Setting up ant-optional-gcj (1.7.1-4ubuntu1.1) …

Setting up libservlet2.5-java (6.0.24-2ubuntu1.9) …
Setting up libslf4j-java (1.5.10-1) …
Setting up libjetty-java (6.1.22-1ubuntu1) …
Setting up libcommons-daemon-java (1.0.2~svn20061127-10ubuntu1) …
Setting up jsvc (1.0.2~svn20061127-10ubuntu1) …
Setting up jetty (6.1.22-1ubuntu1) …
Adding system user jetty' (UID 105) ... Adding new groupjetty’ (GID 109) …
Adding new user jetty' (UID 105) with groupjetty’ …
Not creating home directory `/usr/share/jetty’.

  • Not starting jetty - edit /etc/default/jetty and change NO_START to be 0 (or comment it out).

Setting up libregexp-java (1.5-2) …
Setting up libbcel-java (5.2-6) …
Setting up libcommons-collections3-java (3.2.1-4) …
Setting up libcommons-logging-java (1.1.1-7) …
Setting up libcommons-beanutils-java (1.8.2-1) …
Setting up libcommons-codec-java (1.4-2) …
Setting up libcommons-collections-java (2.1.1-9) …
Setting up libcommons-compress-java (1.0-1) …
Setting up libcommons-csv-java (0.1-SNAPSHOT+svn678580-1ubuntu0.1) …
Setting up libcommons-pool-java (1.5.3-1ubuntu1) …
Setting up libcommons-dbcp-java (1.3~svn828639-1ubuntu1) …
Setting up libcommons-digester-java (1.8.1-2) …
Setting up libcommons-io-java (1.4-2ubuntu1) …
Setting up libcommons-fileupload-java (1.2.1-3ubuntu2) …
Setting up libcommons-httpclient-java (3.1-9) …
Setting up libdb-je-java (3.3.62-3) …
Setting up libgnuinet-java (1.1.1-4) …
Setting up libgnujaf-java (1.1.1-5) …
Setting up libgnumail-java (1.1.2-4) …
Setting up libicu4j-java (4.0.1.1-1) …
Setting up liblog4j1.2-java (1.2.15-9ubuntu2) …
Setting up libmx4j-java (3.0.2-8ubuntu1) …
Setting up libtomcat6-java (6.0.24-2ubuntu1.9) …
Setting up libjetty-extra-java (6.1.22-1ubuntu1) …
Setting up libjetty-extra (6.1.22-1ubuntu1) …
Setting up libjline-java (0.9.94-5) …
Setting up libjtidy-java (7+svn20070309-4) …
Setting up liblucene2-java (2.9.2+ds1-1) …
Setting up libxml-commons-external-java (1.3.05-1) …
Setting up solr-common (1.4.0+ds1-1ubuntu1) …

Setting up solr-jetty (1.4.0+ds1-1ubuntu1) …

  • Not starting jetty - edit /etc/default/jetty and change NO_START to be 0 (or comment it out).

Setting up icedtea-6-jre-cacao (6b20-1.9.9-0ubuntu1~10.04.2) …
Setting up default-jre-headless (1.6-34) …
Setting up ca-certificates-java (20100406ubuntu1) …
creating /etc/ssl/certs/java/cacerts…
removed untrusted certificate mozilla/DigiNotar_Root_CA.crt
done.

Processing triggers for libc-bin …
ldconfig deferred processing now taking place
Errors were encountered while processing:
rabbitmq-server
chef-solr
chef-server-api
chef-server
chef-server-webui
E: Sub-process /usr/bin/dpkg returned an error code (1)

STARTUP_LOG:
Starting all nodes…
Starting node rabbit@svr004…
{error_logger,{{2011,11,11},{1,44,44}},“Protocol: ~p: register error: ~p~n”,[“inet_tcp”,{{badmatch,{error,duplicate_name}},[{inet_tcp_dist,listen,1},{net_kernel,start_protos,4},{net_kernel,start_protos,3},{net_kernel,init_node,2},{net_kernel,init,1},{gen_server,init_it,6},{proc_lib,init_p_do_apply,3}]}]}^M
{error_logger,{{2011,11,11},{1,44,44}},crash_report,[[{initial_call,{net_kernel,init,[‘Argument__1’]}},{pid,<0.21.0>},{registered_name,[]},{error_info,{exit,{error,badarg},[{gen_server,init_it,6},{proc_lib,init_p_do_apply,3}]}},{ancestors,[net_sup,kernel_sup,<0.10.0>]},{messages,[]},{links,[#Port<0.117>,<0.18.0>]},{dictionary,[{longnames,false}]},{trap_exit,true},{status,running},{heap_size,233},{stack_size,24},{reductions,471}],[]]}^M
{error_logger,{{2011,11,11},{1,44,44}},supervisor_report,[{supervisor,{local,net_sup}},{errorContext,start_error},{reason,{‘EXIT’,nodistribution}},{offender,[{pid,undefined},{name,net_kernel},{mfa,{net_kernel,start_link,[[rabbit,shortnames]]}},{restart_type,permanent},{shutdown,2000},{child_type,worker}]}]}^M
{error_logger,{{2011,11,11},{1,44,44}},supervisor_report,[{supervisor,{local,kernel_sup}},{errorContext,start_error},{reason,shutdown},{offender,[{pid,undefined},{name,net_sup},{mfa,{erl_distribution,start_link,[]}},{restart_type,permanent},{shutdown,infinity},{child_type,supervisor}]}]}^M
{error_logger,{{2011,11,11},{1,44,44}},std_info,[{application,kernel},{exited,{shutdown,{kernel,start,[normal,[]]}}},{type,permanent}]}^M
{“Kernel pid terminated”,application_controller,"{application_start_failure,kernel,{shutdown,{kernel,start,[normal,[]]}}}"}^M

STARTUP_ERR:
Error: {node_start_failed,normal}
^M
Crash dump was written to: erl_crash.dump^M
Kernel pid terminated (application_controller) ({application_start_failure,kernel,{shutdown,{kernel,start,[normal,[]]}}})^M

I've had this exact same error, rabbitmq got held up, chef-server
wouldn't start properly from 'sudo ervice chef-server start' and the
validation.pem and webui.pem keys were never generated.

On Fri, 2011-11-11 at 15:56 +0800, Sam Hamilton wrote:

Hi,

I am trying to install chef-server on a fresh copy of ubuntu 10.04 but I get an error when it gets to rabbitmq. I am afraid i don't understand what the rabbitmq error message means - any help would be much appreciated!

CONSOLE OUTPUT:
Setting up libmerb-core-ruby1.8 (1.0.12+dfsg-4) ...
Setting up merb-core (1.0.12+dfsg-4) ...
Setting up libmerb-assets-ruby1.8 (1.0.12+dfsg-4) ...
Setting up libmerb-assets-ruby (1.0.12+dfsg-4) ...
Setting up libmerb-haml-ruby1.8 (1.0.12+dfsg-4) ...
Setting up libmerb-haml-ruby (1.0.12+dfsg-4) ...
Setting up libmerb-helpers-ruby1.8 (1.0.12+dfsg-4) ...
Setting up libmerb-helpers-ruby (1.0.12+dfsg-4) ...
Setting up rabbitmq-server (1.7.2-1ubuntu1) ...
Adding group rabbitmq' (GID 108) ... Done. Adding system user rabbitmq' (UID 104) ...
Adding new user rabbitmq' (UID 104) with group rabbitmq' ...
Not creating home directory `/var/lib/rabbitmq'.
Starting rabbitmq-server: FAILED - check /var/log/rabbitmq/startup_log, _err
rabbitmq-server.
invoke-rc.d: initscript rabbitmq-server, action "start" failed.
dpkg: error processing rabbitmq-server (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up libchef-ruby (0.9.18+dfsg-1) ...
dpkg: dependency problems prevent configuration of chef-solr:
chef-solr depends on rabbitmq-server (>= 1.6); however:
Package rabbitmq-server is not configured yet.
dpkg: error processing chef-solr (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of chef-server-api:
chef-server-api depends on rabbitmq-server (>= 1.6); however:
Package rabbitmq-server is not configured yet.
chef-server-api depends on chef-solr (= 0.9.18+dfsg-1); however:
Package chef-solr is not configured yet.
dpkg: error processing chef-server-api (--configure):
dependency problems - leaving unconfigured
Setting up libmerb-param-protection-ruby1.8 (1.0.12+dfsg-4) ...
No apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because the error message indicates its a followup error from a previous failure.
Setting up libmerb-param-protection-ruby (1.0.12+dfsg-4) ...
Setting up libcoderay-ruby1.8 (0.9.1-0ubuntu1) ...
Setting up libcoderay-ruby (0.9.1-0ubuntu1) ...
dpkg: dependency problems prevent configuration of chef-server:
chef-server depends on chef-server-api (= 0.9.18+dfsg-1); however:
Package chef-server-api is not configured yet.
chef-server depends on chef-solr (= 0.9.18+dfsg-1); however:
Package chef-solr is not configured yet.
dpkg: error processing chef-server (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of chef-server-webui:
chef-server-webui depends on chef-server (= 0.9.18+dfsg-1); however:
Package chef-server is not configured yet.
dpkg: error processing chef-server-webui (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
Processing triggers for python-central ...
Setting up libgcj10 (4.4.3-1ubuntu4.1) ...

Setting up libgcj-bc (4.4.3-4ubuntu1) ...
Setting up gcj-4.4-jre-lib (4.4.3-1ubuntu4.1) ...
Setting up libdb4.7-java-gcj (4.7.25-9) ...

Setting up openjdk-6-jre-headless (6b20-1.9.9-0ubuntu1~10.04.2) ...
update-alternatives: using /usr/lib/jvm/java-6-openjdk/jre/bin/java to provide /usr/bin/java (java) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-openjdk/jre/bin/keytool to provide /usr/bin/keytool (keytool) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-openjdk/jre/bin/pack200 to provide /usr/bin/pack200 (pack200) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-openjdk/jre/bin/rmid to provide /usr/bin/rmid (rmid) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-openjdk/jre/bin/rmiregistry to provide /usr/bin/rmiregistry (rmiregistry) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-openjdk/jre/bin/unpack200 to provide /usr/bin/unpack200 (unpack200) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-openjdk/jre/bin/orbd to provide /usr/bin/orbd (orbd) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-openjdk/jre/bin/servertool to provide /usr/bin/servertool (servertool) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-openjdk/jre/bin/tnameserv to provide /usr/bin/tnameserv (tnameserv) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-openjdk/jre/lib/jexec to provide /usr/bin/jexec (jexec) in auto mode.

Setting up openjdk-6-jre-lib (6b20-1.9.9-0ubuntu1~10.04.2) ...

Setting up libjaxp1.3-java (1.3.04-5ubuntu3) ...
Setting up libxerces2-java (2.9.1-4ubuntu1) ...
Setting up ant (1.7.1-4ubuntu1.1) ...
Setting up ant-gcj (1.7.1-4ubuntu1.1) ...

Setting up ant-optional (1.7.1-4ubuntu1.1) ...
Setting up ant-optional-gcj (1.7.1-4ubuntu1.1) ...

Setting up libservlet2.5-java (6.0.24-2ubuntu1.9) ...
Setting up libslf4j-java (1.5.10-1) ...
Setting up libjetty-java (6.1.22-1ubuntu1) ...
Setting up libcommons-daemon-java (1.0.2~svn20061127-10ubuntu1) ...
Setting up jsvc (1.0.2~svn20061127-10ubuntu1) ...
Setting up jetty (6.1.22-1ubuntu1) ...
Adding system user jetty' (UID 105) ... Adding new group jetty' (GID 109) ...
Adding new user jetty' (UID 105) with group jetty' ...
Not creating home directory `/usr/share/jetty'.

  • Not starting jetty - edit /etc/default/jetty and change NO_START to be 0 (or comment it out).

Setting up libregexp-java (1.5-2) ...
Setting up libbcel-java (5.2-6) ...
Setting up libcommons-collections3-java (3.2.1-4) ...
Setting up libcommons-logging-java (1.1.1-7) ...
Setting up libcommons-beanutils-java (1.8.2-1) ...
Setting up libcommons-codec-java (1.4-2) ...
Setting up libcommons-collections-java (2.1.1-9) ...
Setting up libcommons-compress-java (1.0-1) ...
Setting up libcommons-csv-java (0.1-SNAPSHOT+svn678580-1ubuntu0.1) ...
Setting up libcommons-pool-java (1.5.3-1ubuntu1) ...
Setting up libcommons-dbcp-java (1.3~svn828639-1ubuntu1) ...
Setting up libcommons-digester-java (1.8.1-2) ...
Setting up libcommons-io-java (1.4-2ubuntu1) ...
Setting up libcommons-fileupload-java (1.2.1-3ubuntu2) ...
Setting up libcommons-httpclient-java (3.1-9) ...
Setting up libdb-je-java (3.3.62-3) ...
Setting up libgnuinet-java (1.1.1-4) ...
Setting up libgnujaf-java (1.1.1-5) ...
Setting up libgnumail-java (1.1.2-4) ...
Setting up libicu4j-java (4.0.1.1-1) ...
Setting up liblog4j1.2-java (1.2.15-9ubuntu2) ...
Setting up libmx4j-java (3.0.2-8ubuntu1) ...
Setting up libtomcat6-java (6.0.24-2ubuntu1.9) ...
Setting up libjetty-extra-java (6.1.22-1ubuntu1) ...
Setting up libjetty-extra (6.1.22-1ubuntu1) ...
Setting up libjline-java (0.9.94-5) ...
Setting up libjtidy-java (7+svn20070309-4) ...
Setting up liblucene2-java (2.9.2+ds1-1) ...
Setting up libxml-commons-external-java (1.3.05-1) ...
Setting up solr-common (1.4.0+ds1-1ubuntu1) ...

Setting up solr-jetty (1.4.0+ds1-1ubuntu1) ...

  • Not starting jetty - edit /etc/default/jetty and change NO_START to be 0 (or comment it out).

Setting up icedtea-6-jre-cacao (6b20-1.9.9-0ubuntu1~10.04.2) ...
Setting up default-jre-headless (1.6-34) ...
Setting up ca-certificates-java (20100406ubuntu1) ...
creating /etc/ssl/certs/java/cacerts...
removed untrusted certificate mozilla/DigiNotar_Root_CA.crt
done.

Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
rabbitmq-server
chef-solr
chef-server-api
chef-server
chef-server-webui
E: Sub-process /usr/bin/dpkg returned an error code (1)

STARTUP_LOG:
Starting all nodes...
Starting node rabbit@svr004...
{error_logger,{{2011,11,11},{1,44,44}},"Protocol: ~p: register error: ~p~n",["inet_tcp",{{badmatch,{error,duplicate_name}},[{inet_tcp_dist,listen,1},{net_kernel,start_protos,4},{net_kernel,start_protos,3},{net_kernel,init_node,2},{net_kernel,init,1},{gen_server,init_it,6},{proc_lib,init_p_do_apply,3}]}]}^M
{error_logger,{{2011,11,11},{1,44,44}},crash_report,[[{initial_call,{net_kernel,init,['Argument__1']}},{pid,<0.21.0>},{registered_name,},{error_info,{exit,{error,badarg},[{gen_server,init_it,6},{proc_lib,init_p_do_apply,3}]}},{ancestors,[net_sup,kernel_sup,<0.10.0>]},{messages,},{links,[#Port<0.117>,<0.18.0>]},{dictionary,[{longnames,false}]},{trap_exit,true},{status,running},{heap_size,233},{stack_size,24},{reductions,471}],]}^M
{error_logger,{{2011,11,11},{1,44,44}},supervisor_report,[{supervisor,{local,net_sup}},{errorContext,start_error},{reason,{'EXIT',nodistribution}},{offender,[{pid,undefined},{name,net_kernel},{mfa,{net_kernel,start_link,[[rabbit,shortnames]]}},{restart_type,permanent},{shutdown,2000},{child_type,worker}]}]}^M
{error_logger,{{2011,11,11},{1,44,44}},supervisor_report,[{supervisor,{local,kernel_sup}},{errorContext,start_error},{reason,shutdown},{offender,[{pid,undefined},{name,net_sup},{mfa,{erl_distribution,start_link,}},{restart_type,permanent},{shutdown,infinity},{child_type,supervisor}]}]}^M
{error_logger,{{2011,11,11},{1,44,44}},std_info,[{application,kernel},{exited,{shutdown,{kernel,start,[normal,]}}},{type,permanent}]}^M
{"Kernel pid terminated",application_controller,"{application_start_failure,kernel,{shutdown,{kernel,start,[normal,]}}}"}^M

STARTUP_ERR:
Error: {node_start_failed,normal}
^M
Crash dump was written to: erl_crash.dump^M
Kernel pid terminated (application_controller) ({application_start_failure,kernel,{shutdown,{kernel,start,[normal,]}}})^M

So does anyone know a work around?

Thanks
Sam

On 11 Nov 2011, at 15:58, trevor stanhope wrote:

I've had this exact same error, rabbitmq got held up, chef-server
wouldn't start properly from 'sudo ervice chef-server start' and the
validation.pem and webui.pem keys were never generated.

On Fri, 2011-11-11 at 15:56 +0800, Sam Hamilton wrote:

Hi,

I am trying to install chef-server on a fresh copy of ubuntu 10.04 but I get an error when it gets to rabbitmq. I am afraid i don't understand what the rabbitmq error message means - any help would be much appreciated!

CONSOLE OUTPUT:
Setting up libmerb-core-ruby1.8 (1.0.12+dfsg-4) ...
Setting up merb-core (1.0.12+dfsg-4) ...
Setting up libmerb-assets-ruby1.8 (1.0.12+dfsg-4) ...
Setting up libmerb-assets-ruby (1.0.12+dfsg-4) ...
Setting up libmerb-haml-ruby1.8 (1.0.12+dfsg-4) ...
Setting up libmerb-haml-ruby (1.0.12+dfsg-4) ...
Setting up libmerb-helpers-ruby1.8 (1.0.12+dfsg-4) ...
Setting up libmerb-helpers-ruby (1.0.12+dfsg-4) ...
Setting up rabbitmq-server (1.7.2-1ubuntu1) ...
Adding group rabbitmq' (GID 108) ... Done. Adding system user rabbitmq' (UID 104) ...
Adding new user rabbitmq' (UID 104) with group rabbitmq' ...
Not creating home directory `/var/lib/rabbitmq'.
Starting rabbitmq-server: FAILED - check /var/log/rabbitmq/startup_log, _err
rabbitmq-server.
invoke-rc.d: initscript rabbitmq-server, action "start" failed.
dpkg: error processing rabbitmq-server (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up libchef-ruby (0.9.18+dfsg-1) ...
dpkg: dependency problems prevent configuration of chef-solr:
chef-solr depends on rabbitmq-server (>= 1.6); however:
Package rabbitmq-server is not configured yet.
dpkg: error processing chef-solr (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of chef-server-api:
chef-server-api depends on rabbitmq-server (>= 1.6); however:
Package rabbitmq-server is not configured yet.
chef-server-api depends on chef-solr (= 0.9.18+dfsg-1); however:
Package chef-solr is not configured yet.
dpkg: error processing chef-server-api (--configure):
dependency problems - leaving unconfigured
Setting up libmerb-param-protection-ruby1.8 (1.0.12+dfsg-4) ...
No apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because the error message indicates its a followup error from a previous failure.
Setting up libmerb-param-protection-ruby (1.0.12+dfsg-4) ...
Setting up libcoderay-ruby1.8 (0.9.1-0ubuntu1) ...
Setting up libcoderay-ruby (0.9.1-0ubuntu1) ...
dpkg: dependency problems prevent configuration of chef-server:
chef-server depends on chef-server-api (= 0.9.18+dfsg-1); however:
Package chef-server-api is not configured yet.
chef-server depends on chef-solr (= 0.9.18+dfsg-1); however:
Package chef-solr is not configured yet.
dpkg: error processing chef-server (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of chef-server-webui:
chef-server-webui depends on chef-server (= 0.9.18+dfsg-1); however:
Package chef-server is not configured yet.
dpkg: error processing chef-server-webui (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
Processing triggers for python-central ...
Setting up libgcj10 (4.4.3-1ubuntu4.1) ...

Setting up libgcj-bc (4.4.3-4ubuntu1) ...
Setting up gcj-4.4-jre-lib (4.4.3-1ubuntu4.1) ...
Setting up libdb4.7-java-gcj (4.7.25-9) ...

Setting up openjdk-6-jre-headless (6b20-1.9.9-0ubuntu1~10.04.2) ...
update-alternatives: using /usr/lib/jvm/java-6-openjdk/jre/bin/java to provide /usr/bin/java (java) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-openjdk/jre/bin/keytool to provide /usr/bin/keytool (keytool) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-openjdk/jre/bin/pack200 to provide /usr/bin/pack200 (pack200) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-openjdk/jre/bin/rmid to provide /usr/bin/rmid (rmid) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-openjdk/jre/bin/rmiregistry to provide /usr/bin/rmiregistry (rmiregistry) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-openjdk/jre/bin/unpack200 to provide /usr/bin/unpack200 (unpack200) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-openjdk/jre/bin/orbd to provide /usr/bin/orbd (orbd) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-openjdk/jre/bin/servertool to provide /usr/bin/servertool (servertool) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-openjdk/jre/bin/tnameserv to provide /usr/bin/tnameserv (tnameserv) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-openjdk/jre/lib/jexec to provide /usr/bin/jexec (jexec) in auto mode.

Setting up openjdk-6-jre-lib (6b20-1.9.9-0ubuntu1~10.04.2) ...

Setting up libjaxp1.3-java (1.3.04-5ubuntu3) ...
Setting up libxerces2-java (2.9.1-4ubuntu1) ...
Setting up ant (1.7.1-4ubuntu1.1) ...
Setting up ant-gcj (1.7.1-4ubuntu1.1) ...

Setting up ant-optional (1.7.1-4ubuntu1.1) ...
Setting up ant-optional-gcj (1.7.1-4ubuntu1.1) ...

Setting up libservlet2.5-java (6.0.24-2ubuntu1.9) ...
Setting up libslf4j-java (1.5.10-1) ...
Setting up libjetty-java (6.1.22-1ubuntu1) ...
Setting up libcommons-daemon-java (1.0.2~svn20061127-10ubuntu1) ...
Setting up jsvc (1.0.2~svn20061127-10ubuntu1) ...
Setting up jetty (6.1.22-1ubuntu1) ...
Adding system user jetty' (UID 105) ... Adding new group jetty' (GID 109) ...
Adding new user jetty' (UID 105) with group jetty' ...
Not creating home directory `/usr/share/jetty'.

  • Not starting jetty - edit /etc/default/jetty and change NO_START to be 0 (or comment it out).

Setting up libregexp-java (1.5-2) ...
Setting up libbcel-java (5.2-6) ...
Setting up libcommons-collections3-java (3.2.1-4) ...
Setting up libcommons-logging-java (1.1.1-7) ...
Setting up libcommons-beanutils-java (1.8.2-1) ...
Setting up libcommons-codec-java (1.4-2) ...
Setting up libcommons-collections-java (2.1.1-9) ...
Setting up libcommons-compress-java (1.0-1) ...
Setting up libcommons-csv-java (0.1-SNAPSHOT+svn678580-1ubuntu0.1) ...
Setting up libcommons-pool-java (1.5.3-1ubuntu1) ...
Setting up libcommons-dbcp-java (1.3~svn828639-1ubuntu1) ...
Setting up libcommons-digester-java (1.8.1-2) ...
Setting up libcommons-io-java (1.4-2ubuntu1) ...
Setting up libcommons-fileupload-java (1.2.1-3ubuntu2) ...
Setting up libcommons-httpclient-java (3.1-9) ...
Setting up libdb-je-java (3.3.62-3) ...
Setting up libgnuinet-java (1.1.1-4) ...
Setting up libgnujaf-java (1.1.1-5) ...
Setting up libgnumail-java (1.1.2-4) ...
Setting up libicu4j-java (4.0.1.1-1) ...
Setting up liblog4j1.2-java (1.2.15-9ubuntu2) ...
Setting up libmx4j-java (3.0.2-8ubuntu1) ...
Setting up libtomcat6-java (6.0.24-2ubuntu1.9) ...
Setting up libjetty-extra-java (6.1.22-1ubuntu1) ...
Setting up libjetty-extra (6.1.22-1ubuntu1) ...
Setting up libjline-java (0.9.94-5) ...
Setting up libjtidy-java (7+svn20070309-4) ...
Setting up liblucene2-java (2.9.2+ds1-1) ...
Setting up libxml-commons-external-java (1.3.05-1) ...
Setting up solr-common (1.4.0+ds1-1ubuntu1) ...

Setting up solr-jetty (1.4.0+ds1-1ubuntu1) ...

  • Not starting jetty - edit /etc/default/jetty and change NO_START to be 0 (or comment it out).

Setting up icedtea-6-jre-cacao (6b20-1.9.9-0ubuntu1~10.04.2) ...
Setting up default-jre-headless (1.6-34) ...
Setting up ca-certificates-java (20100406ubuntu1) ...
creating /etc/ssl/certs/java/cacerts...
removed untrusted certificate mozilla/DigiNotar_Root_CA.crt
done.

Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
rabbitmq-server
chef-solr
chef-server-api
chef-server
chef-server-webui
E: Sub-process /usr/bin/dpkg returned an error code (1)

STARTUP_LOG:
Starting all nodes...
Starting node rabbit@svr004...
{error_logger,{{2011,11,11},{1,44,44}},"Protocol: ~p: register error: ~p~n",["inet_tcp",{{badmatch,{error,duplicate_name}},[{inet_tcp_dist,listen,1},{net_kernel,start_protos,4},{net_kernel,start_protos,3},{net_kernel,init_node,2},{net_kernel,init,1},{gen_server,init_it,6},{proc_lib,init_p_do_apply,3}]}]}^M
{error_logger,{{2011,11,11},{1,44,44}},crash_report,[[{initial_call,{net_kernel,init,['Argument__1']}},{pid,<0.21.0>},{registered_name,},{error_info,{exit,{error,badarg},[{gen_server,init_it,6},{proc_lib,init_p_do_apply,3}]}},{ancestors,[net_sup,kernel_sup,<0.10.0>]},{messages,},{links,[#Port<0.117>,<0.18.0>]},{dictionary,[{longnames,false}]},{trap_exit,true},{status,running},{heap_size,233},{stack_size,24},{reductions,471}],]}^M
{error_logger,{{2011,11,11},{1,44,44}},supervisor_report,[{supervisor,{local,net_sup}},{errorContext,start_error},{reason,{'EXIT',nodistribution}},{offender,[{pid,undefined},{name,net_kernel},{mfa,{net_kernel,start_link,[[rabbit,shortnames]]}},{restart_type,permanent},{shutdown,2000},{child_type,worker}]}]}^M
{error_logger,{{2011,11,11},{1,44,44}},supervisor_report,[{supervisor,{local,kernel_sup}},{errorContext,start_error},{reason,shutdown},{offender,[{pid,undefined},{name,net_sup},{mfa,{erl_distribution,start_link,}},{restart_type,permanent},{shutdown,infinity},{child_type,supervisor}]}]}^M
{error_logger,{{2011,11,11},{1,44,44}},std_info,[{application,kernel},{exited,{shutdown,{kernel,start,[normal,]}}},{type,permanent}]}^M
{"Kernel pid terminated",application_controller,"{application_start_failure,kernel,{shutdown,{kernel,start,[normal,]}}}"}^M

STARTUP_ERR:
Error: {node_start_failed,normal}
^M
Crash dump was written to: erl_crash.dump^M
Kernel pid terminated (application_controller) ({application_start_failure,kernel,{shutdown,{kernel,start,[normal,]}}})^M

What method of installing chef on Ubuntu did you use?

I originally used the apt-get wiki, but a webui.pem was never generated & I ran into issues during the 'knife configure -i' steps.

Ended up on Friday removing and using the bootstrap method. I'll provide the links I used when I get to work.

Also, don't be afraid to come to the Chef Infra (archive) chan on Freenode. Plenty of helpful people there

Irc.freenode.net Chef Infra (archive)

-Brendan

Sent from my iPhone

On Nov 14, 2011, at 6:30 AM, Sam Hamilton sam@sh81.com wrote:

So does anyone know a work around?

Thanks
Sam

On 11 Nov 2011, at 15:58, trevor stanhope wrote:

I've had this exact same error, rabbitmq got held up, chef-server
wouldn't start properly from 'sudo ervice chef-server start' and the
validation.pem and webui.pem keys were never generated.

On Fri, 2011-11-11 at 15:56 +0800, Sam Hamilton wrote:

Hi,

I am trying to install chef-server on a fresh copy of ubuntu 10.04 but I get an error when it gets to rabbitmq. I am afraid i don't understand what the rabbitmq error message means - any help would be much appreciated!

CONSOLE OUTPUT:
Setting up libmerb-core-ruby1.8 (1.0.12+dfsg-4) ...
Setting up merb-core (1.0.12+dfsg-4) ...
Setting up libmerb-assets-ruby1.8 (1.0.12+dfsg-4) ...
Setting up libmerb-assets-ruby (1.0.12+dfsg-4) ...
Setting up libmerb-haml-ruby1.8 (1.0.12+dfsg-4) ...
Setting up libmerb-haml-ruby (1.0.12+dfsg-4) ...
Setting up libmerb-helpers-ruby1.8 (1.0.12+dfsg-4) ...
Setting up libmerb-helpers-ruby (1.0.12+dfsg-4) ...
Setting up rabbitmq-server (1.7.2-1ubuntu1) ...
Adding group rabbitmq' (GID 108) ... Done. Adding system user rabbitmq' (UID 104) ...
Adding new user rabbitmq' (UID 104) with group rabbitmq' ...
Not creating home directory `/var/lib/rabbitmq'.
Starting rabbitmq-server: FAILED - check /var/log/rabbitmq/startup_log, _err
rabbitmq-server.
invoke-rc.d: initscript rabbitmq-server, action "start" failed.
dpkg: error processing rabbitmq-server (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up libchef-ruby (0.9.18+dfsg-1) ...
dpkg: dependency problems prevent configuration of chef-solr:
chef-solr depends on rabbitmq-server (>= 1.6); however:
Package rabbitmq-server is not configured yet.
dpkg: error processing chef-solr (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of chef-server-api:
chef-server-api depends on rabbitmq-server (>= 1.6); however:
Package rabbitmq-server is not configured yet.
chef-server-api depends on chef-solr (= 0.9.18+dfsg-1); however:
Package chef-solr is not configured yet.
dpkg: error processing chef-server-api (--configure):
dependency problems - leaving unconfigured
Setting up libmerb-param-protection-ruby1.8 (1.0.12+dfsg-4) ...
No apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because the error message indicates its a followup error from a previous failure.
Setting up libmerb-param-protection-ruby (1.0.12+dfsg-4) ...
Setting up libcoderay-ruby1.8 (0.9.1-0ubuntu1) ...
Setting up libcoderay-ruby (0.9.1-0ubuntu1) ...
dpkg: dependency problems prevent configuration of chef-server:
chef-server depends on chef-server-api (= 0.9.18+dfsg-1); however:
Package chef-server-api is not configured yet.
chef-server depends on chef-solr (= 0.9.18+dfsg-1); however:
Package chef-solr is not configured yet.
dpkg: error processing chef-server (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of chef-server-webui:
chef-server-webui depends on chef-server (= 0.9.18+dfsg-1); however:
Package chef-server is not configured yet.
dpkg: error processing chef-server-webui (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
Processing triggers for python-central ...
Setting up libgcj10 (4.4.3-1ubuntu4.1) ...

Setting up libgcj-bc (4.4.3-4ubuntu1) ...
Setting up gcj-4.4-jre-lib (4.4.3-1ubuntu4.1) ...
Setting up libdb4.7-java-gcj (4.7.25-9) ...

Setting up openjdk-6-jre-headless (6b20-1.9.9-0ubuntu1~10.04.2) ...
update-alternatives: using /usr/lib/jvm/java-6-openjdk/jre/bin/java to provide /usr/bin/java (java) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-openjdk/jre/bin/keytool to provide /usr/bin/keytool (keytool) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-openjdk/jre/bin/pack200 to provide /usr/bin/pack200 (pack200) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-openjdk/jre/bin/rmid to provide /usr/bin/rmid (rmid) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-openjdk/jre/bin/rmiregistry to provide /usr/bin/rmiregistry (rmiregistry) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-openjdk/jre/bin/unpack200 to provide /usr/bin/unpack200 (unpack200) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-openjdk/jre/bin/orbd to provide /usr/bin/orbd (orbd) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-openjdk/jre/bin/servertool to provide /usr/bin/servertool (servertool) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-openjdk/jre/bin/tnameserv to provide /usr/bin/tnameserv (tnameserv) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-openjdk/jre/lib/jexec to provide /usr/bin/jexec (jexec) in auto mode.

Setting up openjdk-6-jre-lib (6b20-1.9.9-0ubuntu1~10.04.2) ...

Setting up libjaxp1.3-java (1.3.04-5ubuntu3) ...
Setting up libxerces2-java (2.9.1-4ubuntu1) ...
Setting up ant (1.7.1-4ubuntu1.1) ...
Setting up ant-gcj (1.7.1-4ubuntu1.1) ...

Setting up ant-optional (1.7.1-4ubuntu1.1) ...
Setting up ant-optional-gcj (1.7.1-4ubuntu1.1) ...

Setting up libservlet2.5-java (6.0.24-2ubuntu1.9) ...
Setting up libslf4j-java (1.5.10-1) ...
Setting up libjetty-java (6.1.22-1ubuntu1) ...
Setting up libcommons-daemon-java (1.0.2~svn20061127-10ubuntu1) ...
Setting up jsvc (1.0.2~svn20061127-10ubuntu1) ...
Setting up jetty (6.1.22-1ubuntu1) ...
Adding system user jetty' (UID 105) ... Adding new group jetty' (GID 109) ...
Adding new user jetty' (UID 105) with group jetty' ...
Not creating home directory `/usr/share/jetty'.

  • Not starting jetty - edit /etc/default/jetty and change NO_START to be 0 (or comment it out).

Setting up libregexp-java (1.5-2) ...
Setting up libbcel-java (5.2-6) ...
Setting up libcommons-collections3-java (3.2.1-4) ...
Setting up libcommons-logging-java (1.1.1-7) ...
Setting up libcommons-beanutils-java (1.8.2-1) ...
Setting up libcommons-codec-java (1.4-2) ...
Setting up libcommons-collections-java (2.1.1-9) ...
Setting up libcommons-compress-java (1.0-1) ...
Setting up libcommons-csv-java (0.1-SNAPSHOT+svn678580-1ubuntu0.1) ...
Setting up libcommons-pool-java (1.5.3-1ubuntu1) ...
Setting up libcommons-dbcp-java (1.3~svn828639-1ubuntu1) ...
Setting up libcommons-digester-java (1.8.1-2) ...
Setting up libcommons-io-java (1.4-2ubuntu1) ...
Setting up libcommons-fileupload-java (1.2.1-3ubuntu2) ...
Setting up libcommons-httpclient-java (3.1-9) ...
Setting up libdb-je-java (3.3.62-3) ...
Setting up libgnuinet-java (1.1.1-4) ...
Setting up libgnujaf-java (1.1.1-5) ...
Setting up libgnumail-java (1.1.2-4) ...
Setting up libicu4j-java (4.0.1.1-1) ...
Setting up liblog4j1.2-java (1.2.15-9ubuntu2) ...
Setting up libmx4j-java (3.0.2-8ubuntu1) ...
Setting up libtomcat6-java (6.0.24-2ubuntu1.9) ...
Setting up libjetty-extra-java (6.1.22-1ubuntu1) ...
Setting up libjetty-extra (6.1.22-1ubuntu1) ...
Setting up libjline-java (0.9.94-5) ...
Setting up libjtidy-java (7+svn20070309-4) ...
Setting up liblucene2-java (2.9.2+ds1-1) ...
Setting up libxml-commons-external-java (1.3.05-1) ...
Setting up solr-common (1.4.0+ds1-1ubuntu1) ...

Setting up solr-jetty (1.4.0+ds1-1ubuntu1) ...

  • Not starting jetty - edit /etc/default/jetty and change NO_START to be 0 (or comment it out).

Setting up icedtea-6-jre-cacao (6b20-1.9.9-0ubuntu1~10.04.2) ...
Setting up default-jre-headless (1.6-34) ...
Setting up ca-certificates-java (20100406ubuntu1) ...
creating /etc/ssl/certs/java/cacerts...
removed untrusted certificate mozilla/DigiNotar_Root_CA.crt
done.

Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
rabbitmq-server
chef-solr
chef-server-api
chef-server
chef-server-webui
E: Sub-process /usr/bin/dpkg returned an error code (1)

STARTUP_LOG:
Starting all nodes...
Starting node rabbit@svr004...
{error_logger,{{2011,11,11},{1,44,44}},"Protocol: ~p: register error: ~p~n",["inet_tcp",{{badmatch,{error,duplicate_name}},[{inet_tcp_dist,listen,1},{net_kernel,start_protos,4},{net_kernel,start_protos,3},{net_kernel,init_node,2},{net_kernel,init,1},{gen_server,init_it,6},{proc_lib,init_p_do_apply,3}]}]}^M
{error_logger,{{2011,11,11},{1,44,44}},crash_report,[[{initial_call,{net_kernel,init,['Argument__1']}},{pid,<0.21.0>},{registered_name,},{error_info,{exit,{error,badarg},[{gen_server,init_it,6},{proc_lib,init_p_do_apply,3}]}},{ancestors,[net_sup,kernel_sup,<0.10.0>]},{messages,},{links,[#Port<0.117>,<0.18.0>]},{dictionary,[{longnames,false}]},{trap_exit,true},{status,running},{heap_size,233},{stack_size,24},{reductions,471}],]}^M
{error_logger,{{2011,11,11},{1,44,44}},supervisor_report,[{supervisor,{local,net_sup}},{errorContext,start_error},{reason,{'EXIT',nodistribution}},{offender,[{pid,undefined},{name,net_kernel},{mfa,{net_kernel,start_link,[[rabbit,shortnames]]}},{restart_type,permanent},{shutdown,2000},{child_type,worker}]}]}^M
{error_logger,{{2011,11,11},{1,44,44}},supervisor_report,[{supervisor,{local,kernel_sup}},{errorContext,start_error},{reason,shutdown},{offender,[{pid,undefined},{name,net_sup},{mfa,{erl_distribution,start_link,}},{restart_type,permanent},{shutdown,infinity},{child_type,supervisor}]}]}^M
{error_logger,{{2011,11,11},{1,44,44}},std_info,[{application,kernel},{exited,{shutdown,{kernel,start,[normal,]}}},{type,permanent}]}^M
{"Kernel pid terminated",application_controller,"{application_start_failure,kernel,{shutdown,{kernel,start,[normal,]}}}"}^M

STARTUP_ERR:
Error: {node_start_failed,normal}
^M
Crash dump was written to: erl_crash.dump^M
Kernel pid terminated (application_controller) ({application_start_failure,kernel,{shutdown,{kernel,start,[normal,]}}})^M

On Fri, Nov 11, 2011 at 2:56 AM, Sam Hamilton sam@sh81.com wrote:

{error_logger,{{2011,11,11},{1,44,44}},"Protocol: ~p: register error: ~p~n",["inet_tcp",{{badmatch,{error,duplicate_name}},[{inet_tcp_dist,listen,1},{net_kernel,start_protos,4},{net_kernel,start_protos,3},{net_kernel,init_node,2},{net_kernel,init,1},{gen_server,init_it,6},{proc_lib,init_p_do_apply,3}]}]}^M

It looks like rabbitmq didn't start because it was already running (or
something else was using its port). It should be running on port 5672.
You could run 'sudo netstat -lnp | grep 5672' to see what program is
running on that port. Perhaps did you install rabbitmq from source
previously on this system, and then try to install the debian packages
over the top?

When you find this process you could kill it and then run 'sudo
apt-get install -f' to continue the apt installation.

I strongly recommend choosing either an entirely apt based
installation or a source based installation, at least until you're
more familiar with the infrastructure that Chef utilizes to implement
a service oriented architecture.

Bryan

Sam,

To follow up my email from earlier, I originally used the guide:
http://wiki.opscode.com/display/chef/Installing+Chef+Server+on+Debian+or+Ubuntu+using+Packages

I was able to get up to 'Configure the Command Line Client' which states
to do:

sudo cp /etc/chef/validation.pem /etc/chef/webui.pem ~/.chef

The problem I ran into was that the /etc/chef/webui.pem file did not
exist. This was confirmed running 'knife configure -i' and it erroring
out for File Not Found.

I'm not sure how/why it wasn't created and I was able to briefly speak
to ssd7 on the irc chan, but he needed to step away.

Once I began asking for help and ran into these issues, the suggested
method was to use Chef Solo to install Chef Server. I'm in the process
of doing that method of installation now and we'll see where it leads.
Here is the URL to that walkthrough

http://wiki.opscode.com/display/chef/Installing+Chef+Server+using+Chef+Solo
||

Brendan Murtagh
Email Administrator / IT Coordinator
PHONE: (610) 874-5000 x2232
FAX: (610) 874-5030
WEB: http://www.powerhrg.com

Power Home Remodeling Group

Awarded Window & Door Magazine's Dealer of the Year
Awarded The Top Workplace for Mid-Sized Companies by Philadelphia Inquirer
Awarded to the Inc. 5000 Fastest Growing Companies List

/Visit our other websites and social platforms:/ Facebook
http://www.facebook.com/PowerHRG | YouTube
http://www.youtube.com/PowerHRG | PHRG Reviews
http://www.phrgreviews.com | Total Care Installs
http://www.totalcareinstalls.com

Power Home Remodeling Group is an equal opportunity employer, committed
to hiring a diverse and talented workforce. Confidentiality Notice:
Please be advised that no quotes, agreements, or understandings
involving Power Home Remodeling Group, will be binding unless and until
codified in a written document signed by an officer of the company. The
information transmitted by this email is intended only for the use of
the addressee(s) and may contain confidential and/or privileged
information. Any interception, review, retransmission, dissemination, or
other use of, or taking any action upon this information by persons or
entities other than the intended recipient(s) is prohibited by law and
may subject them to criminal or civil liability. If you have received
this communication in error, please contact us immediately at (610)
874-5000 and delete the message from any computer or other storage system.

On 11/11/2011 2:56 AM, Sam Hamilton wrote:

Hi,

I am trying to install chef-server on a fresh copy of ubuntu 10.04 but I get an error when it gets to rabbitmq. I am afraid i don't understand what the rabbitmq error message means - any help would be much appreciated!

CONSOLE OUTPUT:
Setting up libmerb-core-ruby1.8 (1.0.12+dfsg-4) ...
Setting up merb-core (1.0.12+dfsg-4) ...
Setting up libmerb-assets-ruby1.8 (1.0.12+dfsg-4) ...
Setting up libmerb-assets-ruby (1.0.12+dfsg-4) ...
Setting up libmerb-haml-ruby1.8 (1.0.12+dfsg-4) ...
Setting up libmerb-haml-ruby (1.0.12+dfsg-4) ...
Setting up libmerb-helpers-ruby1.8 (1.0.12+dfsg-4) ...
Setting up libmerb-helpers-ruby (1.0.12+dfsg-4) ...
Setting up rabbitmq-server (1.7.2-1ubuntu1) ...
Adding group rabbitmq' (GID 108) ... Done. Adding system user rabbitmq' (UID 104) ...
Adding new user rabbitmq' (UID 104) with group rabbitmq' ...
Not creating home directory `/var/lib/rabbitmq'.
Starting rabbitmq-server: FAILED - check /var/log/rabbitmq/startup_log, _err
rabbitmq-server.
invoke-rc.d: initscript rabbitmq-server, action "start" failed.
dpkg: error processing rabbitmq-server (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up libchef-ruby (0.9.18+dfsg-1) ...
dpkg: dependency problems prevent configuration of chef-solr:
chef-solr depends on rabbitmq-server (>= 1.6); however:
Package rabbitmq-server is not configured yet.
dpkg: error processing chef-solr (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of chef-server-api:
chef-server-api depends on rabbitmq-server (>= 1.6); however:
Package rabbitmq-server is not configured yet.
chef-server-api depends on chef-solr (= 0.9.18+dfsg-1); however:
Package chef-solr is not configured yet.
dpkg: error processing chef-server-api (--configure):
dependency problems - leaving unconfigured
Setting up libmerb-param-protection-ruby1.8 (1.0.12+dfsg-4) ...
No apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because the error message indicates its a followup error from a previous failure.
Setting up libmerb-param-protection-ruby (1.0.12+dfsg-4) ...
Setting up libcoderay-ruby1.8 (0.9.1-0ubuntu1) ...
Setting up libcoderay-ruby (0.9.1-0ubuntu1) ...
dpkg: dependency problems prevent configuration of chef-server:
chef-server depends on chef-server-api (= 0.9.18+dfsg-1); however:
Package chef-server-api is not configured yet.
chef-server depends on chef-solr (= 0.9.18+dfsg-1); however:
Package chef-solr is not configured yet.
dpkg: error processing chef-server (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of chef-server-webui:
chef-server-webui depends on chef-server (= 0.9.18+dfsg-1); however:
Package chef-server is not configured yet.
dpkg: error processing chef-server-webui (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
Processing triggers for python-central ...
Setting up libgcj10 (4.4.3-1ubuntu4.1) ...

Setting up libgcj-bc (4.4.3-4ubuntu1) ...
Setting up gcj-4.4-jre-lib (4.4.3-1ubuntu4.1) ...
Setting up libdb4.7-java-gcj (4.7.25-9) ...

Setting up openjdk-6-jre-headless (6b20-1.9.9-0ubuntu1~10.04.2) ...
update-alternatives: using /usr/lib/jvm/java-6-openjdk/jre/bin/java to provide /usr/bin/java (java) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-openjdk/jre/bin/keytool to provide /usr/bin/keytool (keytool) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-openjdk/jre/bin/pack200 to provide /usr/bin/pack200 (pack200) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-openjdk/jre/bin/rmid to provide /usr/bin/rmid (rmid) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-openjdk/jre/bin/rmiregistry to provide /usr/bin/rmiregistry (rmiregistry) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-openjdk/jre/bin/unpack200 to provide /usr/bin/unpack200 (unpack200) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-openjdk/jre/bin/orbd to provide /usr/bin/orbd (orbd) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-openjdk/jre/bin/servertool to provide /usr/bin/servertool (servertool) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-openjdk/jre/bin/tnameserv to provide /usr/bin/tnameserv (tnameserv) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-openjdk/jre/lib/jexec to provide /usr/bin/jexec (jexec) in auto mode.

Setting up openjdk-6-jre-lib (6b20-1.9.9-0ubuntu1~10.04.2) ...

Setting up libjaxp1.3-java (1.3.04-5ubuntu3) ...
Setting up libxerces2-java (2.9.1-4ubuntu1) ...
Setting up ant (1.7.1-4ubuntu1.1) ...
Setting up ant-gcj (1.7.1-4ubuntu1.1) ...

Setting up ant-optional (1.7.1-4ubuntu1.1) ...
Setting up ant-optional-gcj (1.7.1-4ubuntu1.1) ...

Setting up libservlet2.5-java (6.0.24-2ubuntu1.9) ...
Setting up libslf4j-java (1.5.10-1) ...
Setting up libjetty-java (6.1.22-1ubuntu1) ...
Setting up libcommons-daemon-java (1.0.2~svn20061127-10ubuntu1) ...
Setting up jsvc (1.0.2~svn20061127-10ubuntu1) ...
Setting up jetty (6.1.22-1ubuntu1) ...
Adding system user jetty' (UID 105) ... Adding new group jetty' (GID 109) ...
Adding new user jetty' (UID 105) with group jetty' ...
Not creating home directory `/usr/share/jetty'.

  • Not starting jetty - edit /etc/default/jetty and change NO_START to be 0 (or comment it out).

Setting up libregexp-java (1.5-2) ...
Setting up libbcel-java (5.2-6) ...
Setting up libcommons-collections3-java (3.2.1-4) ...
Setting up libcommons-logging-java (1.1.1-7) ...
Setting up libcommons-beanutils-java (1.8.2-1) ...
Setting up libcommons-codec-java (1.4-2) ...
Setting up libcommons-collections-java (2.1.1-9) ...
Setting up libcommons-compress-java (1.0-1) ...
Setting up libcommons-csv-java (0.1-SNAPSHOT+svn678580-1ubuntu0.1) ...
Setting up libcommons-pool-java (1.5.3-1ubuntu1) ...
Setting up libcommons-dbcp-java (1.3~svn828639-1ubuntu1) ...
Setting up libcommons-digester-java (1.8.1-2) ...
Setting up libcommons-io-java (1.4-2ubuntu1) ...
Setting up libcommons-fileupload-java (1.2.1-3ubuntu2) ...
Setting up libcommons-httpclient-java (3.1-9) ...
Setting up libdb-je-java (3.3.62-3) ...
Setting up libgnuinet-java (1.1.1-4) ...
Setting up libgnujaf-java (1.1.1-5) ...
Setting up libgnumail-java (1.1.2-4) ...
Setting up libicu4j-java (4.0.1.1-1) ...
Setting up liblog4j1.2-java (1.2.15-9ubuntu2) ...
Setting up libmx4j-java (3.0.2-8ubuntu1) ...
Setting up libtomcat6-java (6.0.24-2ubuntu1.9) ...
Setting up libjetty-extra-java (6.1.22-1ubuntu1) ...
Setting up libjetty-extra (6.1.22-1ubuntu1) ...
Setting up libjline-java (0.9.94-5) ...
Setting up libjtidy-java (7+svn20070309-4) ...
Setting up liblucene2-java (2.9.2+ds1-1) ...
Setting up libxml-commons-external-java (1.3.05-1) ...
Setting up solr-common (1.4.0+ds1-1ubuntu1) ...

Setting up solr-jetty (1.4.0+ds1-1ubuntu1) ...

  • Not starting jetty - edit /etc/default/jetty and change NO_START to be 0 (or comment it out).

Setting up icedtea-6-jre-cacao (6b20-1.9.9-0ubuntu1~10.04.2) ...
Setting up default-jre-headless (1.6-34) ...
Setting up ca-certificates-java (20100406ubuntu1) ...
creating /etc/ssl/certs/java/cacerts...
removed untrusted certificate mozilla/DigiNotar_Root_CA.crt
done.

Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
rabbitmq-server
chef-solr
chef-server-api
chef-server
chef-server-webui
E: Sub-process /usr/bin/dpkg returned an error code (1)

STARTUP_LOG:
Starting all nodes...
Starting node rabbit@svr004...
{error_logger,{{2011,11,11},{1,44,44}},"Protocol: ~p: register error: ~p~n",["inet_tcp",{{badmatch,{error,duplicate_name}},[{inet_tcp_dist,listen,1},{net_kernel,start_protos,4},{net_kernel,start_protos,3},{net_kernel,init_node,2},{net_kernel,init,1},{gen_server,init_it,6},{proc_lib,init_p_do_apply,3}]}]}^M
{error_logger,{{2011,11,11},{1,44,44}},crash_report,[[{initial_call,{net_kernel,init,['Argument__1']}},{pid,<0.21.0>},{registered_name,},{error_info,{exit,{error,badarg},[{gen_server,init_it,6},{proc_lib,init_p_do_apply,3}]}},{ancestors,[net_sup,kernel_sup,<0.10.0>]},{messages,},{links,[#Port<0.117>,<0.18.0>]},{dictionary,[{longnames,false}]},{trap_exit,true},{status,running},{heap_size,233},{stack_size,24},{reductions,471}],]}^M
{error_logger,{{2011,11,11},{1,44,44}},supervisor_report,[{supervisor,{local,net_sup}},{errorContext,start_error},{reason,{'EXIT',nodistribution}},{offender,[{pid,undefined},{name,net_kernel},{mfa,{net_kernel,start_link,[[rabbit,shortnames]]}},{restart_type,permanent},{shutdown,2000},{child_type,worker}]}]}^M
{error_logger,{{2011,11,11},{1,44,44}},supervisor_report,[{supervisor,{local,kernel_sup}},{errorContext,start_error},{reason,shutdown},{offender,[{pid,undefined},{name,net_sup},{mfa,{erl_distribution,start_link,}},{restart_type,permanent},{shutdown,infinity},{child_type,supervisor}]}]}^M
{error_logger,{{2011,11,11},{1,44,44}},std_info,[{application,kernel},{exited,{shutdown,{kernel,start,[normal,]}}},{type,permanent}]}^M
{"Kernel pid terminated",application_controller,"{application_start_failure,kernel,{shutdown,{kernel,start,[normal,]}}}"}^M

STARTUP_ERR:
Error: {node_start_failed,normal}
^M
Crash dump was written to: erl_crash.dump^M
Kernel pid terminated (application_controller) ({application_start_failure,kernel,{shutdown,{kernel,start,[normal,]}}})^M

On Monday, November 14, 2011 at 5:18 AM, Brendan Murtagh wrote:

Sam,

To follow up my email from earlier, I originally used the guide: http://wiki.opscode.com/display/chef/Installing+Chef+Server+on+Debian+or+Ubuntu+using+Packages

I was able to get up to 'Configure the Command Line Client' which states to do:

sudo cp /etc/chef/validation.pem /etc/chef/webui.pem ~/.chef

The problem I ran into was that the /etc/chef/webui.pem file did not exist. This was confirmed running 'knife configure -i' and it erroring out for File Not Found.

I'm not sure how/why it wasn't created and I was able to briefly speak to ssd7 on the irc chan, but he needed to step away.
FYI, Chef Server will create these files on startup. From the other information you provided, it seems likely that Chef Server errored out on submitting the client info to RabbitMQ. Getting RabbitMQ working and then restarting chef-server would fix this problem.

HTH,

--
Dan DeLeo

On Mon, Nov 14, 2011 at 11:15 AM, Daniel DeLeo dan@kallistec.com wrote:

I'm not sure how/why it wasn't created and I was able to briefly speak to ssd7 on the irc chan, but he needed to step away.
FYI, Chef Server will create these files on startup. From the other information you provided, it seems likely that Chef Server errored out on submitting the client info to RabbitMQ. Getting RabbitMQ working and then restarting chef-server would fix this problem.

Right. When installing from debian packages, debian would not have
started the chef-server because the script that does so runs after
rabbitmq is started, which didn't start either.

Bryan

Hi Sam,

Not sure if this will be helpful at this point, but I ran into this same
error while testing in Ubuntu 10.04. It was an issue with rabbitmq, but
perhaps some extra information will be helpful. In my case, this was
specific to an issue with the hostname most likely related to this bug:

The hostname was not resolving, for instance using the command "ping
$HOSTNAME" would respond with unknown host. If you notice that you're
having these same symptoms, you can resolve it by editing /etc/hostname and
/etc/hosts so the current hostname in /etc/hostname points to 127.0.1.1 or
127.0.0.1 in /etc/hosts, and then rebooting. After that is done you can run
these commands to get chef-server re-installed correctly:

sudo apt-get remove rabbitmq-server chef chef-server

sudo rm -R /var/lib/rabbitmq

sudo apt-get install chef chef-server

Hope that helps!
Jessica

On Mon, Nov 14, 2011 at 8:20 AM, Bryan McLellan btm@loftninjas.org wrote:

On Mon, Nov 14, 2011 at 11:15 AM, Daniel DeLeo dan@kallistec.com wrote:

I'm not sure how/why it wasn't created and I was able to briefly speak
to ssd7 on the irc chan, but he needed to step away.
FYI, Chef Server will create these files on startup. From the other
information you provided, it seems likely that Chef Server errored out on
submitting the client info to RabbitMQ. Getting RabbitMQ working and then
restarting chef-server would fix this problem.

Right. When installing from debian packages, debian would not have
started the chef-server because the script that does so runs after
rabbitmq is started, which didn't start either.

Bryan

Many thanks for all the replies - I will go do some more testing and find out what works.

Cheers
Sam

On 15 Nov 2011, at 11:20, Jessica Bourne wrote:

Hi Sam,

Not sure if this will be helpful at this point, but I ran into this same error while testing in Ubuntu 10.04. It was an issue with rabbitmq, but perhaps some extra information will be helpful. In my case, this was specific to an issue with the hostname most likely related to this bug: Bug #653405 “rabbitmq-server fails to start if hostname is unres...” : Bugs : rabbitmq-server package : Ubuntu

The hostname was not resolving, for instance using the command "ping $HOSTNAME" would respond with unknown host. If you notice that you're having these same symptoms, you can resolve it by editing /etc/hostname and /etc/hosts so the current hostname in /etc/hostname points to 127.0.1.1 or 127.0.0.1 in /etc/hosts, and then rebooting. After that is done you can run these commands to get chef-server re-installed correctly:
sudo apt-get remove rabbitmq-server chef chef-server

sudo rm -R /var/lib/rabbitmq

sudo apt-get install chef chef-server

Hope that helps!

Jessica

On Mon, Nov 14, 2011 at 8:20 AM, Bryan McLellan btm@loftninjas.org wrote:
On Mon, Nov 14, 2011 at 11:15 AM, Daniel DeLeo dan@kallistec.com wrote:

I'm not sure how/why it wasn't created and I was able to briefly speak to ssd7 on the irc chan, but he needed to step away.
FYI, Chef Server will create these files on startup. From the other information you provided, it seems likely that Chef Server errored out on submitting the client info to RabbitMQ. Getting RabbitMQ working and then restarting chef-server would fix this problem.

Right. When installing from debian packages, debian would not have
started the chef-server because the script that does so runs after
rabbitmq is started, which didn't start either.

Bryan

Hi,

I have managed to move forward a little bit there was a problem with rabbitmq resolving the local host name and that was stopping the installation process. You could successfully resolve svr004.dfw but not svr004. So I reinstalled the machine and started from scratch this time making sure the svr004 hostname resolved before installing.
It now looks like rabbitmq installs but the full install fails:

root@svr004:~# sudo apt-get install chef chef-server

[SNIP]

Setting up libjetty-extra-java (6.1.22-1ubuntu1) ...
Setting up solr-jetty (1.4.0+ds1-1ubuntu1) ...

  • Not starting jetty - edit /etc/default/jetty and change NO_START to be 0 (or comment it out).

Setting up chef-solr (0.10.4-1) ...
Creating vhost "/chef" ...
...done.
sh: Syntax error: EOF in backquote substitution
dpkg: error processing chef-solr (--configure):
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of chef-expander:
chef-expander depends on chef-solr (>= 0.10.4); however:
Package chef-solr is not configured yet.
dpkg: error processing chef-expander (--configure):
dependency problems - leaving unconfigured
Setting up libstdc++6-4.4-dev (4.4.3-4ubuntu5) ...
No apport report written because the error message indicates its a followup error from a previous failure.
Setting up libboost1.40-dev (1.40.0-4ubuntu4) ...
Setting up libboost-dev (1.40.0.1) ...
Setting up libgecode-dev (3.5.0-1~lucid1) ...
Setting up libdep-selector-ruby (0.0.7-0opscode1) ...
dpkg: dependency problems prevent configuration of chef-server-api:
chef-server-api depends on chef-solr (>= 0.10.4); however:
Package chef-solr is not configured yet.
dpkg: error processing chef-server-api (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
dpkg: dependency problems prevent configuration of chef-server:
chef-server depends on chef-server-api (>= 0.10.4); however:
Package chef-server-api is not configured yet.
chef-server depends on chef-solr (>= 0.10.4); however:
Package chef-solr is not configured yet.
chef-server depends on chef-expander (>= 0.10.4); however:
Package chef-expander is not configured yet.
dpkg: error processing chef-server (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of chef-server-webui:
chef-server-webui depends on chef-server (>= 0.10.4); however:
Package chef-server is not configured yet.
dpkg: error processing chef-server-webui (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
Setting up libcommons-compress-java (1.0-1) ...
Setting up libcommons-digester-java (1.8.1-2) ...
Setting up libdb-je-java (3.3.62-3) ...
Setting up libicu4j-java (4.0.1.1-1) ...
Setting up libjetty-extra (6.1.22-1ubuntu1) ...
Setting up libjline-java (0.9.94-5) ...
Setting up libjtidy-java (7+svn20070309-4) ...
Setting up icedtea-6-jre-cacao (6b20-1.9.9-0ubuntu1~10.04.2) ...
Setting up default-jre-headless (1.6-34) ...
Setting up ca-certificates-java (20100406ubuntu1) ...
creating /etc/ssl/certs/java/cacerts...
removed untrusted certificate mozilla/DigiNotar_Root_CA.crt
done.

Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
chef-solr
chef-expander
chef-server-api
chef-server
chef-server-webui
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@svr004:~#

On 15 Nov 2011, at 13:42, Sam Hamilton wrote:

Many thanks for all the replies - I will go do some more testing and find out what works.

Cheers
Sam

On 15 Nov 2011, at 11:20, Jessica Bourne wrote:

Hi Sam,

Not sure if this will be helpful at this point, but I ran into this same error while testing in Ubuntu 10.04. It was an issue with rabbitmq, but perhaps some extra information will be helpful. In my case, this was specific to an issue with the hostname most likely related to this bug: Bug #653405 “rabbitmq-server fails to start if hostname is unres...” : Bugs : rabbitmq-server package : Ubuntu

The hostname was not resolving, for instance using the command "ping $HOSTNAME" would respond with unknown host. If you notice that you're having these same symptoms, you can resolve it by editing /etc/hostname and /etc/hosts so the current hostname in /etc/hostname points to 127.0.1.1 or 127.0.0.1 in /etc/hosts, and then rebooting. After that is done you can run these commands to get chef-server re-installed correctly:
sudo apt-get remove rabbitmq-server chef chef-server

sudo rm -R /var/lib/rabbitmq

sudo apt-get install chef chef-server

Hope that helps!

Jessica

On Mon, Nov 14, 2011 at 8:20 AM, Bryan McLellan btm@loftninjas.org wrote:
On Mon, Nov 14, 2011 at 11:15 AM, Daniel DeLeo dan@kallistec.com wrote:

I'm not sure how/why it wasn't created and I was able to briefly speak to ssd7 on the irc chan, but he needed to step away.
FYI, Chef Server will create these files on startup. From the other information you provided, it seems likely that Chef Server errored out on submitting the client info to RabbitMQ. Getting RabbitMQ working and then restarting chef-server would fix this problem.

Right. When installing from debian packages, debian would not have
started the chef-server because the script that does so runs after
rabbitmq is started, which didn't start either.

Bryan

On Tue, Nov 15, 2011 at 11:06 PM, Sam Hamilton sam@sh81.com wrote:

I have managed to move forward a little bit there was a problem with
rabbitmq resolving the local host name and that was stopping the
installation process. You could successfully resolve svr004.dfw but not
svr004. So I reinstalled the machine and started from scratch this time
making sure the svr004 hostname resolved before installing.
It now looks like rabbitmq installs but the full install fails:
root@svr004:~# sudo apt-get install chef chef-server
[SNIP]
Setting up libjetty-extra-java (6.1.22-1ubuntu1) ...
Setting up solr-jetty (1.4.0+ds1-1ubuntu1) ...

  • Not starting jetty - edit /etc/default/jetty and change NO_START to be 0
    (or comment it out).
    Setting up chef-solr (0.10.4-1) ...
    Creating vhost "/chef" ...
    ...done.
    sh: Syntax error: EOF in backquote substitution
    dpkg: error processing chef-solr (--configure):
    subprocess installed post-installation script returned error exit status 2
    dpkg: dependency problems prevent configuration of chef-expander:
    chef-expander depends on chef-solr (>= 0.10.4); however:

I regularly use the debs to install on Ubuntu 10.04 LTS and I haven't
seen this particular issue.

This would be in the parsing of this script:
/var/lib/dpkg/info/chef-solr.postinst

What happens if you run "sudo /var/lib/dpkg/info/chef-solr.postinst
configure" ? You should get the same error.

When it prompts you for a password for amqp/rabbitmq, are you giving
it one? Are you using any special characters in your password, like
maybe quotes?

Can you try running 'sudo dpkg-reconfigure chef-solr' again with a
simple password like "password" or "something"?

Bryan

Hi Bryan,

So when I run sudo /var/lib/dpkg/info/chef-solr.postinst configure I get the following error: sh: Syntax error: EOF in backquote substitution
Yes I was giving a password but it did have some special characters in the password.
Running sudo dpkg-reconfigure chef-solr gives the following error: /usr/sbin/dpkg-reconfigure: chef-solr is broken or not fully installed

So the only option I had was to reinstall the box and start again - it installs when you make sure of two things 1. host name can be pinged from the local hosts for rabbitmq install and 2. the passwords were did not contain any special characters and were 12 letters in length (perhaps longer is ok but didn't try).

The only error in the install was
Creating config file /etc/chef/client.rb with new version

  • Starting chef-client chef-client [fail]

Will do some digging to make sure everything works but so far at least it installs!

Many many thanks everyone!

Sam

On 18 Nov 2011, at 03:22, Bryan McLellan wrote:

On Tue, Nov 15, 2011 at 11:06 PM, Sam Hamilton sam@sh81.com wrote:

I have managed to move forward a little bit there was a problem with
rabbitmq resolving the local host name and that was stopping the
installation process. You could successfully resolve svr004.dfw but not
svr004. So I reinstalled the machine and started from scratch this time
making sure the svr004 hostname resolved before installing.
It now looks like rabbitmq installs but the full install fails:
root@svr004:~# sudo apt-get install chef chef-server
[SNIP]
Setting up libjetty-extra-java (6.1.22-1ubuntu1) ...
Setting up solr-jetty (1.4.0+ds1-1ubuntu1) ...

  • Not starting jetty - edit /etc/default/jetty and change NO_START to be 0
    (or comment it out).
    Setting up chef-solr (0.10.4-1) ...
    Creating vhost "/chef" ...
    ...done.
    sh: Syntax error: EOF in backquote substitution
    dpkg: error processing chef-solr (--configure):
    subprocess installed post-installation script returned error exit status 2
    dpkg: dependency problems prevent configuration of chef-expander:
    chef-expander depends on chef-solr (>= 0.10.4); however:

I regularly use the debs to install on Ubuntu 10.04 LTS and I haven't
seen this particular issue.

This would be in the parsing of this script:
/var/lib/dpkg/info/chef-solr.postinst

What happens if you run "sudo /var/lib/dpkg/info/chef-solr.postinst
configure" ? You should get the same error.

When it prompts you for a password for amqp/rabbitmq, are you giving
it one? Are you using any special characters in your password, like
maybe quotes?

Can you try running 'sudo dpkg-reconfigure chef-solr' again with a
simple password like "password" or "something"?

Bryan

On Thu, Nov 17, 2011 at 9:34 PM, Sam Hamilton sam@sh81.com wrote:

So when I run sudo /var/lib/dpkg/info/chef-solr.postinst configure I get the following error: sh: Syntax error: EOF in backquote substitution
Yes I was giving a password but it did have some special characters in the password.

That makes sense. Somewhere this wasn't being escaped properly. The
debian post install scripts are just bash scripts, and escaping in
bash scripts isn't a party.

I am now able to replicate the issue and I've created a bug.
http://tickets.opscode.com/browse/CHEF-2734

Running sudo dpkg-reconfigure chef-solr gives the following error: /usr/sbin/dpkg-reconfigure: chef-solr is broken or not fully installed

Probably "sudo apt-get install -f" would have worked. a "dpkg -l
chef-solr" would have confirmed that the package didn't finish
installing. The "-f" flag to apt is used to fix incomplete
installations whereas dpkg-reconfigure allows you to reconfigure a
package using the scripts that come as part of the debian package.
These commands are worth spending some time reading about if you're
going to be administering debian or ubuntu systems.

Will do some digging to make sure everything works but so far at least it installs!

Glad it works now.

Bryan