- From: Sam Hamilton <
>
- To:
- Subject: [chef] Re: Problem installing chef server on Ubuntu 10.04 LTS
- Date: Fri, 18 Nov 2011 10:34:28 +0800
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
>
<
>
>
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:
>
>
:~#
>
> 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
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
- [chef] Re: Problem installing chef server on Ubuntu 10.04 LTS, (continued)
Archive powered by MHonArc 2.6.16.